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
3 // found in the LICENSE file.
5 #ifndef CHROMEOS_IME_FAKE_XKEYBOARD_H_
6 #define CHROMEOS_IME_FAKE_XKEYBOARD_H_
8 #include "chromeos/ime/xkeyboard.h"
12 #include "base/compiler_specific.h"
13 #include "chromeos/chromeos_export.h"
16 namespace input_method
{
18 class CHROMEOS_EXPORT FakeXKeyboard
: public XKeyboard
{
21 virtual ~FakeXKeyboard() {}
23 virtual bool SetCurrentKeyboardLayoutByName(const std::string
& layout_name
)
25 virtual bool ReapplyCurrentKeyboardLayout() OVERRIDE
;
26 virtual void ReapplyCurrentModifierLockStatus() OVERRIDE
;
27 virtual void DisableNumLock() OVERRIDE
;
28 virtual void SetCapsLockEnabled(bool enable_caps_lock
) OVERRIDE
;
29 virtual bool CapsLockIsEnabled() OVERRIDE
;
30 virtual bool SetAutoRepeatEnabled(bool enabled
) OVERRIDE
;
31 virtual bool SetAutoRepeatRate(const AutoRepeatRate
& rate
) OVERRIDE
;
33 int set_current_keyboard_layout_by_name_count_
;
34 std::string last_layout_
;
35 bool caps_lock_is_enabled_
;
36 bool auto_repeat_is_enabled_
;
37 AutoRepeatRate last_auto_repeat_rate_
;
38 // TODO(yusukes): Add more variables for counting the numbers of the API calls
41 DISALLOW_COPY_AND_ASSIGN(FakeXKeyboard
);
44 } // namespace input_method
45 } // namespace chromeos
47 #endif // CHROMEOS_IME_FAKE_XKEYBOARD_H_