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

Side by Side Diff: chromeos/ime/input_method_manager.h

Issue 136693012: [IME] Supports options page for each IME instead of single options page for each IME extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests compiling errors. Created 6 years, 11 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 unified diff | Download patch
OLDNEW
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 CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ 5 #ifndef CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ 6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Returns the list of input methods we can select (i.e. active) including 99 // Returns the list of input methods we can select (i.e. active) including
100 // extension input methods. 100 // extension input methods.
101 // The same as GetActiveInputMethods but returns reference to internal list. 101 // The same as GetActiveInputMethods but returns reference to internal list.
102 virtual const std::vector<std::string>& GetActiveInputMethodIds() const = 0; 102 virtual const std::vector<std::string>& GetActiveInputMethodIds() const = 0;
103 103
104 // Returns the number of active input methods including extension input 104 // Returns the number of active input methods including extension input
105 // methods. 105 // methods.
106 virtual size_t GetNumActiveInputMethods() const = 0; 106 virtual size_t GetNumActiveInputMethods() const = 0;
107 107
108 // Returns the input method descriptor from the given input method id string.
109 // If the given input method id is invalid, returns NULL.
110 virtual const InputMethodDescriptor* GetInputMethodFromId(
111 const std::string& input_method_id) const = 0;
112
108 // Changes the current input method to |input_method_id|. If |input_method_id| 113 // Changes the current input method to |input_method_id|. If |input_method_id|
109 // is not active, switch to the first one in the active input method list. 114 // is not active, switch to the first one in the active input method list.
110 virtual void ChangeInputMethod(const std::string& input_method_id) = 0; 115 virtual void ChangeInputMethod(const std::string& input_method_id) = 0;
111 116
112 // Enables keyboard layouts (e.g. US Qwerty, US Dvorak, French Azerty) that 117 // Enables keyboard layouts (e.g. US Qwerty, US Dvorak, French Azerty) that
113 // are necessary for the |language_code| and then switches to |initial_layout| 118 // are necessary for the |language_code| and then switches to |initial_layout|
114 // if the string is not empty. For example, if |language_code| is "en-US", US 119 // if the string is not empty. For example, if |language_code| is "en-US", US
115 // Qwerty, US International, US Extended, US Dvorak, and US Colemak layouts 120 // Qwerty, US International, US Extended, US Dvorak, and US Colemak layouts
116 // would be enabled. Likewise, for Germany locale, US Qwerty which corresponds 121 // would be enabled. Likewise, for Germany locale, US Qwerty which corresponds
117 // to the hardware keyboard layout and several keyboard layouts for Germany 122 // to the hardware keyboard layout and several keyboard layouts for Germany
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; 188 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0;
184 189
185 // If keyboard layout can be uset at login screen 190 // If keyboard layout can be uset at login screen
186 virtual bool IsLoginKeyboard(const std::string& layout) const = 0; 191 virtual bool IsLoginKeyboard(const std::string& layout) const = 0;
187 }; 192 };
188 193
189 } // namespace input_method 194 } // namespace input_method
190 } // namespace chromeos 195 } // namespace chromeos
191 196
192 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ 197 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/input_ime/input_components_handler.cc ('k') | extensions/common/manifest_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698