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

Side by Side Diff: chromeos/ime/fake_ime_keyboard.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 unified diff | Download patch
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/ime/fake_ime_keyboard.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_IME_FAKE_IME_KEYBOARD_H_ 5 #ifndef CHROMEOS_IME_FAKE_IME_KEYBOARD_H_
6 #define CHROMEOS_IME_FAKE_IME_KEYBOARD_H_ 6 #define CHROMEOS_IME_FAKE_IME_KEYBOARD_H_
7 7
8 #include "chromeos/ime/ime_keyboard.h" 8 #include "chromeos/ime/ime_keyboard.h"
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/observer_list.h"
14 #include "chromeos/chromeos_export.h" 13 #include "chromeos/chromeos_export.h"
15 14
16 namespace chromeos { 15 namespace chromeos {
17 namespace input_method { 16 namespace input_method {
18 17
19 class CHROMEOS_EXPORT FakeImeKeyboard : public ImeKeyboard { 18 class CHROMEOS_EXPORT FakeImeKeyboard : public ImeKeyboard {
20 public: 19 public:
21 FakeImeKeyboard(); 20 FakeImeKeyboard();
22 virtual ~FakeImeKeyboard(); 21 virtual ~FakeImeKeyboard();
23 22
24 virtual void AddObserver(Observer* observer) override;
25 virtual void RemoveObserver(Observer* observer) override;
26 virtual bool SetCurrentKeyboardLayoutByName(const std::string& layout_name) 23 virtual bool SetCurrentKeyboardLayoutByName(const std::string& layout_name)
27 override; 24 override;
25 virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) override;
26 virtual bool SetAutoRepeatEnabled(bool enabled) override;
28 virtual bool ReapplyCurrentKeyboardLayout() override; 27 virtual bool ReapplyCurrentKeyboardLayout() override;
29 virtual void ReapplyCurrentModifierLockStatus() override; 28 virtual void ReapplyCurrentModifierLockStatus() override;
30 virtual void DisableNumLock() override; 29 virtual void DisableNumLock() override;
31 virtual void SetCapsLockEnabled(bool enable_caps_lock) override;
32 virtual bool CapsLockIsEnabled() override;
33 virtual bool IsISOLevel5ShiftAvailable() const override; 30 virtual bool IsISOLevel5ShiftAvailable() const override;
34 virtual bool IsAltGrAvailable() const override; 31 virtual bool IsAltGrAvailable() const override;
35 virtual bool SetAutoRepeatEnabled(bool enabled) override;
36 virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) override;
37 32
38 int set_current_keyboard_layout_by_name_count_; 33 int set_current_keyboard_layout_by_name_count_;
39 std::string last_layout_;
40 bool caps_lock_is_enabled_;
41 bool auto_repeat_is_enabled_;
42 AutoRepeatRate last_auto_repeat_rate_; 34 AutoRepeatRate last_auto_repeat_rate_;
43 // TODO(yusukes): Add more variables for counting the numbers of the API calls 35 // TODO(yusukes): Add more variables for counting the numbers of the API calls
36 bool auto_repeat_is_enabled_;
44 37
45 private: 38 private:
46 ObserverList<Observer> observers_;
47
48 DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard); 39 DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard);
49 }; 40 };
50 41
51 } // namespace input_method 42 } // namespace input_method
52 } // namespace chromeos 43 } // namespace chromeos
53 44
54 #endif // CHROMEOS_IME_FAKE_IME_KEYBOARD_H_ 45 #endif // CHROMEOS_IME_FAKE_IME_KEYBOARD_H_
OLDNEW
« 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