| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // NOTE: the coordinates of the events are in that of the | 97 // NOTE: the coordinates of the events are in that of the |
| 98 // MenuScrollViewContainer. | 98 // MenuScrollViewContainer. |
| 99 void OnMousePressed(SubmenuView* source, const MouseEvent& event); | 99 void OnMousePressed(SubmenuView* source, const MouseEvent& event); |
| 100 void OnMouseDragged(SubmenuView* source, const MouseEvent& event); | 100 void OnMouseDragged(SubmenuView* source, const MouseEvent& event); |
| 101 void OnMouseReleased(SubmenuView* source, const MouseEvent& event); | 101 void OnMouseReleased(SubmenuView* source, const MouseEvent& event); |
| 102 void OnMouseMoved(SubmenuView* source, const MouseEvent& event); | 102 void OnMouseMoved(SubmenuView* source, const MouseEvent& event); |
| 103 void OnMouseEntered(SubmenuView* source, const MouseEvent& event); | 103 void OnMouseEntered(SubmenuView* source, const MouseEvent& event); |
| 104 #if defined(OS_LINUX) | 104 #if defined(OS_LINUX) |
| 105 bool OnMouseWheel(SubmenuView* source, const MouseWheelEvent& event); | 105 bool OnMouseWheel(SubmenuView* source, const MouseWheelEvent& event); |
| 106 #endif | 106 #endif |
| 107 ui::GestureStatus OnGestureEvent(SubmenuView* source, |
| 108 const GestureEvent& event); |
| 107 | 109 |
| 108 bool GetDropFormats( | 110 bool GetDropFormats( |
| 109 SubmenuView* source, | 111 SubmenuView* source, |
| 110 int* formats, | 112 int* formats, |
| 111 std::set<OSExchangeData::CustomFormat>* custom_formats); | 113 std::set<OSExchangeData::CustomFormat>* custom_formats); |
| 112 bool AreDropTypesRequired(SubmenuView* source); | 114 bool AreDropTypesRequired(SubmenuView* source); |
| 113 bool CanDrop(SubmenuView* source, const OSExchangeData& data); | 115 bool CanDrop(SubmenuView* source, const OSExchangeData& data); |
| 114 void OnDragEntered(SubmenuView* source, const DropTargetEvent& event); | 116 void OnDragEntered(SubmenuView* source, const DropTargetEvent& event); |
| 115 int OnDragUpdated(SubmenuView* source, const DropTargetEvent& event); | 117 int OnDragUpdated(SubmenuView* source, const DropTargetEvent& event); |
| 116 void OnDragExited(SubmenuView* source); | 118 void OnDragExited(SubmenuView* source); |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 View* active_mouse_view_; | 510 View* active_mouse_view_; |
| 509 | 511 |
| 510 internal::MenuControllerDelegate* delegate_; | 512 internal::MenuControllerDelegate* delegate_; |
| 511 | 513 |
| 512 DISALLOW_COPY_AND_ASSIGN(MenuController); | 514 DISALLOW_COPY_AND_ASSIGN(MenuController); |
| 513 }; | 515 }; |
| 514 | 516 |
| 515 } // namespace views | 517 } // namespace views |
| 516 | 518 |
| 517 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 519 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| OLD | NEW |