diff options
Diffstat (limited to 'ui/keyboard/keyboard_util.cc')
-rw-r--r-- | ui/keyboard/keyboard_util.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc index bdb049d..d8c7b7a 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; } |