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

Unified Diff: services/native_viewport/platform_viewport.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
Index: services/native_viewport/platform_viewport.h
diff --git a/services/native_viewport/platform_viewport.h b/services/native_viewport/platform_viewport.h
index 69bc4c7b2624f2017df531061a9b8e368eebdb77..e518dfafa2aa7b6d8f4fa4ed97ae493a3e0e01e0 100644
--- a/services/native_viewport/platform_viewport.h
+++ b/services/native_viewport/platform_viewport.h
@@ -41,6 +41,11 @@ class PlatformViewport {
virtual gfx::Size GetSize() = 0;
virtual void SetBounds(const gfx::Rect& bounds) = 0;
+ // Called when a new native surface has been created by the host system and
+ // should be used by this viewport. Returns whether the surface has been
+ // attached to or not.
+ virtual bool NewNativeSurfaceAvailable() = 0;
+
static scoped_ptr<PlatformViewport> Create(Delegate* delegate);
};

Powered by Google App Engine
This is Rietveld 408576698