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

Unified Diff: services/native_viewport/native_viewport_impl.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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 a07ca9ec41d6842ec27b1082912d6d545c3e538d..7307714511fc1e09861ff2c2adebe8a7354918c4 100644
--- a/services/native_viewport/native_viewport_impl.cc
+++ b/services/native_viewport/native_viewport_impl.cc
@@ -90,8 +90,9 @@ void NativeViewportImpl::GetContextProvider(
}
void NativeViewportImpl::SetEventDispatcher(
- mojo::NativeViewportEventDispatcherPtr dispatcher) {
- event_dispatcher_ = dispatcher.Pass();
+ mojo::InterfaceHandle<mojo::NativeViewportEventDispatcher> dispatcher) {
+ event_dispatcher_ =
+ mojo::NativeViewportEventDispatcherPtr::Create(std::move(dispatcher));
}
void NativeViewportImpl::OnMetricsChanged(mojo::ViewportMetricsPtr metrics) {
« no previous file with comments | « services/native_viewport/native_viewport_impl.h ('k') | services/native_viewport/onscreen_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698