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

Unified Diff: ui/aura/window_event_dispatcher.h

Issue 2681613002: Avoid two targeting phases in aura client-lib and EventProcessor. (Closed)
Patch Set: different approach Created 3 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: ui/aura/window_event_dispatcher.h
diff --git a/ui/aura/window_event_dispatcher.h b/ui/aura/window_event_dispatcher.h
index 32b2b905bf04d5180ee83fdc869db514437a9ee5..227a9cc68bbad200c371dd4200a70acae8749e4a 100644
--- a/ui/aura/window_event_dispatcher.h
+++ b/ui/aura/window_event_dispatcher.h
@@ -173,7 +173,8 @@ class AURA_EXPORT WindowEventDispatcher : public ui::EventProcessor,
void ReleaseNativeCapture() override;
// Overridden from ui::EventProcessor:
- ui::EventTarget* GetRootTarget() override;
+ ui::EventTarget* GetRootForEvent(ui::Event* event) override;
+ ui::EventTargeter* GetDefaultEventTargeter() override;
void OnEventProcessingStarted(ui::Event* event) override;
void OnEventProcessingFinished(ui::Event* event) override;
@@ -262,6 +263,9 @@ class AURA_EXPORT WindowEventDispatcher : public ui::EventProcessor,
std::unique_ptr<MusMouseLocationUpdater> mus_mouse_location_updater_;
+ // The default EventTargeter for WindowEventDispatcher generated events.
+ std::unique_ptr<ui::EventTargeter> event_targeter_;
+
// Used to schedule reposting an event.
base::WeakPtrFactory<WindowEventDispatcher> repost_event_factory_;

Powered by Google App Engine
This is Rietveld 408576698