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

Unified Diff: ui/aura/test/event_generator.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/shared/input_method_event_filter.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/event_generator.cc
===================================================================
--- ui/aura/test/event_generator.cc (revision 148788)
+++ ui/aura/test/event_generator.cc (working copy)
@@ -215,7 +215,8 @@
switch (event.type()) {
case ui::ET_KEY_PRESSED:
case ui::ET_KEY_RELEASED:
- root_window_->DispatchKeyEvent(static_cast<KeyEvent*>(&event));
+ root_window_->AsRootWindowHostDelegate()->OnHostKeyEvent(
+ static_cast<KeyEvent*>(&event));
break;
case ui::ET_MOUSE_PRESSED:
case ui::ET_MOUSE_DRAGGED:
@@ -224,14 +225,16 @@
case ui::ET_MOUSE_ENTERED:
case ui::ET_MOUSE_EXITED:
case ui::ET_MOUSEWHEEL:
- root_window_->DispatchMouseEvent(static_cast<MouseEvent*>(&event));
+ root_window_->AsRootWindowHostDelegate()->OnHostMouseEvent(
+ static_cast<MouseEvent*>(&event));
break;
case ui::ET_TOUCH_RELEASED:
case ui::ET_TOUCH_PRESSED:
case ui::ET_TOUCH_MOVED:
case ui::ET_TOUCH_STATIONARY:
case ui::ET_TOUCH_CANCELLED:
- root_window_->DispatchTouchEvent(static_cast<TouchEvent*>(&event));
+ root_window_->AsRootWindowHostDelegate()->OnHostTouchEvent(
+ static_cast<TouchEvent*>(&event));
break;
default:
NOTIMPLEMENTED();
« no previous file with comments | « ui/aura/shared/input_method_event_filter.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698