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

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

Issue 724973003: Get event targetting working for mouse events. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Move on top of the recently committed local view property stuff. 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
Index: mojo/services/window_manager/view_event_dispatcher.h
diff --git a/mojo/services/window_manager/view_event_dispatcher.h b/mojo/services/window_manager/view_event_dispatcher.h
index 9987b6592192dc7df508341780269a929057eba6..4f154af211b5e286956835dc0adc88caab8dabe8 100644
--- a/mojo/services/window_manager/view_event_dispatcher.h
+++ b/mojo/services/window_manager/view_event_dispatcher.h
@@ -32,8 +32,9 @@ class ViewEventDispatcher : public ui::EventProcessor {
ui::EventDispatchDetails PostDispatchEvent(
ui::EventTarget* target, const ui::Event& event) override;
- // We own the root of the shadow tree which mirrors the mojo::View* tree.
- scoped_ptr<ViewTarget> root_view_target_;
+ // We keep a weak reference to ViewTarget*, which corresponds to the root of
+ // the mojo::View tree.
+ ViewTarget* root_view_target_;
ViewTarget* event_dispatch_target_;
ViewTarget* old_dispatch_target_;

Powered by Google App Engine
This is Rietveld 408576698