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

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

Issue 154203002: Remove unnecessary uses of aura::Env::GetDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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_CONTROLLER_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <list> 10 #include <list>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Various events, forwarded from the submenu. 106 // Various events, forwarded from the submenu.
107 // 107 //
108 // NOTE: the coordinates of the events are in that of the 108 // NOTE: the coordinates of the events are in that of the
109 // MenuScrollViewContainer. 109 // MenuScrollViewContainer.
110 void OnMousePressed(SubmenuView* source, const ui::MouseEvent& event); 110 void OnMousePressed(SubmenuView* source, const ui::MouseEvent& event);
111 void OnMouseDragged(SubmenuView* source, const ui::MouseEvent& event); 111 void OnMouseDragged(SubmenuView* source, const ui::MouseEvent& event);
112 void OnMouseReleased(SubmenuView* source, const ui::MouseEvent& event); 112 void OnMouseReleased(SubmenuView* source, const ui::MouseEvent& event);
113 void OnMouseMoved(SubmenuView* source, const ui::MouseEvent& event); 113 void OnMouseMoved(SubmenuView* source, const ui::MouseEvent& event);
114 void OnMouseEntered(SubmenuView* source, const ui::MouseEvent& event); 114 void OnMouseEntered(SubmenuView* source, const ui::MouseEvent& event);
115 #if defined(USE_AURA)
116 bool OnMouseWheel(SubmenuView* source, const ui::MouseWheelEvent& event); 115 bool OnMouseWheel(SubmenuView* source, const ui::MouseWheelEvent& event);
117 #endif
118 void OnGestureEvent(SubmenuView* source, ui::GestureEvent* event); 116 void OnGestureEvent(SubmenuView* source, ui::GestureEvent* event);
119 117
120 bool GetDropFormats( 118 bool GetDropFormats(
121 SubmenuView* source, 119 SubmenuView* source,
122 int* formats, 120 int* formats,
123 std::set<ui::OSExchangeData::CustomFormat>* custom_formats); 121 std::set<ui::OSExchangeData::CustomFormat>* custom_formats);
124 bool AreDropTypesRequired(SubmenuView* source); 122 bool AreDropTypesRequired(SubmenuView* source);
125 bool CanDrop(SubmenuView* source, const ui::OSExchangeData& data); 123 bool CanDrop(SubmenuView* source, const ui::OSExchangeData& data);
126 void OnDragEntered(SubmenuView* source, const ui::DropTargetEvent& event); 124 void OnDragEntered(SubmenuView* source, const ui::DropTargetEvent& event);
127 int OnDragUpdated(SubmenuView* source, const ui::DropTargetEvent& event); 125 int OnDragUpdated(SubmenuView* source, const ui::DropTargetEvent& event);
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 587
590 // Set to true if the menu item was selected by touch. 588 // Set to true if the menu item was selected by touch.
591 bool item_selected_by_touch_; 589 bool item_selected_by_touch_;
592 590
593 DISALLOW_COPY_AND_ASSIGN(MenuController); 591 DISALLOW_COPY_AND_ASSIGN(MenuController);
594 }; 592 };
595 593
596 } // namespace views 594 } // namespace views
597 595
598 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 596 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698