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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Returns the single shared MenuConfig instance, creating if necessary. | 24 // Returns the single shared MenuConfig instance, creating if necessary. |
25 static const MenuConfig& instance(); | 25 static const MenuConfig& instance(); |
26 | 26 |
27 // Font used by menus. | 27 // Font used by menus. |
28 gfx::Font font; | 28 gfx::Font font; |
29 | 29 |
30 // Normal text color. | 30 // Normal text color. |
31 SkColor text_color; | 31 SkColor text_color; |
32 | 32 |
| 33 // Menu border offsets |
| 34 int menu_border_offset_horizontal; |
| 35 int menu_border_offset_vertical; |
| 36 |
33 // Submenu horizontal margin size. | 37 // Submenu horizontal margin size. |
34 int submenu_horizontal_margin_size; | 38 int submenu_horizontal_margin_size; |
35 | 39 |
36 // Submenu vertical margin size. | 40 // Submenu vertical margin size. |
37 int submenu_vertical_margin_size; | 41 int submenu_vertical_margin_size; |
38 | 42 |
39 // Submenu horizontal inset with parent menu. This is the horizontal overlap | 43 // Submenu horizontal inset with parent menu. This is the horizontal overlap |
40 // between the submenu and its parent menu, not including the borders of | 44 // between the submenu and its parent menu, not including the borders of |
41 // submenu and parent menu. | 45 // submenu and parent menu. |
42 int submenu_horizontal_inset; | 46 int submenu_horizontal_inset; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 116 |
113 private: | 117 private: |
114 // Creates and configures a new MenuConfig as appropriate for the current | 118 // Creates and configures a new MenuConfig as appropriate for the current |
115 // platform. | 119 // platform. |
116 static MenuConfig* Create(); | 120 static MenuConfig* Create(); |
117 }; | 121 }; |
118 | 122 |
119 } // namespace views | 123 } // namespace views |
120 | 124 |
121 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 125 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
OLD | NEW |