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

Unified Diff: ash/sticky_keys/sticky_keys_unittest.cc

Issue 191153004: Provide access to the WindowEventDispatcher as a ui::EventProcessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sticky_keys/sticky_keys_unittest.cc
diff --git a/ash/sticky_keys/sticky_keys_unittest.cc b/ash/sticky_keys/sticky_keys_unittest.cc
index e552c22f9a6cd9872ec21767d06e20a37dcafdf3..dda01d87f8a0ad88224d087f10cf14aebe8df8bd 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);
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698