1// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "ui/views/controls/menu/menu_config.h" 6 7#include "build/build_config.h" 8 9namespace views { 10 11MenuConfig::MenuConfig(const ui::NativeTheme* theme) 12 : arrow_color(SK_ColorBLACK), 13 menu_vertical_border_size(3), 14 menu_horizontal_border_size(0), 15 submenu_horizontal_inset(3), 16 item_top_margin(4), 17 item_bottom_margin(3), 18 item_no_icon_top_margin(4), 19 item_no_icon_bottom_margin(4), 20 item_left_margin(10), 21 label_to_arrow_padding(10), 22 arrow_to_edge_padding(5), 23 icon_to_label_padding(10), 24 gutter_to_label(5), 25 check_width(16), 26 check_height(16), 27 radio_width(16), 28 arrow_width(9), 29 gutter_width(0), 30 separator_height(11), 31 separator_upper_height(3), 32 separator_lower_height(4), 33 separator_spacing_height(3), 34 render_gutter(false), 35 show_mnemonics(false), 36 scroll_arrow_height(3), 37 label_to_minor_text_padding(10), 38 item_min_height(0), 39 show_accelerators(true), 40 always_use_icon_to_label_padding(false), 41 align_arrow_and_shortcut(false), 42 offset_context_menus(false), 43 native_theme(theme), 44 show_delay(400), 45 corner_radius(0) { 46 Init(theme); 47} 48 49MenuConfig::~MenuConfig() {} 50 51} // namespace views 52