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

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

Issue 2741004: Makes it so child views of menuitemview can be traversed with the (Closed)
Patch Set: Tweaks Created 10 years, 6 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
OLDNEW
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_SUBMENU_VIEW_H_ 5 #ifndef VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
6 #define VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ 6 #define VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
7 7
8 #include "views/controls/menu/menu_delegate.h" 8 #include "views/controls/menu/menu_delegate.h"
9 #include "views/view.h" 9 #include "views/view.h"
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual int OnPerformDrop(const DropTargetEvent& event); 67 virtual int OnPerformDrop(const DropTargetEvent& event);
68 68
69 // Scrolls on menu item boundaries. 69 // Scrolls on menu item boundaries.
70 virtual bool OnMouseWheel(const MouseWheelEvent& e); 70 virtual bool OnMouseWheel(const MouseWheelEvent& e);
71 71
72 // Returns true if the menu is showing. 72 // Returns true if the menu is showing.
73 bool IsShowing(); 73 bool IsShowing();
74 74
75 // Shows the menu at the specified location. Coordinates are in screen 75 // Shows the menu at the specified location. Coordinates are in screen
76 // coordinates. max_width gives the max width the view should be. 76 // coordinates. max_width gives the max width the view should be.
77 void ShowAt(gfx::NativeWindow parent, const gfx::Rect& bounds, bool do_capture ); 77 void ShowAt(gfx::NativeWindow parent,
78 const gfx::Rect& bounds,
79 bool do_capture);
78 80
79 // Resets the bounds of the submenu to |bounds|. 81 // Resets the bounds of the submenu to |bounds|.
80 void Reposition(const gfx::Rect& bounds); 82 void Reposition(const gfx::Rect& bounds);
81 83
82 // Closes the menu, destroying the host. 84 // Closes the menu, destroying the host.
83 void Close(); 85 void Close();
84 86
85 // Hides the hosting window. 87 // Hides the hosting window.
86 // 88 //
87 // The hosting window is hidden first, then deleted (Close) when the menu is 89 // The hosting window is hidden first, then deleted (Close) when the menu is
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 158
157 // Ancestor of the SubmenuView, lazily created. 159 // Ancestor of the SubmenuView, lazily created.
158 MenuScrollViewContainer* scroll_view_container_; 160 MenuScrollViewContainer* scroll_view_container_;
159 161
160 DISALLOW_COPY_AND_ASSIGN(SubmenuView); 162 DISALLOW_COPY_AND_ASSIGN(SubmenuView);
161 }; 163 };
162 164
163 } // namespace views 165 } // namespace views
164 166
165 #endif // VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ 167 #endif // VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
OLDNEW
« views/controls/menu/menu_controller.cc ('K') | « views/controls/menu/menu_scroll_view_container.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698