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

Unified Diff: chromeos/ime/input_method_manager.h

Issue 18856014: We should switch the keyboard layout to the layout the user set according to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Diff versus master. Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chromeos/ime/input_methods.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/input_method_manager.h
diff --git a/chromeos/ime/input_method_manager.h b/chromeos/ime/input_method_manager.h
index bfeacf619966876eef51abbd6a4997e64dc2e074..e2d38dd0c7eb1de207dd0a87860182e6ea0781c3 100644
--- a/chromeos/ime/input_method_manager.h
+++ b/chromeos/ime/input_method_manager.h
@@ -98,6 +98,11 @@ class CHROMEOS_EXPORT InputMethodManager {
// extension input methods.
virtual scoped_ptr<InputMethodDescriptors> GetActiveInputMethods() const = 0;
+ // Returns the list of input methods we can select (i.e. active) including
+ // extension input methods.
+ // The same as GetActiveInputMethods but returns reference to internal list.
+ virtual const std::vector<std::string>& GetActiveInputMethodIds() const = 0;
+
// Returns the number of active input methods including extension input
// methods.
virtual size_t GetNumActiveInputMethods() const = 0;
@@ -125,6 +130,11 @@ class CHROMEOS_EXPORT InputMethodManager {
virtual bool EnableInputMethods(
const std::vector<std::string>& new_active_input_method_ids) = 0;
+ // Adds one entry to the list of active input method IDs, and then starts or
+ // stops the system input method framework as needed.
+ virtual bool EnableInputMethod(
+ const std::string& new_active_input_method_id) = 0;
+
// Remaps old input methods like "mozc" to new input methods. Return true if
// at least one IME is migrated.
// TODO(nona): Remove this function after few milestones are passed.
@@ -185,6 +195,9 @@ class CHROMEOS_EXPORT InputMethodManager {
// Switches to an input method (or keyboard layout) which is associated with
// the |accelerator|.
virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0;
+
+ // If keyboard layout can be uset at login screen
+ virtual bool IsFullLatinKeyboard(const std::string& layout) const = 0;
};
} // namespace input_method
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chromeos/ime/input_methods.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698