OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
6 #define VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
7 | 7 |
8 #include "app/gfx/font.h" | 8 #include "gfx/font.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
11 | 11 |
12 // Layout type information for menu items. Use the instance() method to obtain | 12 // Layout type information for menu items. Use the instance() method to obtain |
13 // the MenuConfig for the current platform. | 13 // the MenuConfig for the current platform. |
14 struct MenuConfig { | 14 struct MenuConfig { |
15 MenuConfig() : item_top_margin(3), | 15 MenuConfig() : item_top_margin(3), |
16 item_bottom_margin(4), | 16 item_bottom_margin(4), |
17 item_no_icon_top_margin(1), | 17 item_no_icon_top_margin(1), |
18 item_no_icon_bottom_margin(3), | 18 item_no_icon_bottom_margin(3), |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 private: | 94 private: |
95 // Creates and configures a new MenuConfig as appropriate for the current | 95 // Creates and configures a new MenuConfig as appropriate for the current |
96 // platform. | 96 // platform. |
97 static MenuConfig* Create(); | 97 static MenuConfig* Create(); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace views | 100 } // namespace views |
101 | 101 |
102 #endif // VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 102 #endif // VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
OLD | NEW |