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

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

Issue 12041085: Fix menu corners: the menu background was being painted as a rect when in fact, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 10 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const ui::NativeTheme* native_theme; 125 const ui::NativeTheme* native_theme;
126 126
127 // Delay, in ms, between when menus are selected or moused over and the menu 127 // Delay, in ms, between when menus are selected or moused over and the menu
128 // appears. 128 // appears.
129 int show_delay; 129 int show_delay;
130 130
131 int corner_radius;
sky 2013/01/25 20:30:24 Add description.
varunjain 2013/01/25 22:57:29 Done.
132
131 private: 133 private:
132 // Configures a MenuConfig as appropriate for the current platform. 134 // Configures a MenuConfig as appropriate for the current platform.
133 void Init(const ui::NativeTheme* theme); 135 void Init(const ui::NativeTheme* theme);
134 136
135 // TODO: temporary until we standardize. 137 // TODO: temporary until we standardize.
136 #if defined(USE_AURA) 138 #if defined(USE_AURA)
137 void InitAura(); 139 void InitAura();
138 #endif 140 #endif
139 141
140 // Adjust some values for a new UI style. 142 // Adjust some values for a new UI style.
141 void AdjustForCommonTheme(); 143 void AdjustForCommonTheme();
142 }; 144 };
143 145
144 } // namespace views 146 } // namespace views
145 147
146 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ 148 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698