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

Unified Diff: ui/keyboard/keyboard_util.cc

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | « ui/events/ozone/event_factory_ozone.h ('k') | ui/views/corewm/capture_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « ui/events/ozone/event_factory_ozone.h ('k') | ui/views/corewm/capture_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698