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

Side by Side Diff: ui/base/ime/chromeos/fake_ime_keyboard.h

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. Created 6 years 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
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 UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_
6 #define CHROMEOS_IME_FAKE_IME_KEYBOARD_H_ 6 #define UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_
7 7
8 #include "chromeos/ime/ime_keyboard.h" 8 #include "ui/base/ime/chromeos/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 "chromeos/chromeos_export.h"
14 13
15 namespace chromeos { 14 namespace chromeos {
16 namespace input_method { 15 namespace input_method {
17 16
18 class CHROMEOS_EXPORT FakeImeKeyboard : public ImeKeyboard { 17 class UI_BASE_EXPORT FakeImeKeyboard : public ImeKeyboard {
19 public: 18 public:
20 FakeImeKeyboard(); 19 FakeImeKeyboard();
21 virtual ~FakeImeKeyboard(); 20 virtual ~FakeImeKeyboard();
22 21
23 virtual bool SetCurrentKeyboardLayoutByName(const std::string& layout_name) 22 virtual bool SetCurrentKeyboardLayoutByName(const std::string& layout_name)
24 override; 23 override;
25 virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) override; 24 virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) override;
26 virtual bool SetAutoRepeatEnabled(bool enabled) override; 25 virtual bool SetAutoRepeatEnabled(bool enabled) override;
27 virtual bool ReapplyCurrentKeyboardLayout() override; 26 virtual bool ReapplyCurrentKeyboardLayout() override;
28 virtual void ReapplyCurrentModifierLockStatus() override; 27 virtual void ReapplyCurrentModifierLockStatus() override;
29 virtual void DisableNumLock() override; 28 virtual void DisableNumLock() override;
30 virtual bool IsISOLevel5ShiftAvailable() const override; 29 virtual bool IsISOLevel5ShiftAvailable() const override;
31 virtual bool IsAltGrAvailable() const override; 30 virtual bool IsAltGrAvailable() const override;
32 31
33 int set_current_keyboard_layout_by_name_count_; 32 int set_current_keyboard_layout_by_name_count_;
34 AutoRepeatRate last_auto_repeat_rate_; 33 AutoRepeatRate last_auto_repeat_rate_;
35 // TODO(yusukes): Add more variables for counting the numbers of the API calls 34 // TODO(yusukes): Add more variables for counting the numbers of the API calls
36 bool auto_repeat_is_enabled_; 35 bool auto_repeat_is_enabled_;
37 36
38 private: 37 private:
39 DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard); 38 DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard);
40 }; 39 };
41 40
42 } // namespace input_method 41 } // namespace input_method
43 } // namespace chromeos 42 } // namespace chromeos
44 43
45 #endif // CHROMEOS_IME_FAKE_IME_KEYBOARD_H_ 44 #endif // UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/extension_ime_util_unittest.cc ('k') | ui/base/ime/chromeos/fake_ime_keyboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698