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

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

Issue 187313002: Update StickyKeys overlay to show or hide AltGr depending on the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow changing visibility of all keys in overlay Created 6 years, 9 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 | Annotate | Revision Log
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 // Sets the list of extension IME ids which should be enabled. 151 // Sets the list of extension IME ids which should be enabled.
152 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) = 0; 152 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) = 0;
153 153
154 // Sets current input method to login default (first owners, then hardware). 154 // Sets current input method to login default (first owners, then hardware).
155 virtual void SetInputMethodLoginDefault() = 0; 155 virtual void SetInputMethodLoginDefault() = 0;
156 156
157 // Gets the descriptor of the input method which is currently selected. 157 // Gets the descriptor of the input method which is currently selected.
158 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; 158 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0;
159 159
160 virtual bool IsMod3UsedByCurrentInputMethod() const = 0;
161
162 virtual bool IsAltGrUsedByCurrentInputMethod() const = 0;
163
160 // Returns an X keyboard object which could be used to change the current XKB 164 // Returns an X keyboard object which could be used to change the current XKB
161 // layout, change the caps lock status, and set the auto repeat rate/interval. 165 // layout, change the caps lock status, and set the auto repeat rate/interval.
162 virtual XKeyboard* GetXKeyboard() = 0; 166 virtual XKeyboard* GetXKeyboard() = 0;
163 167
164 // Returns an InputMethodUtil object. 168 // Returns an InputMethodUtil object.
165 virtual InputMethodUtil* GetInputMethodUtil() = 0; 169 virtual InputMethodUtil* GetInputMethodUtil() = 0;
166 170
167 // Returns a ComponentExtentionIMEManager object. 171 // Returns a ComponentExtentionIMEManager object.
168 virtual ComponentExtensionIMEManager* GetComponentExtensionIMEManager() = 0; 172 virtual ComponentExtensionIMEManager* GetComponentExtensionIMEManager() = 0;
169 173
170 // Switches the current input method (or keyboard layout) to the next one. 174 // Switches the current input method (or keyboard layout) to the next one.
171 virtual bool SwitchToNextInputMethod() = 0; 175 virtual bool SwitchToNextInputMethod() = 0;
172 176
173 // Switches the current input method (or keyboard layout) to the previous one. 177 // Switches the current input method (or keyboard layout) to the previous one.
174 virtual bool SwitchToPreviousInputMethod( 178 virtual bool SwitchToPreviousInputMethod(
175 const ui::Accelerator& accelerator) = 0; 179 const ui::Accelerator& accelerator) = 0;
176 180
177 // Switches to an input method (or keyboard layout) which is associated with 181 // Switches to an input method (or keyboard layout) which is associated with
178 // the |accelerator|. 182 // the |accelerator|.
179 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; 183 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0;
180 184
181 // If keyboard layout can be uset at login screen 185 // If keyboard layout can be uset at login screen
182 virtual bool IsLoginKeyboard(const std::string& layout) const = 0; 186 virtual bool IsLoginKeyboard(const std::string& layout) const = 0;
183 }; 187 };
184 188
185 } // namespace input_method 189 } // namespace input_method
186 } // namespace chromeos 190 } // namespace chromeos
187 191
188 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ 192 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698