| 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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 12 #include "chromeos/ime/input_method_manager.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 // Event router class for the input method events. | 16 // Event router class for the input method events. |
| 17 class ExtensionInputMethodEventRouter | 17 class ExtensionInputMethodEventRouter |
| 18 : public input_method::InputMethodManager::Observer { | 18 : public input_method::InputMethodManager::Observer { |
| 19 public: | 19 public: |
| 20 ExtensionInputMethodEventRouter(); | 20 ExtensionInputMethodEventRouter(); |
| 21 virtual ~ExtensionInputMethodEventRouter(); | 21 virtual ~ExtensionInputMethodEventRouter(); |
| 22 | 22 |
| 23 // Implements input_method::InputMethodManager::Observer: | 23 // Implements input_method::InputMethodManager::Observer: |
| 24 virtual void InputMethodChanged( | 24 virtual void InputMethodChanged( |
| 25 input_method::InputMethodManager* manager, | 25 input_method::InputMethodManager* manager, |
| 26 bool show_message) OVERRIDE; | 26 bool show_message) OVERRIDE; |
| 27 virtual void InputMethodPropertyChanged( | 27 virtual void InputMethodPropertyChanged( |
| 28 input_method::InputMethodManager* manager) OVERRIDE {} | 28 input_method::InputMethodManager* manager) OVERRIDE {} |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter); | 31 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace chromeos | 34 } // namespace chromeos |
| 35 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ | 35 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ |
| OLD | NEW |