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

Side by Side Diff: ui/android/view_client.h

Issue 2896993002: Route OnDragEvent through ViewAndroid tree (Closed)
Patch Set: +ui/base Created 3 years, 6 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
« no previous file with comments | « ui/android/view_android.cc ('k') | ui/android/view_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ANDROID_VIEW_CLIENT_H_ 5 #ifndef UI_ANDROID_VIEW_CLIENT_H_
6 #define UI_ANDROID_VIEW_CLIENT_H_ 6 #define UI_ANDROID_VIEW_CLIENT_H_
7 7
8 #include "ui/android/ui_android_export.h" 8 #include "ui/android/ui_android_export.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 class DragEventAndroid;
12 class MotionEventAndroid; 13 class MotionEventAndroid;
13 14
14 // Client interface used to forward events from Java to native views. 15 // Client interface used to forward events from Java to native views.
15 // Calls are dispatched to its children along the hierarchy of ViewAndroid. 16 // Calls are dispatched to its children along the hierarchy of ViewAndroid.
16 // Use bool return type to stop propagating the call i.e. overriden method 17 // Use bool return type to stop propagating the call i.e. overriden method
17 // should return true to indicate that the event was handled and stop 18 // should return true to indicate that the event was handled and stop
18 // the processing. 19 // the processing.
19 class UI_ANDROID_EXPORT ViewClient { 20 class UI_ANDROID_EXPORT ViewClient {
20 public: 21 public:
21 virtual bool OnTouchEvent(const MotionEventAndroid& event, 22 virtual bool OnTouchEvent(const MotionEventAndroid& event,
22 bool for_touch_handle); 23 bool for_touch_handle);
23 virtual bool OnMouseEvent(const MotionEventAndroid& event); 24 virtual bool OnMouseEvent(const MotionEventAndroid& event);
24 virtual bool OnMouseWheelEvent(const MotionEventAndroid& event); 25 virtual bool OnMouseWheelEvent(const MotionEventAndroid& event);
26 virtual bool OnDragEvent(const DragEventAndroid& event);
25 virtual void OnPhysicalBackingSizeChanged(); 27 virtual void OnPhysicalBackingSizeChanged();
26 }; 28 };
27 29
28 } // namespace ui 30 } // namespace ui
29 31
30 #endif // UI_ANDROID_VIEW_CLIENT_H_ 32 #endif // UI_ANDROID_VIEW_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/android/view_android.cc ('k') | ui/android/view_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698