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

Unified Diff: services/native_viewport/platform_viewport_android.h

Issue 1280613003: Allow native_viewport to create new native windows on demand on Android. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 | « services/native_viewport/platform_viewport.h ('k') | services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/platform_viewport_android.h
diff --git a/services/native_viewport/platform_viewport_android.h b/services/native_viewport/platform_viewport_android.h
index f9fd7ad514db8a265b8e66f28e1d523608887ac8..7905a6dfc6776ab9f4f7bac01d195f509212e2b1 100644
--- a/services/native_viewport/platform_viewport_android.h
+++ b/services/native_viewport/platform_viewport_android.h
@@ -18,6 +18,10 @@ namespace gpu {
class GLInProcessContext;
}
+namespace mojo {
+class ApplicationImpl;
+}
+
struct ANativeWindow;
namespace native_viewport {
@@ -26,10 +30,12 @@ class PlatformViewportAndroid : public PlatformViewport {
public:
static bool Register(JNIEnv* env);
- explicit PlatformViewportAndroid(Delegate* delegate);
+ explicit PlatformViewportAndroid(mojo::ApplicationImpl* application,
+ Delegate* delegate);
virtual ~PlatformViewportAndroid();
void Destroy(JNIEnv* env, jobject obj);
+ void SurfaceAttached(JNIEnv* env, jobject obj, jobject platform_viewport);
void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface);
void SurfaceDestroyed(JNIEnv* env, jobject obj);
void SurfaceSetSize(JNIEnv* env,
@@ -62,6 +68,7 @@ class PlatformViewportAndroid : public PlatformViewport {
void ReleaseWindow();
+ mojo::ApplicationImpl* application_;
Delegate* const delegate_;
JavaObjectWeakGlobalRef java_platform_viewport_android_;
ANativeWindow* window_;
« no previous file with comments | « services/native_viewport/platform_viewport.h ('k') | services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698