| Index: chromeos/ime/ime_keyboard.h
|
| diff --git a/chromeos/ime/ime_keyboard.h b/chromeos/ime/ime_keyboard.h
|
| index 109485a6c9468eacfa604bf0ec6775f31c45291b..cca70eca6e4174cd2392b48189b5a3fb1bf8a3f6 100644
|
| --- a/chromeos/ime/ime_keyboard.h
|
| +++ b/chromeos/ime/ime_keyboard.h
|
| @@ -9,7 +9,6 @@
|
| #include <vector>
|
|
|
| #include "base/basictypes.h"
|
| -#include "base/observer_list.h"
|
| #include "chromeos/chromeos_export.h"
|
|
|
| namespace chromeos {
|
| @@ -43,11 +42,11 @@
|
| virtual void OnCapsLockChanged(bool enabled) = 0;
|
| };
|
|
|
| - ImeKeyboard();
|
| - virtual ~ImeKeyboard();
|
| + virtual ~ImeKeyboard() {}
|
| +
|
| // Adds/removes observer.
|
| - virtual void AddObserver(Observer* observer);
|
| - virtual void RemoveObserver(Observer* observer);
|
| + virtual void AddObserver(Observer* observer) = 0;
|
| + virtual void RemoveObserver(Observer* observer) = 0;
|
|
|
| // Sets the current keyboard layout to |layout_name|. This function does not
|
| // change the current mapping of the modifier keys. Returns true on success.
|
| @@ -75,17 +74,17 @@
|
|
|
| // Sets the caps lock status to |enable_caps_lock|. Do not call the function
|
| // from non-UI threads.
|
| - virtual void SetCapsLockEnabled(bool enable_caps_lock);
|
| + virtual void SetCapsLockEnabled(bool enable_caps_lock) = 0;
|
|
|
| // Returns true if caps lock is enabled. Do not call the function from non-UI
|
| // threads.
|
| - virtual bool CapsLockIsEnabled();
|
| + virtual bool CapsLockIsEnabled() = 0;
|
|
|
| // Returns true if the current layout supports ISO Level 5 shift.
|
| - virtual bool IsISOLevel5ShiftAvailable() const;
|
| + virtual bool IsISOLevel5ShiftAvailable() const = 0;
|
|
|
| // Returns true if the current layout supports alt gr.
|
| - virtual bool IsAltGrAvailable() const;
|
| + virtual bool IsAltGrAvailable() const = 0;
|
|
|
| // Turns on and off the auto-repeat of the keyboard. Returns true on success.
|
| // Do not call the function from non-UI threads.
|
| @@ -112,12 +111,6 @@
|
| // Note: At this moment, classes other than InputMethodManager should not
|
| // instantiate the ImeKeyboard class.
|
| static ImeKeyboard* Create();
|
| -
|
| - bool caps_lock_is_enabled_;
|
| - std::string last_layout_;
|
| -
|
| - protected:
|
| - ObserverList<Observer> observers_;
|
| };
|
|
|
| } // namespace input_method
|
|
|