Index: ui/keyboard/keyboard_util.cc |
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc |
index bdb049df32c086d3c5bfbedd9059925001763aa3..d8c7b7add01ee1f39748f0d871fcf3d31627bc1c 100644 |
--- a/ui/keyboard/keyboard_util.cc |
+++ b/ui/keyboard/keyboard_util.cc |
@@ -29,7 +29,7 @@ void SendProcessKeyEvent(ui::EventType type, |
ui::TranslatedKeyEvent event(type == ui::ET_KEY_PRESSED, |
ui::VKEY_PROCESSKEY, |
ui::EF_NONE); |
- dispatcher->AsRootWindowHostDelegate()->OnHostKeyEvent(&event); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostKeyEvent(&event); |
} |
base::LazyInstance<base::Time> g_keyboard_load_time_start = |
@@ -92,17 +92,17 @@ bool MoveCursor(int swipe_direction, |
// First deal with the x movement. |
if (codex != ui::VKEY_UNKNOWN) { |
ui::KeyEvent press_event(ui::ET_KEY_PRESSED, codex, modifier_flags, 0); |
- dispatcher->AsRootWindowHostDelegate()->OnHostKeyEvent(&press_event); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostKeyEvent(&press_event); |
ui::KeyEvent release_event(ui::ET_KEY_RELEASED, codex, modifier_flags, 0); |
- dispatcher->AsRootWindowHostDelegate()->OnHostKeyEvent(&release_event); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostKeyEvent(&release_event); |
} |
// Then deal with the y movement. |
if (codey != ui::VKEY_UNKNOWN) { |
ui::KeyEvent press_event(ui::ET_KEY_PRESSED, codey, modifier_flags, 0); |
- dispatcher->AsRootWindowHostDelegate()->OnHostKeyEvent(&press_event); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostKeyEvent(&press_event); |
ui::KeyEvent release_event(ui::ET_KEY_RELEASED, codey, modifier_flags, 0); |
- dispatcher->AsRootWindowHostDelegate()->OnHostKeyEvent(&release_event); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostKeyEvent(&release_event); |
} |
return true; |
} |
@@ -155,7 +155,7 @@ bool SendKeyEvent(const std::string type, |
} |
ui::KeyEvent event(event_type, code, key_name, modifiers, false); |
- dispatcher->AsRootWindowHostDelegate()->OnHostKeyEvent(&event); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostKeyEvent(&event); |
} |
return true; |
} |