Fixed incorrect call of updateContextMenuActionItems.
[chromium-blink-merge.git] / chromeos / ime / fake_ime_keyboard.h
blob4047b0d5246b88d11526595f0f0d45a74769aa79
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_IME_KEYBOARD_H_
6 #define CHROMEOS_IME_FAKE_IME_KEYBOARD_H_
8 #include "chromeos/ime/ime_keyboard.h"
10 #include <string>
12 #include "base/compiler_specific.h"
13 #include "chromeos/chromeos_export.h"
15 namespace chromeos {
16 namespace input_method {
18 class CHROMEOS_EXPORT FakeImeKeyboard : public ImeKeyboard {
19 public:
20 FakeImeKeyboard();
21 virtual ~FakeImeKeyboard();
23 virtual bool SetCurrentKeyboardLayoutByName(const std::string& layout_name)
24 override;
25 virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) override;
26 virtual bool SetAutoRepeatEnabled(bool enabled) override;
27 virtual bool ReapplyCurrentKeyboardLayout() override;
28 virtual void ReapplyCurrentModifierLockStatus() override;
29 virtual void DisableNumLock() override;
30 virtual bool IsISOLevel5ShiftAvailable() const override;
31 virtual bool IsAltGrAvailable() const override;
33 int set_current_keyboard_layout_by_name_count_;
34 AutoRepeatRate last_auto_repeat_rate_;
35 // TODO(yusukes): Add more variables for counting the numbers of the API calls
36 bool auto_repeat_is_enabled_;
38 private:
39 DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard);
42 } // namespace input_method
43 } // namespace chromeos
45 #endif // CHROMEOS_IME_FAKE_IME_KEYBOARD_H_