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

Unified Diff: services/window_manager/native_viewport_event_dispatcher_impl.h

Issue 924653002: Use StrongBinding instead of InterfaceImpl in wm event dispatcher (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | services/window_manager/native_viewport_event_dispatcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/window_manager/native_viewport_event_dispatcher_impl.h
diff --git a/services/window_manager/native_viewport_event_dispatcher_impl.h b/services/window_manager/native_viewport_event_dispatcher_impl.h
index a95821d7ee5ed564f2de5d5de2c855bc661c6bbe..d09160d6e99a93f15306524c9b67faa3da2d84b0 100644
--- a/services/window_manager/native_viewport_event_dispatcher_impl.h
+++ b/services/window_manager/native_viewport_event_dispatcher_impl.h
@@ -6,6 +6,7 @@
#define SERVICES_WINDOW_MANAGER_NATIVE_VIEWPORT_EVENT_DISPATCHER_IMPL_H_
#include "base/basictypes.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
#include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom.h"
#include "ui/events/event_source.h"
@@ -15,9 +16,11 @@ class WindowManagerApp;
class NativeViewportEventDispatcherImpl
: public ui::EventSource,
- public mojo::InterfaceImpl<mojo::NativeViewportEventDispatcher> {
+ public mojo::NativeViewportEventDispatcher {
public:
- explicit NativeViewportEventDispatcherImpl(WindowManagerApp* app);
+ NativeViewportEventDispatcherImpl(
+ WindowManagerApp* app,
+ mojo::InterfaceRequest<mojo::NativeViewportEventDispatcher> request);
~NativeViewportEventDispatcherImpl() override;
private:
@@ -30,6 +33,7 @@ class NativeViewportEventDispatcherImpl
WindowManagerApp* app_;
+ mojo::StrongBinding<mojo::NativeViewportEventDispatcher> binding_;
DISALLOW_COPY_AND_ASSIGN(NativeViewportEventDispatcherImpl);
};
« no previous file with comments | « no previous file | services/window_manager/native_viewport_event_dispatcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698