OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "gfx/font.h" | |
10 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
| 10 #include "ui/gfx/font.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 | 13 |
14 // Layout type information for menu items. Use the instance() method to obtain | 14 // Layout type information for menu items. Use the instance() method to obtain |
15 // the MenuConfig for the current platform. | 15 // the MenuConfig for the current platform. |
16 struct MenuConfig { | 16 struct MenuConfig { |
17 MenuConfig() | 17 MenuConfig() |
18 : text_color(SK_ColorBLACK), | 18 : text_color(SK_ColorBLACK), |
19 item_top_margin(3), | 19 item_top_margin(3), |
20 item_bottom_margin(4), | 20 item_bottom_margin(4), |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 private: | 112 private: |
113 // Creates and configures a new MenuConfig as appropriate for the current | 113 // Creates and configures a new MenuConfig as appropriate for the current |
114 // platform. | 114 // platform. |
115 static MenuConfig* Create(); | 115 static MenuConfig* Create(); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace views | 118 } // namespace views |
119 | 119 |
120 #endif // VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ | 120 #endif // VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ |
OLD | NEW |