diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 17:17:39 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 17:17:39 +0000 |
commit | 4c5d7c9d04549a993a03ecdf705f484dd1480b0c (patch) | |
tree | 22190503dc6a84a7c4252f35825acac194598893 /ui/aura/root_window.h | |
parent | b5a0e743e4658dfee809623ac0721a520c7d8baf (diff) | |
download | chromium_src-4c5d7c9d04549a993a03ecdf705f484dd1480b0c.zip chromium_src-4c5d7c9d04549a993a03ecdf705f484dd1480b0c.tar.gz chromium_src-4c5d7c9d04549a993a03ecdf705f484dd1480b0c.tar.bz2 |
aura: Start using EventPrcessor interface for event dispatch.
Start converting the RootWindowHostDelegate implementations for event-dispatch
use the EventProcessor interface under-the-hood to allow easy transition to the
new dispatch process.
This patch makes this change for Key and Scroll events.
BUG=318879
R=ben@chromium.org
Review URL: https://codereview.chromium.org/113283005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window.h')
-rw-r--r-- | ui/aura/root_window.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h index d85e1d8..e6b46d0 100644 --- a/ui/aura/root_window.h +++ b/ui/aura/root_window.h @@ -273,6 +273,7 @@ class AURA_EXPORT RootWindow : public ui::EventProcessor, // Overridden from ui::EventProcessor: virtual ui::EventTarget* GetRootTarget() OVERRIDE; + virtual void PrepareEventForDispatch(ui::Event* event) OVERRIDE; // Overridden from ui::EventDispatcherDelegate. virtual bool CanDispatchToTarget(ui::EventTarget* target) OVERRIDE; @@ -335,7 +336,6 @@ class AURA_EXPORT RootWindow : public ui::EventProcessor, // current mouse location. ui::EventDispatchDetails SynthesizeMouseMoveEvent() WARN_UNUSED_RESULT; - void DispatchHeldEventsAsync(); void SynthesizeMouseMoveEventAsync(); // Posts a task to send synthesized mouse move event if there @@ -344,6 +344,8 @@ class AURA_EXPORT RootWindow : public ui::EventProcessor, gfx::Transform GetInverseRootTransform() const; + void PreDispatchLocatedEvent(Window* target, ui::LocatedEvent* event); + // TODO(beng): evaluate the ideal ownership model. scoped_ptr<Window> window_; @@ -378,6 +380,9 @@ class AURA_EXPORT RootWindow : public ui::EventProcessor, // Allowing for reposting of events. Used when exiting context menus. scoped_ptr<ui::LocatedEvent> held_repostable_event_; + // Set when dispatching a held event. + bool dispatching_held_event_; + scoped_ptr<ui::ViewProp> prop_; scoped_ptr<RootWindowTransformer> transformer_; |