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 "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
10 #include "ui/base/ime/chromeos/input_method_manager.h" | 10 #include "ui/base/ime/chromeos/input_method_manager.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class BrowserContext; | 13 class BrowserContext; |
14 } | 14 } |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 // Event router class for the input method events. | 18 // Event router class for the input method events. |
19 class ExtensionInputMethodEventRouter | 19 class ExtensionInputMethodEventRouter |
20 : public input_method::InputMethodManager::Observer { | 20 : public input_method::InputMethodManager::Observer { |
21 public: | 21 public: |
22 explicit ExtensionInputMethodEventRouter(content::BrowserContext* context); | 22 explicit ExtensionInputMethodEventRouter(content::BrowserContext* context); |
23 ~ExtensionInputMethodEventRouter() override; | 23 ~ExtensionInputMethodEventRouter() override; |
24 | 24 |
25 // Implements input_method::InputMethodManager::Observer: | 25 // Implements input_method::InputMethodManager::Observer: |
26 void InputMethodChanged(input_method::InputMethodManager* manager, | 26 void InputMethodChanged(input_method::InputMethodManager* manager, |
27 Profile* profile, | 27 Profile* profile, |
28 bool show_message) override; | 28 bool show_message) override; |
29 | 29 |
30 private: | 30 private: |
31 content::BrowserContext* context_; | 31 content::BrowserContext* context_; |
32 | 32 |
33 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter); | 33 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace chromeos | 36 } // namespace chromeos |
37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ | 37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ |
OLD | NEW |