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

Unified Diff: mojo/services/native_viewport/native_viewport_impl.h

Issue 685013002: Refactors event dispatching of NativeViewport into its own interface (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 6 years, 2 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 | « examples/surfaces_app/surfaces_app.cc ('k') | mojo/services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/native_viewport/native_viewport_impl.h
diff --git a/mojo/services/native_viewport/native_viewport_impl.h b/mojo/services/native_viewport/native_viewport_impl.h
index d63b0f7215539f1022f39633cbafdbf616d9cc5d..e0e37a9290c6a13e71af73b5fce7ea028fb20e56 100644
--- a/mojo/services/native_viewport/native_viewport_impl.h
+++ b/mojo/services/native_viewport/native_viewport_impl.h
@@ -35,6 +35,7 @@ class NativeViewportImpl : public InterfaceImpl<NativeViewport>,
void Close() override;
void SetSize(SizePtr size) override;
void SubmittedFrame(SurfaceIdPtr surface_id) override;
+ void SetEventDispatcher(NativeViewportEventDispatcherPtr dispatcher) override;
// PlatformViewport::Delegate implementation.
void OnBoundsChanged(const gfx::Rect& bounds) override;
@@ -57,6 +58,7 @@ class NativeViewportImpl : public InterfaceImpl<NativeViewport>,
cc::SurfaceId child_surface_id_;
bool waiting_for_event_ack_;
Callback<void(uint64_t)> create_callback_;
+ NativeViewportEventDispatcherPtr event_dispatcher_;
base::WeakPtrFactory<NativeViewportImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl);
« no previous file with comments | « examples/surfaces_app/surfaces_app.cc ('k') | mojo/services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698