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

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

Issue 8508024: Support touch scroll gestures in menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Gardening. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 5 #ifndef VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
6 #define VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 6 #define 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Various events, forwarded from the submenu. 94 // Various events, forwarded from the submenu.
95 // 95 //
96 // NOTE: the coordinates of the events are in that of the 96 // NOTE: the coordinates of the events are in that of the
97 // MenuScrollViewContainer. 97 // MenuScrollViewContainer.
98 void OnMousePressed(SubmenuView* source, const MouseEvent& event); 98 void OnMousePressed(SubmenuView* source, const MouseEvent& event);
99 void OnMouseDragged(SubmenuView* source, const MouseEvent& event); 99 void OnMouseDragged(SubmenuView* source, const MouseEvent& event);
100 void OnMouseReleased(SubmenuView* source, const MouseEvent& event); 100 void OnMouseReleased(SubmenuView* source, const MouseEvent& event);
101 void OnMouseMoved(SubmenuView* source, const MouseEvent& event); 101 void OnMouseMoved(SubmenuView* source, const MouseEvent& event);
102 void OnMouseEntered(SubmenuView* source, const MouseEvent& event); 102 void OnMouseEntered(SubmenuView* source, const MouseEvent& event);
103 #if defined(OS_LINUX) 103 #if defined(OS_LINUX)
rjkroege 2012/01/19 16:15:08 does this need the #ifdef?
104 bool OnMouseWheel(SubmenuView* source, const MouseWheelEvent& event); 104 bool OnMouseWheel(SubmenuView* source, const MouseWheelEvent& event);
105 ui::GestureStatus OnGestureEvent(SubmenuView* source,
106 const GestureEvent& event);
105 #endif 107 #endif
106 108
107 bool GetDropFormats( 109 bool GetDropFormats(
108 SubmenuView* source, 110 SubmenuView* source,
109 int* formats, 111 int* formats,
110 std::set<OSExchangeData::CustomFormat>* custom_formats); 112 std::set<OSExchangeData::CustomFormat>* custom_formats);
111 bool AreDropTypesRequired(SubmenuView* source); 113 bool AreDropTypesRequired(SubmenuView* source);
112 bool CanDrop(SubmenuView* source, const OSExchangeData& data); 114 bool CanDrop(SubmenuView* source, const OSExchangeData& data);
113 void OnDragEntered(SubmenuView* source, const DropTargetEvent& event); 115 void OnDragEntered(SubmenuView* source, const DropTargetEvent& event);
114 int OnDragUpdated(SubmenuView* source, const DropTargetEvent& event); 116 int OnDragUpdated(SubmenuView* source, const DropTargetEvent& event);
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 View* active_mouse_view_; 501 View* active_mouse_view_;
500 502
501 internal::MenuControllerDelegate* delegate_; 503 internal::MenuControllerDelegate* delegate_;
502 504
503 DISALLOW_COPY_AND_ASSIGN(MenuController); 505 DISALLOW_COPY_AND_ASSIGN(MenuController);
504 }; 506 };
505 507
506 } // namespace views 508 } // namespace views
507 509
508 #endif // VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 510 #endif // VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698