summaryrefslogtreecommitdiffstats
path: root/ash/sticky_keys
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-10 22:47:32 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-10 22:47:32 +0000
commita0695522cd9b30f87461513fa9e472afb5e4a304 (patch)
treeb1c6290f774f07e1b5ead7d10bf4197410fccacc /ash/sticky_keys
parentf636ce801b677854048affa6d550a9ac84c611b0 (diff)
downloadchromium_src-a0695522cd9b30f87461513fa9e472afb5e4a304.zip
chromium_src-a0695522cd9b30f87461513fa9e472afb5e4a304.tar.gz
chromium_src-a0695522cd9b30f87461513fa9e472afb5e4a304.tar.bz2
Provide access to the WindowEventDispatcher as a ui::EventProcessor.
This avoids using WED from a number of places and moves us closer to a world where WED is more of an implementation detail of WTH. R=sky@chromium.org TBR=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/191153004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256053 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/sticky_keys')
-rw-r--r--ash/sticky_keys/sticky_keys_unittest.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/ash/sticky_keys/sticky_keys_unittest.cc b/ash/sticky_keys/sticky_keys_unittest.cc
index e552c22..dda01d8 100644
--- a/ash/sticky_keys/sticky_keys_unittest.cc
+++ b/ash/sticky_keys/sticky_keys_unittest.cc
@@ -15,8 +15,9 @@
#include "base/callback.h"
#include "base/memory/scoped_vector.h"
#include "ui/aura/window.h"
-#include "ui/aura/window_event_dispatcher.h"
+#include "ui/aura/window_tree_host.h"
#include "ui/events/event_handler.h"
+#include "ui/events/event_processor.h"
#include "ui/events/test/events_test_utils_x11.h"
#include "ui/events/x/device_data_manager.h"
@@ -263,7 +264,7 @@ class StickyKeysTest : public test::AshTestBase,
handler->HandleKeyEvent(ev.get());
}
- void SendActivateStickyKeyPattern(aura::WindowEventDispatcher* dispatcher,
+ void SendActivateStickyKeyPattern(ui::EventProcessor* dispatcher,
ui::KeyboardCode key_code) {
scoped_ptr<ui::KeyEvent> ev;
ev.reset(GenerateKey(true, key_code));
@@ -793,8 +794,8 @@ TEST_F(StickyKeysTest, KeyEventDispatchImpl) {
// Test the actual key event dispatch implementation.
EventBuffer buffer;
ScopedVector<ui::Event> events;
- aura::WindowEventDispatcher* dispatcher =
- Shell::GetPrimaryRootWindow()->GetHost()->dispatcher();
+ ui::EventProcessor* dispatcher =
+ Shell::GetPrimaryRootWindow()->GetHost()->event_processor();
Shell::GetInstance()->AddPreTargetHandler(&buffer);
Shell::GetInstance()->sticky_keys_controller()->Enable(true);
@@ -833,8 +834,8 @@ TEST_F(StickyKeysTest, MouseEventDispatchImpl) {
// Test the actual sticky mouse event dispatch implementation.
EventBuffer buffer;
ScopedVector<ui::Event> events;
- aura::WindowEventDispatcher* dispatcher =
- Shell::GetPrimaryRootWindow()->GetHost()->dispatcher();
+ ui::EventProcessor* dispatcher =
+ Shell::GetPrimaryRootWindow()->GetHost()->event_processor();
Shell::GetInstance()->AddPreTargetHandler(&buffer);
Shell::GetInstance()->sticky_keys_controller()->Enable(true);
@@ -870,8 +871,8 @@ TEST_F(StickyKeysTest, MouseWheelEventDispatchImpl) {
// Test the actual mouse wheel event dispatch implementation.
EventBuffer buffer;
ScopedVector<ui::Event> events;
- aura::WindowEventDispatcher* dispatcher =
- Shell::GetPrimaryRootWindow()->GetHost()->dispatcher();
+ ui::EventProcessor* dispatcher =
+ Shell::GetPrimaryRootWindow()->GetHost()->event_processor();
Shell::GetInstance()->AddPreTargetHandler(&buffer);
Shell::GetInstance()->sticky_keys_controller()->Enable(true);