Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: ui/views/controls/menu/menu_config.h

Issue 10829176: Update drop down menu look & feel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved inset code Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_width_left;
35 int menu_border_width_top;
36 int menu_border_width_right;
37 int menu_border_width_bottom;
38
33 // Submenu horizontal margin size. 39 // Submenu horizontal margin size.
34 int submenu_horizontal_margin_size; 40 int submenu_horizontal_margin_size;
35 41
36 // Submenu vertical margin size. 42 // Submenu vertical margin size.
37 int submenu_vertical_margin_size; 43 int submenu_vertical_margin_size;
38 44
39 // Submenu horizontal inset with parent menu. This is the horizontal overlap 45 // Submenu horizontal inset with parent menu. This is the horizontal overlap
40 // between the submenu and its parent menu, not including the borders of 46 // between the submenu and its parent menu, not including the borders of
41 // submenu and parent menu. 47 // submenu and parent menu.
42 int submenu_horizontal_inset; 48 int submenu_horizontal_inset;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 118
113 private: 119 private:
114 // Creates and configures a new MenuConfig as appropriate for the current 120 // Creates and configures a new MenuConfig as appropriate for the current
115 // platform. 121 // platform.
116 static MenuConfig* Create(); 122 static MenuConfig* Create();
117 }; 123 };
118 124
119 } // namespace views 125 } // namespace views
120 126
121 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ 127 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698