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

Unified Diff: ui/android/window_android.h

Issue 2136373002: Make WindowAndroid a ViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@view3
Patch Set: Make WindowAndroid a ViewAndroid Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/android/view_android.cc ('k') | ui/android/window_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/window_android.h
diff --git a/ui/android/window_android.h b/ui/android/window_android.h
index f71f87e1d62bda39662d9b503953b08de920d8c0..92028392b3c713d3aaf0d0d659ca06a59c4ab1ba 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -15,6 +15,7 @@
#include "base/observer_list.h"
#include "base/time/time.h"
#include "ui/android/ui_android_export.h"
+#include "ui/android/view_android.h"
#include "ui/gfx/geometry/vector2d_f.h"
namespace ui {
@@ -23,7 +24,8 @@ class WindowAndroidCompositor;
class WindowAndroidObserver;
// Android implementation of the activity window.
-class UI_ANDROID_EXPORT WindowAndroid {
+// WindowAndroid is also the root of a ViewAndroid tree.
+class UI_ANDROID_EXPORT WindowAndroid : public ViewAndroid {
public:
WindowAndroid(JNIEnv* env, jobject obj);
@@ -81,7 +83,10 @@ class UI_ANDROID_EXPORT WindowAndroid {
const base::android::JavaRef<jobject>& jimage);
private:
- ~WindowAndroid();
+ ~WindowAndroid() override;
+
+ // ViewAndroid overrides.
+ WindowAndroid* GetWindowAndroid() const override;
base::android::ScopedJavaGlobalRef<jobject> java_window_;
gfx::Vector2dF content_offset_;
« no previous file with comments | « ui/android/view_android.cc ('k') | ui/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698