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

Unified Diff: chromeos/ime/fake_ime_keyboard.h

Issue 689873004: Revert of 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
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/ime/fake_ime_keyboard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/fake_ime_keyboard.h
diff --git a/chromeos/ime/fake_ime_keyboard.h b/chromeos/ime/fake_ime_keyboard.h
index 4047b0d5246b88d11526595f0f0d45a74769aa79..7ac938a14612616a618928eee773c96986c85f6e 100644
--- a/chromeos/ime/fake_ime_keyboard.h
+++ b/chromeos/ime/fake_ime_keyboard.h
@@ -10,6 +10,7 @@
#include <string>
#include "base/compiler_specific.h"
+#include "base/observer_list.h"
#include "chromeos/chromeos_export.h"
namespace chromeos {
@@ -20,22 +21,30 @@
FakeImeKeyboard();
virtual ~FakeImeKeyboard();
+ 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
- bool auto_repeat_is_enabled_;
private:
+ ObserverList<Observer> observers_;
+
DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard);
};
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/ime/fake_ime_keyboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698