| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 9 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 const input_method::InputMethodDescriptor& current_input_method, | 27 const input_method::InputMethodDescriptor& current_input_method, |
| 28 size_t num_active_input_methods) OVERRIDE; | 28 size_t num_active_input_methods) OVERRIDE; |
| 29 virtual void PropertyListChanged( | 29 virtual void PropertyListChanged( |
| 30 input_method::InputMethodManager* manager, | 30 input_method::InputMethodManager* manager, |
| 31 const input_method::ImePropertyList& current_ime_properties) OVERRIDE; | 31 const input_method::ImePropertyList& current_ime_properties) OVERRIDE; |
| 32 | 32 |
| 33 // Returns input method name for the given XKB (X keyboard extensions in X | 33 // Returns input method name for the given XKB (X keyboard extensions in X |
| 34 // Window System) id. | 34 // Window System) id. |
| 35 std::string GetInputMethodForXkb(const std::string& xkb_id); | 35 std::string GetInputMethodForXkb(const std::string& xkb_id); |
| 36 | 36 |
| 37 // Returns whether the extension is allowed to use input method API. | |
| 38 bool IsExtensionWhitelisted(const std::string& extension_id); | |
| 39 | |
| 40 private: | 37 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter); | 38 DISALLOW_COPY_AND_ASSIGN(ExtensionInputMethodEventRouter); |
| 42 }; | 39 }; |
| 43 | 40 |
| 44 } // namespace chromeos | 41 } // namespace chromeos |
| 45 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ | 42 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_EVENT_ROUTER_H_ |
| OLD | NEW |