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

Unified Diff: ash/sticky_keys/sticky_keys_overlay_unittest.cc

Issue 147203004: aura: Remove event-dispatch methods from WindowTreeHostDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 11 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/sticky_keys/sticky_keys_controller.cc ('k') | ash/sticky_keys/sticky_keys_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sticky_keys/sticky_keys_overlay_unittest.cc
diff --git a/ash/sticky_keys/sticky_keys_overlay_unittest.cc b/ash/sticky_keys/sticky_keys_overlay_unittest.cc
index de2d980e931f97346a13c597fb2b1f1593d0d37d..a5aecb41812c54d39e943fa81e0ea9702fa0a9c1 100644
--- a/ash/sticky_keys/sticky_keys_overlay_unittest.cc
+++ b/ash/sticky_keys/sticky_keys_overlay_unittest.cc
@@ -41,9 +41,9 @@ class StickyKeysOverlayTest : public test::AshTestBase {
ui::Event::DispatcherApi dispatcher(&event);
dispatcher.set_target(Shell::GetInstance()->GetPrimaryRootWindow());
- aura::WindowTreeHostDelegate* delegate = Shell::GetPrimaryRootWindow()
- ->GetDispatcher()->AsWindowTreeHostDelegate();
- delegate->OnHostKeyEvent(&event);
+ ui::EventDispatchDetails details = Shell::GetPrimaryRootWindow()->
+ GetDispatcher()->OnEventFromSource(&event);
+ CHECK(!details.dispatcher_destroyed);
}
StickyKeysController* controller_;
« no previous file with comments | « ash/sticky_keys/sticky_keys_controller.cc ('k') | ash/sticky_keys/sticky_keys_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698