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

Unified Diff: ui/aura/event_filter_unittest.cc

Issue 10825050: Introduce RootWindowHostDelegate. The RootWindowHost performs most of its communication with RootWi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « ui/aura/aura.gyp ('k') | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/event_filter_unittest.cc
===================================================================
--- ui/aura/event_filter_unittest.cc (revision 148788)
+++ ui/aura/event_filter_unittest.cc (working copy)
@@ -107,7 +107,7 @@
EventGenerator generator(root_window(), w1111.get());
generator.PressLeftButton();
KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, 0);
- root_window()->DispatchKeyEvent(&key_event);
+ root_window()->AsRootWindowHostDelegate()->OnHostKeyEvent(&key_event);
// TODO(sadrul): TouchEvent!
EXPECT_EQ(1, root_window_filter->key_event_count());
@@ -133,7 +133,7 @@
w1_filter->set_consumes_mouse_events(true);
generator.ReleaseLeftButton();
- root_window()->DispatchKeyEvent(&key_event);
+ root_window()->AsRootWindowHostDelegate()->OnHostKeyEvent(&key_event);
// TODO(sadrul): TouchEvent!
EXPECT_EQ(1, root_window_filter->key_event_count());
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698