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

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

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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_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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Painting. 61 // Painting.
62 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; 62 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE;
63 63
64 // Drag and drop methods. These are forwarded to the MenuController. 64 // Drag and drop methods. These are forwarded to the MenuController.
65 virtual bool GetDropFormats( 65 virtual bool GetDropFormats(
66 int* formats, 66 int* formats,
67 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 67 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
68 virtual bool AreDropTypesRequired() OVERRIDE; 68 virtual bool AreDropTypesRequired() OVERRIDE;
69 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE; 69 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE;
70 virtual void OnDragEntered(const DropTargetEvent& event) OVERRIDE; 70 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE;
71 virtual int OnDragUpdated(const DropTargetEvent& event) OVERRIDE; 71 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
72 virtual void OnDragExited() OVERRIDE; 72 virtual void OnDragExited() OVERRIDE;
73 virtual int OnPerformDrop(const DropTargetEvent& event) OVERRIDE; 73 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
74 74
75 // Scrolls on menu item boundaries. 75 // Scrolls on menu item boundaries.
76 virtual bool OnMouseWheel(const MouseWheelEvent& e) OVERRIDE; 76 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE;
77 77
78 // Scrolls on menu item boundaries. 78 // Scrolls on menu item boundaries.
79 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& e) OVERRIDE; 79 virtual ui::GestureStatus OnGestureEvent(const ui::GestureEvent& e) OVERRIDE;
80 80
81 // Returns true if the menu is showing. 81 // Returns true if the menu is showing.
82 bool IsShowing(); 82 bool IsShowing();
83 83
84 // Shows the menu at the specified location. Coordinates are in screen 84 // Shows the menu at the specified location. Coordinates are in screen
85 // coordinates. max_width gives the max width the view should be. 85 // coordinates. max_width gives the max width the view should be.
86 void ShowAt(Widget* parent, 86 void ShowAt(Widget* parent,
87 const gfx::Rect& bounds, 87 const gfx::Rect& bounds,
88 bool do_capture); 88 bool do_capture);
89 89
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 // The submenu's scroll animator 203 // The submenu's scroll animator
204 scoped_ptr<ScrollAnimator> scroll_animator_; 204 scoped_ptr<ScrollAnimator> scroll_animator_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(SubmenuView); 206 DISALLOW_COPY_AND_ASSIGN(SubmenuView);
207 }; 207 };
208 208
209 } // namespace views 209 } // namespace views
210 210
211 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ 211 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_scroll_view_container.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698