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

Unified Diff: mojo/services/window_manager/view_event_dispatcher.cc

Issue 724973003: Get event targetting working for mouse events. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: More comments, de-const a bunch of stuff in ui/. Created 6 years, 1 month 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 | « mojo/services/window_manager/view_event_dispatcher.h ('k') | mojo/services/window_manager/view_target.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/window_manager/view_event_dispatcher.cc
diff --git a/mojo/services/window_manager/view_event_dispatcher.cc b/mojo/services/window_manager/view_event_dispatcher.cc
index ce58ac7dd67168f7dd6db1cfd387beb76ac741e9..808c80c89012dd476ad3095d25bceba804acf3f1 100644
--- a/mojo/services/window_manager/view_event_dispatcher.cc
+++ b/mojo/services/window_manager/view_event_dispatcher.cc
@@ -4,6 +4,7 @@
#include "mojo/services/window_manager/view_event_dispatcher.h"
+#include "mojo/services/public/cpp/view_manager/view.h"
#include "mojo/services/window_manager/view_target.h"
namespace mojo {
@@ -16,11 +17,11 @@ ViewEventDispatcher::ViewEventDispatcher()
ViewEventDispatcher::~ViewEventDispatcher() {}
void ViewEventDispatcher::SetRootViewTarget(ViewTarget* root_view_target) {
- root_view_target_.reset(root_view_target);
+ root_view_target_ = root_view_target;
}
ui::EventTarget* ViewEventDispatcher::GetRootTarget() {
- return root_view_target_.get();
+ return root_view_target_;
}
void ViewEventDispatcher::OnEventProcessingStarted(ui::Event* event) {
« no previous file with comments | « mojo/services/window_manager/view_event_dispatcher.h ('k') | mojo/services/window_manager/view_target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698