| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/views/aura/ime_controller_chromeos.h" | 5 #include "chrome/browser/ui/views/ash/ime_controller_chromeos.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 7 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 8 | 8 |
| 9 bool ImeController::HandleNextIme() { | 9 bool ImeController::HandleNextIme() { |
| 10 chromeos::input_method::InputMethodManager* manager = | 10 chromeos::input_method::InputMethodManager* manager = |
| 11 chromeos::input_method::InputMethodManager::GetInstance(); | 11 chromeos::input_method::InputMethodManager::GetInstance(); |
| 12 return manager->SwitchToNextInputMethod(); | 12 return manager->SwitchToNextInputMethod(); |
| 13 } | 13 } |
| 14 | 14 |
| 15 bool ImeController::HandlePreviousIme() { | 15 bool ImeController::HandlePreviousIme() { |
| 16 chromeos::input_method::InputMethodManager* manager = | 16 chromeos::input_method::InputMethodManager* manager = |
| 17 chromeos::input_method::InputMethodManager::GetInstance(); | 17 chromeos::input_method::InputMethodManager::GetInstance(); |
| 18 return manager->SwitchToPreviousInputMethod(); | 18 return manager->SwitchToPreviousInputMethod(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 bool ImeController::HandleSwitchIme(const ui::Accelerator& accelerator) { | 21 bool ImeController::HandleSwitchIme(const ui::Accelerator& accelerator) { |
| 22 chromeos::input_method::InputMethodManager* manager = | 22 chromeos::input_method::InputMethodManager* manager = |
| 23 chromeos::input_method::InputMethodManager::GetInstance(); | 23 chromeos::input_method::InputMethodManager::GetInstance(); |
| 24 return manager->SwitchInputMethod(accelerator); | 24 return manager->SwitchInputMethod(accelerator); |
| 25 } | 25 } |
| OLD | NEW |