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

Unified Diff: chromeos/ime/ime_keyboard_ozone.h

Issue 683773002: Adds ozone support for ime keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: chromeos/ime/ime_keyboard_ozone.h
diff --git a/chromeos/ime/fake_ime_keyboard.h b/chromeos/ime/ime_keyboard_ozone.h
similarity index 59%
copy from chromeos/ime/fake_ime_keyboard.h
copy to chromeos/ime/ime_keyboard_ozone.h
index 7ac938a14612616a618928eee773c96986c85f6e..9d71ffbd6cd9020af343d656a90a7df31ea945d5 100644
--- a/chromeos/ime/fake_ime_keyboard.h
+++ b/chromeos/ime/ime_keyboard_ozone.h
@@ -10,42 +10,28 @@
#include <string>
#include "base/compiler_specific.h"
-#include "base/observer_list.h"
#include "chromeos/chromeos_export.h"
namespace chromeos {
namespace input_method {
-class CHROMEOS_EXPORT FakeImeKeyboard : public ImeKeyboard {
+class ImeKeyboardOzone : public ImeKeyboard {
public:
- FakeImeKeyboard();
- virtual ~FakeImeKeyboard();
+ ImeKeyboardOzone();
+ virtual ~ImeKeyboardOzone();
- virtual void AddObserver(Observer* observer) override;
- virtual void RemoveObserver(Observer* observer) override;
virtual bool SetCurrentKeyboardLayoutByName(const std::string& layout_name)
override;
+ virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) override;
+ virtual bool SetAutoRepeatEnabled(bool enabled) override;
virtual bool ReapplyCurrentKeyboardLayout() override;
virtual void ReapplyCurrentModifierLockStatus() override;
virtual void DisableNumLock() override;
virtual void SetCapsLockEnabled(bool enable_caps_lock) override;
virtual bool CapsLockIsEnabled() override;
- virtual bool IsISOLevel5ShiftAvailable() const override;
- virtual bool IsAltGrAvailable() const override;
- virtual bool SetAutoRepeatEnabled(bool enabled) override;
- virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) override;
-
- int set_current_keyboard_layout_by_name_count_;
- std::string last_layout_;
- bool caps_lock_is_enabled_;
- bool auto_repeat_is_enabled_;
- AutoRepeatRate last_auto_repeat_rate_;
- // TODO(yusukes): Add more variables for counting the numbers of the API calls
private:
- ObserverList<Observer> observers_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard);
+ DISALLOW_COPY_AND_ASSIGN(ImeKeyboardOzone);
};
} // namespace input_method

Powered by Google App Engine
This is Rietveld 408576698