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.h" | 9 #include "ui/gfx/font.h" |
10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 // True if icon to label padding is always added with or without icon. | 116 // True if icon to label padding is always added with or without icon. |
117 bool always_use_icon_to_label_padding; | 117 bool always_use_icon_to_label_padding; |
118 | 118 |
119 // True if submenu arrow and shortcut right edge should be aligned. | 119 // True if submenu arrow and shortcut right edge should be aligned. |
120 bool align_arrow_and_shortcut; | 120 bool align_arrow_and_shortcut; |
121 | 121 |
122 // True if the context menu's should be offset from the cursor position. | 122 // True if the context menu's should be offset from the cursor position. |
123 bool offset_context_menus; | 123 bool offset_context_menus; |
124 | 124 |
125 private: | 125 private: |
126 // Creates and configures a new MenuConfig as appropriate for the current | 126 // Creates and configures a new MenuConfig as appropriate for the current |
sky
2012/10/09 00:40:42
Update comment.
yefimt
2012/10/09 00:53:25
Done.
| |
127 // platform. | 127 // platform. |
128 static MenuConfig* Create(); | 128 void Init(); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace views | 131 } // namespace views |
132 | 132 |
133 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 133 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
OLD | NEW |