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

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

Issue 10912063: events: Get rid of GestureStatus in favour of EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | 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_HOST_ROOT_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_
7 7
8 #include "ui/views/widget/root_view.h" 8 #include "ui/views/widget/root_view.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 12 matching lines...) Expand all
23 MenuHostRootView(Widget* widget, SubmenuView* submenu); 23 MenuHostRootView(Widget* widget, SubmenuView* submenu);
24 24
25 void ClearSubmenu() { submenu_ = NULL; } 25 void ClearSubmenu() { submenu_ = NULL; }
26 26
27 // Overridden from View: 27 // Overridden from View:
28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
29 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 29 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
30 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 30 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
31 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 31 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
32 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; 32 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE;
33 virtual ui::GestureStatus OnGestureEvent( 33 virtual ui::EventResult OnGestureEvent(
34 const ui::GestureEvent& event) OVERRIDE; 34 const ui::GestureEvent& event) OVERRIDE;
35 35
36 private: 36 private:
37 // Returns the MenuController for this MenuHostRootView. 37 // Returns the MenuController for this MenuHostRootView.
38 MenuController* GetMenuController(); 38 MenuController* GetMenuController();
39 39
40 // The SubmenuView we contain. 40 // The SubmenuView we contain.
41 SubmenuView* submenu_; 41 SubmenuView* submenu_;
42 42
43 // Whether mouse dragged/released should be forwarded to the MenuController. 43 // Whether mouse dragged/released should be forwarded to the MenuController.
44 bool forward_drag_to_menu_controller_; 44 bool forward_drag_to_menu_controller_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(MenuHostRootView); 46 DISALLOW_COPY_AND_ASSIGN(MenuHostRootView);
47 }; 47 };
48 48
49 } // namespace views 49 } // namespace views
50 50
51 #endif // UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ 51 #endif // UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/controls/menu/menu_host_root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698