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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 232333002: ozone: Rename XKeyboard to KeyboardController & use fake under ozone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | ash/system/chromeos/tray_caps_lock.cc » ('j') | chromeos/ime/keyboard_controller.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 9f1d226675c26e90bfdf82b44f12db760ca109a0..92546d810d44f6b5a78fecfe30876e7b224a7b48 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -74,7 +74,7 @@
#include "ash/system/chromeos/keyboard_brightness_controller.h"
#include "base/sys_info.h"
#include "chromeos/ime/input_method_manager.h"
-#include "chromeos/ime/xkeyboard.h"
+#include "chromeos/ime/keyboard_controller.h"
#endif // defined(OS_CHROMEOS)
namespace ash {
@@ -644,8 +644,8 @@ bool HandleDisableCapsLock(ui::KeyboardCode key_code,
base::RecordAction(UserMetricsAction("Accel_Disable_Caps_Lock"));
chromeos::input_method::InputMethodManager* ime =
chromeos::input_method::InputMethodManager::Get();
- chromeos::input_method::XKeyboard* xkeyboard =
- ime ? ime->GetXKeyboard() : NULL;
+ chromeos::input_method::KeyboardController* xkeyboard =
+ ime ? ime->GetKeyboardController() : NULL;
if (xkeyboard && xkeyboard->CapsLockIsEnabled()) {
xkeyboard->SetCapsLockEnabled(false);
return true;
@@ -668,8 +668,8 @@ bool HandleToggleCapsLock(ui::KeyboardCode key_code,
base::RecordAction(UserMetricsAction("Accel_Toggle_Caps_Lock"));
chromeos::input_method::InputMethodManager* ime =
chromeos::input_method::InputMethodManager::Get();
- chromeos::input_method::XKeyboard* xkeyboard =
- ime ? ime->GetXKeyboard() : NULL;
+ chromeos::input_method::KeyboardController* xkeyboard =
+ ime ? ime->GetKeyboardController() : NULL;
if (xkeyboard)
xkeyboard->SetCapsLockEnabled(!xkeyboard->CapsLockIsEnabled());
return true;
« no previous file with comments | « no previous file | ash/system/chromeos/tray_caps_lock.cc » ('j') | chromeos/ime/keyboard_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698