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

Unified Diff: sky/shell/android/platform_view_android.h

Issue 1169983005: sky/shell updates for Android and iOS (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: sky/shell/android/platform_view_android.h
diff --git a/sky/shell/android/platform_view_android.h b/sky/shell/android/platform_view_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..a03faa8276315ae3b12756988b079c4f2134ce15
--- /dev/null
+++ b/sky/shell/android/platform_view_android.h
@@ -0,0 +1,36 @@
+// Copyright 2015 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 SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
+#define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
+
+#include "sky/shell/platform_view.h"
+
+struct ANativeWindow;
+
+namespace sky {
+namespace shell {
+
+class PlatformViewAndroid : public PlatformView {
+ public:
+ static bool Register(JNIEnv* env);
+ ~PlatformViewAndroid() override;
+
+ // Called from Java
+ void Detach(JNIEnv* env, jobject obj);
+ void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface);
+ void SurfaceDestroyed(JNIEnv* env, jobject obj);
+
+ private:
+ void ReleaseWindow();
+
+ ANativeWindow* window_;
+
+ DISALLOW_COPY_AND_ASSIGN(PlatformViewAndroid);
+};
+
+} // namespace shell
+} // namespace sky
+
+#endif // SKY_SHELL_PLATFORM_VIEW_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698