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

Unified Diff: chrome/browser/chromeos/input_method/mock_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: Fix rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/input_method/mock_input_method_manager.h
diff --git a/chrome/browser/chromeos/input_method/mock_input_method_manager.h b/chrome/browser/chromeos/input_method/mock_input_method_manager.h
index 25f21c01e2e91ff34c9c38554662bc1c96bf3ca1..3f9c60017ce7c61411b2e2f252c3bfb8ecbcba69 100644
--- a/chrome/browser/chromeos/input_method/mock_input_method_manager.h
+++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.h
@@ -58,6 +58,8 @@ class MockInputMethodManager : public InputMethodManager {
const ui::Accelerator& accelerator) OVERRIDE;
virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE;
virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE;
+ virtual bool IsISOLevel5ShiftUsedByCurrentInputMethod() const OVERRIDE;
+ virtual bool IsAltGrUsedByCurrentInputMethod() const OVERRIDE;
virtual XKeyboard* GetXKeyboard() OVERRIDE;
virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE;
virtual ComponentExtensionIMEManager*
@@ -74,6 +76,9 @@ class MockInputMethodManager : public InputMethodManager {
// Set values that will be provided to the InputMethodUtil.
void set_application_locale(const std::string& value);
+ // Set the value returned by IsISOLevel5ShiftUsedByCurrentInputMethod
+ void set_mod3_used(bool value) { mod3_used_ = value; }
+
// TODO(yusukes): Add more variables for counting the numbers of the API calls
int add_observer_count_;
int remove_observer_count_;
@@ -86,6 +91,7 @@ class MockInputMethodManager : public InputMethodManager {
FakeInputMethodDelegate delegate_; // used by util_
InputMethodUtil util_;
FakeXKeyboard xkeyboard_;
+ bool mod3_used_;
// The active input method ids cache (actually default only)
std::vector<std::string> active_input_method_ids_;

Powered by Google App Engine
This is Rietveld 408576698