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

Unified Diff: ui/android/view_client.h

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: addressed comments Created 4 years 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 side-by-side diff with in-line comments
Download patch
« ui/android/view_android.cc ('K') | « ui/android/view_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/view_client.h
diff --git a/ui/android/view_client.h b/ui/android/view_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..ea99f1e700d8a16f6f21ce0f0894ad354783764d
--- /dev/null
+++ b/ui/android/view_client.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_ANDROID_VIEW_CLIENT_H_
+#define UI_ANDROID_VIEW_CLIENT_H_
+
+#include "ui/android/ui_android_export.h"
+
+namespace ui {
+
+// Client interface used to forward events from Java to native views.
+// Calls not handled by a client are dispatched to its children along
+// the hierarchy of ViewAndroid. Overriden method should return true
+// to indicate that the event was handled and stop the processing.
+class UI_ANDROID_EXPORT ViewClient {
+ public:
+ virtual bool OnPhysicalBackingSizeChanged(int width, int height);
boliu 2016/12/06 00:34:14 if this were touch events, then returning a bool w
Jinsuk Kim 2016/12/06 07:35:07 Not really a good example for the change :/ Turne
+};
+
+} // namespace ui
+
+#endif // UI_ANDROID_VIEW_CLIENT_H_
« ui/android/view_android.cc ('K') | « ui/android/view_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698