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

Unified Diff: chromeos/ime/ime_keyboard_ozone.h

Issue 693733002: Adds ozone support for ime keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « chromeos/ime/ime_keyboard.cc ('k') | chromeos/ime/ime_keyboard_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52%
copy from chromeos/ime/fake_ime_keyboard.h
copy to chromeos/ime/ime_keyboard_ozone.h
index 7ac938a14612616a618928eee773c96986c85f6e..a2400f4571a5e717ce00ae5227077ec3820ffd72 100644
--- a/chromeos/ime/fake_ime_keyboard.h
+++ b/chromeos/ime/ime_keyboard_ozone.h
@@ -2,53 +2,39 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROMEOS_IME_FAKE_IME_KEYBOARD_H_
-#define CHROMEOS_IME_FAKE_IME_KEYBOARD_H_
+#ifndef CHROMEOS_IME_IME_KEYBOARD_OZONE_H_
+#define CHROMEOS_IME_IME_KEYBOARD_OZONE_H_
#include "chromeos/ime/ime_keyboard.h"
#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 CHROMEOS_EXPORT 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
} // namespace chromeos
-#endif // CHROMEOS_IME_FAKE_IME_KEYBOARD_H_
+#endif // CHROMEOS_IME_IME_KEYBOARD_OZONE_H_
« no previous file with comments | « chromeos/ime/ime_keyboard.cc ('k') | chromeos/ime/ime_keyboard_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698