OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ |
6 #define UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ | 6 #define UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/base/ime/chromeos/input_method_manager.h" | 9 #include "ui/base/ime/chromeos/input_method_manager.h" |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void SetInputMethodLoginDefaultFromVPD(const std::string& locale, | 46 void SetInputMethodLoginDefaultFromVPD(const std::string& locale, |
47 const std::string& layout) override; | 47 const std::string& layout) override; |
48 bool CanCycleInputMethod() override; | 48 bool CanCycleInputMethod() override; |
49 void SwitchToNextInputMethod() override; | 49 void SwitchToNextInputMethod() override; |
50 void SwitchToPreviousInputMethod() override; | 50 void SwitchToPreviousInputMethod() override; |
51 bool CanSwitchInputMethod(const ui::Accelerator& accelerator) override; | 51 bool CanSwitchInputMethod(const ui::Accelerator& accelerator) override; |
52 void SwitchInputMethod(const ui::Accelerator& accelerator) override; | 52 void SwitchInputMethod(const ui::Accelerator& accelerator) override; |
53 InputMethodDescriptor GetCurrentInputMethod() const override; | 53 InputMethodDescriptor GetCurrentInputMethod() const override; |
54 bool ReplaceEnabledInputMethods( | 54 bool ReplaceEnabledInputMethods( |
55 const std::vector<std::string>& new_active_input_method_ids) override; | 55 const std::vector<std::string>& new_active_input_method_ids) override; |
| 56 bool SetAllowedKeyboardLayoutInputMethods( |
| 57 const std::vector<std::string>& new_allowed_input_method_ids) override; |
| 58 const std::vector<std::string>& GetAllowedKeyboardLayoutInputMethods() |
| 59 override; |
56 | 60 |
57 // The active input method ids cache (actually default only) | 61 // The active input method ids cache (actually default only) |
58 std::vector<std::string> active_input_method_ids; | 62 std::vector<std::string> active_input_method_ids; |
59 | 63 |
| 64 // Allowed input methods ids |
| 65 std::vector<std::string> allowed_keyboard_layout_input_method_ids; |
| 66 |
60 protected: | 67 protected: |
61 friend base::RefCounted<InputMethodManager::State>; | 68 friend base::RefCounted<InputMethodManager::State>; |
62 ~State() override; | 69 ~State() override; |
63 | 70 |
64 private: | 71 private: |
65 DISALLOW_COPY_AND_ASSIGN(State); | 72 DISALLOW_COPY_AND_ASSIGN(State); |
66 }; | 73 }; |
67 | 74 |
68 MockInputMethodManager(); | 75 MockInputMethodManager(); |
69 ~MockInputMethodManager() override; | 76 ~MockInputMethodManager() override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; | 110 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; |
104 | 111 |
105 private: | 112 private: |
106 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); | 113 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); |
107 }; | 114 }; |
108 | 115 |
109 } // namespace input_method | 116 } // namespace input_method |
110 } // namespace chromeos | 117 } // namespace chromeos |
111 | 118 |
112 #endif // UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ | 119 #endif // UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |