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

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

Issue 2289143004: Add ink drop ripple (but no highlight) to comboboxes in harmony. (Closed)
Patch Set: remove explicit and improve combobox example Created 4 years, 3 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
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SUBMENU_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
6 #define UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 22 matching lines...) Expand all
33 // . Forwards the appropriate events to the MenuController. This allows the 33 // . Forwards the appropriate events to the MenuController. This allows the
34 // MenuController to update the selection as the user moves the mouse around. 34 // MenuController to update the selection as the user moves the mouse around.
35 // . Renders the drop indicator during a drop operation. 35 // . Renders the drop indicator during a drop operation.
36 // . Shows and hides the window (a NativeWidget) when the menu is shown on 36 // . Shows and hides the window (a NativeWidget) when the menu is shown on
37 // screen. 37 // screen.
38 // 38 //
39 // SubmenuView is itself contained in a MenuScrollViewContainer. 39 // SubmenuView is itself contained in a MenuScrollViewContainer.
40 // MenuScrollViewContainer handles showing as much of the SubmenuView as the 40 // MenuScrollViewContainer handles showing as much of the SubmenuView as the
41 // screen allows. If the SubmenuView is taller than the screen, scroll buttons 41 // screen allows. If the SubmenuView is taller than the screen, scroll buttons
42 // are provided that allow the user to see all the menu items. 42 // are provided that allow the user to see all the menu items.
43 class VIEWS_EXPORT SubmenuView : public PrefixDelegate, 43 class VIEWS_EXPORT SubmenuView : public View,
44 public PrefixDelegate,
44 public ScrollDelegate { 45 public ScrollDelegate {
45 public: 46 public:
46 // The submenu's class name. 47 // The submenu's class name.
47 static const char kViewClassName[]; 48 static const char kViewClassName[];
48 49
49 // Creates a SubmenuView for the specified menu item. 50 // Creates a SubmenuView for the specified menu item.
50 explicit SubmenuView(MenuItemView* parent); 51 explicit SubmenuView(MenuItemView* parent);
51 ~SubmenuView() override; 52 ~SubmenuView() override;
52 53
53 // Returns the number of child views that are MenuItemViews. 54 // Returns the number of child views that are MenuItemViews.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 float roundoff_error_; 221 float roundoff_error_;
221 222
222 PrefixSelector prefix_selector_; 223 PrefixSelector prefix_selector_;
223 224
224 DISALLOW_COPY_AND_ASSIGN(SubmenuView); 225 DISALLOW_COPY_AND_ASSIGN(SubmenuView);
225 }; 226 };
226 227
227 } // namespace views 228 } // namespace views
228 229
229 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ 230 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698