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

Unified Diff: services/native_viewport/native_viewport_impl.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/native_viewport_impl.h
diff --git a/services/native_viewport/native_viewport_impl.h b/services/native_viewport/native_viewport_impl.h
index 15de028f5f3119c36ccf106e00e74cd5c8a8aa5a..d21bb7ab4bb9e7bbb54845462027477ad6473d0a 100644
--- a/services/native_viewport/native_viewport_impl.h
+++ b/services/native_viewport/native_viewport_impl.h
@@ -59,6 +59,13 @@ class NativeViewportImpl : public mojo::NativeViewport,
bool OnEvent(mojo::EventPtr event) override;
void OnDestroyed() override;
+ // Get a weak pointer to this object.
+ base::WeakPtr<NativeViewportImpl> GetWeakPtr();
+ // Notify the associated PlatformViewport that a new native surface is
+ // available. Returns true if the new surface has been attached to, false
+ // otherwise.
+ bool NewNativeSurfaceAvailable();
+
private:
// Callback when the dispatcher has processed a message we're waiting on
// an ack from. |pointer_id| identifies the pointer the message was associated

Powered by Google App Engine
This is Rietveld 408576698