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

Unified Diff: services/native_viewport/native_viewport_impl.cc

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.cc
diff --git a/services/native_viewport/native_viewport_impl.cc b/services/native_viewport/native_viewport_impl.cc
index 1fcb20f701312e71437af1a1c8bfb199877c0ec0..3d779a721ebdf116643770cc564de4198420894f 100644
--- a/services/native_viewport/native_viewport_impl.cc
+++ b/services/native_viewport/native_viewport_impl.cc
@@ -163,4 +163,12 @@ void NativeViewportImpl::AckEvent(int32 pointer_id) {
pointers_waiting_on_ack_.erase(pointer_id);
}
+base::WeakPtr<NativeViewportImpl> NativeViewportImpl::GetWeakPtr() {
+ return weak_factory_.GetWeakPtr();
+}
+
+bool NativeViewportImpl::NewNativeSurfaceAvailable() {
+ return platform_viewport_->NewNativeSurfaceAvailable();
+}
+
} // namespace native_viewport

Powered by Google App Engine
This is Rietveld 408576698