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

Unified Diff: chrome/browser/chromeos/cros/input_method_library.h

Issue 4162002: Reduce CPU usage for input method switching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 10 years, 1 month 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 | « no previous file | chrome/browser/chromeos/cros/input_method_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/input_method_library.h
diff --git a/chrome/browser/chromeos/cros/input_method_library.h b/chrome/browser/chromeos/cros/input_method_library.h
index f3bbe3cc4062ae616e747757c08e91eb0183ceec..7f55eea2609aadfbbecb6e767b3b844f48252f6d 100644
--- a/chrome/browser/chromeos/cros/input_method_library.h
+++ b/chrome/browser/chromeos/cros/input_method_library.h
@@ -26,14 +26,23 @@ class InputMethodLibrary {
public:
virtual ~Observer() = 0;
// Called when the current input method is changed.
- virtual void InputMethodChanged(InputMethodLibrary* obj) = 0;
-
- // Called when input method properties (see chromeos_input_method.h
- // for details) are changed.
- virtual void ImePropertiesChanged(InputMethodLibrary* obj) = 0;
+ virtual void InputMethodChanged(
+ InputMethodLibrary* obj,
+ const InputMethodDescriptor& previous_input_method,
+ const InputMethodDescriptor& current_input_method,
+ size_t num_active_input_methods) = 0;
// Called when the active input methods are changed.
- virtual void ActiveInputMethodsChanged(InputMethodLibrary* obj) = 0;
+ virtual void ActiveInputMethodsChanged(
+ InputMethodLibrary* obj,
+ const InputMethodDescriptor& current_input_method,
+ size_t num_active_input_methods) = 0;
+
+ // Called when the preferences have to be updated.
+ virtual void PreferenceUpdateNeeded(
+ InputMethodLibrary* obj,
+ const InputMethodDescriptor& previous_input_method,
+ const InputMethodDescriptor& current_input_method) = 0;
};
virtual ~InputMethodLibrary() {}
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/input_method_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698