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

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

Issue 10832360: Change to address default selection of menu item (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: type check 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Whether the keyboard accelerators are visible. 104 // Whether the keyboard accelerators are visible.
105 bool show_accelerators; 105 bool show_accelerators;
106 106
107 // True if icon to label padding is always added with or without icon. 107 // True if icon to label padding is always added with or without icon.
108 bool always_use_icon_to_label_padding; 108 bool always_use_icon_to_label_padding;
109 109
110 // True if submenu arrow and shortcut right edge should be aligned. 110 // True if submenu arrow and shortcut right edge should be aligned.
111 bool align_arrow_and_shortcut; 111 bool align_arrow_and_shortcut;
112 112
113 // True if the context menu's should be offset from the cursor position.
114 bool offset_context_menus;
115
113 private: 116 private:
114 // Creates and configures a new MenuConfig as appropriate for the current 117 // Creates and configures a new MenuConfig as appropriate for the current
115 // platform. 118 // platform.
116 static MenuConfig* Create(); 119 static MenuConfig* Create();
117 }; 120 };
118 121
119 } // namespace views 122 } // namespace views
120 123
121 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ 124 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc ('k') | ui/views/controls/menu/menu_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698