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..d734c2fa4af21bc3a96c19d3dc7ed4c6e2b34b6c |
--- /dev/null |
+++ b/ui/android/view_client.h |
@@ -0,0 +1,24 @@ |
+// 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 are dispatched to its children along the hierarchy of ViewAndroid. |
+// Use bool return type to stop propagating the call i.e. overriden method |
+// should return true to indicate that the event was handled and stop |
+// the processing. |
+class UI_ANDROID_EXPORT ViewClient { |
+ public: |
+ virtual void OnPhysicalBackingSizeChanged(int width, int height); |
boliu
2016/12/06 23:15:46
= 0? I don't see an implementation for this
Jinsuk Kim
2016/12/07 12:36:28
Ah forgot to git add view_client.cc... Meant to pr
|
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_ANDROID_VIEW_CLIENT_H_ |