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

Unified Diff: chrome/browser/extensions/api/input/input.cc

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First cut for review/trybots Created 7 years, 2 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
Index: chrome/browser/extensions/api/input/input.cc
diff --git a/chrome/browser/extensions/api/input/input.cc b/chrome/browser/extensions/api/input/input.cc
index d550b8c8c4917ae9cfb60e75c10bcb19f5f58ce6..d946655f9f69098777dcda873dcaf1045526aeb3 100644
--- a/chrome/browser/extensions/api/input/input.cc
+++ b/chrome/browser/extensions/api/input/input.cc
@@ -49,8 +49,10 @@ bool VirtualKeyboardPrivateMoveCursorFunction::RunImpl() {
EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &swipe_direction));
EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(1, &modifier_flags));
- return keyboard::MoveCursor(swipe_direction, modifier_flags,
- ash::Shell::GetPrimaryRootWindow());
+ return keyboard::MoveCursor(
+ swipe_direction,
+ modifier_flags,
+ ash::Shell::GetPrimaryRootWindow()->GetDispatcher());
#endif
error_ = kNotYetImplementedError;
return false;
@@ -74,11 +76,12 @@ bool VirtualKeyboardPrivateSendKeyEventFunction::RunImpl() {
EXTENSION_FUNCTION_VALIDATE(params->GetInteger("keyCode", &key_code));
EXTENSION_FUNCTION_VALIDATE(params->GetBoolean("shiftKey", &shift_modifier));
- return keyboard::SendKeyEvent(type,
- char_value,
- key_code,
- shift_modifier,
- ash::Shell::GetPrimaryRootWindow());
+ return keyboard::SendKeyEvent(
+ type,
+ char_value,
+ key_code,
+ shift_modifier,
+ ash::Shell::GetPrimaryRootWindow()->GetDispatcher());
#endif
error_ = kNotYetImplementedError;
return false;

Powered by Google App Engine
This is Rietveld 408576698