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

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

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: unittest Created 3 years, 11 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_unittest.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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_ANDROID_VIEW_CLIENT_H_
6 #define UI_ANDROID_VIEW_CLIENT_H_
7
8 #include "ui/android/ui_android_export.h"
9 #include "ui/events/android/motion_event_android.h"
10
11 namespace ui {
12
13 // Client interface used to forward events from Java to native views.
14 // Calls are dispatched to its children along the hierarchy of ViewAndroid.
15 // Use bool return type to stop propagating the call i.e. overriden method
16 // should return true to indicate that the event was handled and stop
17 // the processing.
18 class UI_ANDROID_EXPORT ViewClient {
19 public:
20 virtual bool OnTouchEvent(const MotionEventAndroid& event,
21 bool is_touch_handle_event);
22 };
23
24 } // namespace ui
25
26 #endif // UI_ANDROID_VIEW_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/android/view_android_unittest.cc ('k') | ui/android/view_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698