OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // NOTE: the coordinates of the events are in that of the | 102 // NOTE: the coordinates of the events are in that of the |
103 // MenuScrollViewContainer. | 103 // MenuScrollViewContainer. |
104 void OnMousePressed(SubmenuView* source, const ui::MouseEvent& event); | 104 void OnMousePressed(SubmenuView* source, const ui::MouseEvent& event); |
105 void OnMouseDragged(SubmenuView* source, const ui::MouseEvent& event); | 105 void OnMouseDragged(SubmenuView* source, const ui::MouseEvent& event); |
106 void OnMouseReleased(SubmenuView* source, const ui::MouseEvent& event); | 106 void OnMouseReleased(SubmenuView* source, const ui::MouseEvent& event); |
107 void OnMouseMoved(SubmenuView* source, const ui::MouseEvent& event); | 107 void OnMouseMoved(SubmenuView* source, const ui::MouseEvent& event); |
108 void OnMouseEntered(SubmenuView* source, const ui::MouseEvent& event); | 108 void OnMouseEntered(SubmenuView* source, const ui::MouseEvent& event); |
109 #if defined(OS_LINUX) | 109 #if defined(OS_LINUX) |
110 bool OnMouseWheel(SubmenuView* source, const ui::MouseWheelEvent& event); | 110 bool OnMouseWheel(SubmenuView* source, const ui::MouseWheelEvent& event); |
111 #endif | 111 #endif |
112 ui::EventResult OnGestureEvent(SubmenuView* source, | 112 void OnGestureEvent(SubmenuView* source, ui::GestureEvent* event); |
113 ui::GestureEvent* event); | |
114 | 113 |
115 bool GetDropFormats( | 114 bool GetDropFormats( |
116 SubmenuView* source, | 115 SubmenuView* source, |
117 int* formats, | 116 int* formats, |
118 std::set<ui::OSExchangeData::CustomFormat>* custom_formats); | 117 std::set<ui::OSExchangeData::CustomFormat>* custom_formats); |
119 bool AreDropTypesRequired(SubmenuView* source); | 118 bool AreDropTypesRequired(SubmenuView* source); |
120 bool CanDrop(SubmenuView* source, const ui::OSExchangeData& data); | 119 bool CanDrop(SubmenuView* source, const ui::OSExchangeData& data); |
121 void OnDragEntered(SubmenuView* source, const ui::DropTargetEvent& event); | 120 void OnDragEntered(SubmenuView* source, const ui::DropTargetEvent& event); |
122 int OnDragUpdated(SubmenuView* source, const ui::DropTargetEvent& event); | 121 int OnDragUpdated(SubmenuView* source, const ui::DropTargetEvent& event); |
123 void OnDragExited(SubmenuView* source); | 122 void OnDragExited(SubmenuView* source); |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 int message_loop_depth_; | 552 int message_loop_depth_; |
554 | 553 |
555 views::MenuConfig menu_config_; | 554 views::MenuConfig menu_config_; |
556 | 555 |
557 DISALLOW_COPY_AND_ASSIGN(MenuController); | 556 DISALLOW_COPY_AND_ASSIGN(MenuController); |
558 }; | 557 }; |
559 | 558 |
560 } // namespace views | 559 } // namespace views |
561 | 560 |
562 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 561 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
OLD | NEW |