| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
| 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
| 7 | 7 |
| 8 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
| 9 #include "ui/gfx/font_list.h" | 9 #include "ui/gfx/font_list.h" |
| 10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // True if the scroll container should add a border stroke around the menu. | 110 // True if the scroll container should add a border stroke around the menu. |
| 111 bool use_outer_border; | 111 bool use_outer_border; |
| 112 | 112 |
| 113 // True if the icon is part of the label rather than in its own column. | 113 // True if the icon is part of the label rather than in its own column. |
| 114 bool icons_in_label; | 114 bool icons_in_label; |
| 115 | 115 |
| 116 // True if a combobox menu should put a checkmark next to the selected item. | 116 // True if a combobox menu should put a checkmark next to the selected item. |
| 117 bool check_selected_combobox_item; | 117 bool check_selected_combobox_item; |
| 118 | 118 |
| 119 const ui::NativeTheme* native_theme; | |
| 120 | |
| 121 // Delay, in ms, between when menus are selected or moused over and the menu | 119 // Delay, in ms, between when menus are selected or moused over and the menu |
| 122 // appears. | 120 // appears. |
| 123 int show_delay; | 121 int show_delay; |
| 124 | 122 |
| 125 // Radius of the rounded corners of the menu border. Must be >= 0. | 123 // Radius of the rounded corners of the menu border. Must be >= 0. |
| 126 int corner_radius; | 124 int corner_radius; |
| 127 | 125 |
| 128 private: | 126 private: |
| 129 // Configures a MenuConfig as appropriate for the current platform. | 127 // Configures a MenuConfig as appropriate for the current platform. |
| 130 void Init(const ui::NativeTheme* theme); | 128 void Init(const ui::NativeTheme* theme); |
| 131 | 129 |
| 132 // TODO: temporary until we standardize. | 130 // TODO: temporary until we standardize. |
| 133 void InitAura(const ui::NativeTheme* theme); | 131 void InitAura(const ui::NativeTheme* theme); |
| 134 }; | 132 }; |
| 135 | 133 |
| 136 } // namespace views | 134 } // namespace views |
| 137 | 135 |
| 138 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 136 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
| OLD | NEW |