| 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_MOCK_INPUT_METHOD_H_ | 5 #ifndef UI_BASE_IME_MOCK_INPUT_METHOD_H_ |
| 6 #define UI_BASE_IME_MOCK_INPUT_METHOD_H_ | 6 #define UI_BASE_IME_MOCK_INPUT_METHOD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 TextInputType GetTextInputType() const override; | 47 TextInputType GetTextInputType() const override; |
| 48 TextInputMode GetTextInputMode() const override; | 48 TextInputMode GetTextInputMode() const override; |
| 49 int GetTextInputFlags() const override; | 49 int GetTextInputFlags() const override; |
| 50 bool CanComposeInline() const override; | 50 bool CanComposeInline() const override; |
| 51 bool IsCandidatePopupOpen() const override; | 51 bool IsCandidatePopupOpen() const override; |
| 52 void ShowImeIfNeeded() override; | 52 void ShowImeIfNeeded() override; |
| 53 void AddObserver(InputMethodObserver* observer) override; | 53 void AddObserver(InputMethodObserver* observer) override; |
| 54 void RemoveObserver(InputMethodObserver* observer) override; | 54 void RemoveObserver(InputMethodObserver* observer) override; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 // InputMethod: |
| 58 std::vector<ui::KeyEvent*> GetKeyEventsForTesting() override; |
| 59 |
| 57 TextInputClient* text_input_client_; | 60 TextInputClient* text_input_client_; |
| 58 base::ObserverList<InputMethodObserver> observer_list_; | 61 base::ObserverList<InputMethodObserver> observer_list_; |
| 59 internal::InputMethodDelegate* delegate_; | 62 internal::InputMethodDelegate* delegate_; |
| 60 | 63 |
| 61 DISALLOW_COPY_AND_ASSIGN(MockInputMethod); | 64 DISALLOW_COPY_AND_ASSIGN(MockInputMethod); |
| 62 }; | 65 }; |
| 63 | 66 |
| 64 } // namespace ui | 67 } // namespace ui |
| 65 | 68 |
| 66 #endif // UI_BASE_IME_MOCK_INPUT_METHOD_H_ | 69 #endif // UI_BASE_IME_MOCK_INPUT_METHOD_H_ |
| OLD | NEW |