| 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/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 42 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
| 43 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | 43 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; |
| 44 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; | 44 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; |
| 45 virtual void OnInputLocaleChanged() OVERRIDE; | 45 virtual void OnInputLocaleChanged() OVERRIDE; |
| 46 virtual std::string GetInputLocale() OVERRIDE; | 46 virtual std::string GetInputLocale() OVERRIDE; |
| 47 virtual bool IsActive() OVERRIDE; | 47 virtual bool IsActive() OVERRIDE; |
| 48 virtual TextInputType GetTextInputType() const OVERRIDE; | 48 virtual TextInputType GetTextInputType() const OVERRIDE; |
| 49 virtual TextInputMode GetTextInputMode() const OVERRIDE; | 49 virtual TextInputMode GetTextInputMode() const OVERRIDE; |
| 50 virtual bool CanComposeInline() const OVERRIDE; | 50 virtual bool CanComposeInline() const OVERRIDE; |
| 51 virtual bool IsCandidatePopupOpen() const OVERRIDE; | 51 virtual bool IsCandidatePopupOpen() const OVERRIDE; |
| 52 virtual void ShowImeIfNeeded() OVERRIDE; |
| 52 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; | 53 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; |
| 53 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; | 54 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 TextInputClient* text_input_client_; | 57 TextInputClient* text_input_client_; |
| 57 ObserverList<InputMethodObserver> observer_list_; | 58 ObserverList<InputMethodObserver> observer_list_; |
| 58 | 59 |
| 59 DISALLOW_COPY_AND_ASSIGN(MockInputMethod); | 60 DISALLOW_COPY_AND_ASSIGN(MockInputMethod); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace ui | 63 } // namespace ui |
| 63 | 64 |
| 64 #endif // UI_BASE_IME_MOCK_INPUT_METHOD_H_ | 65 #endif // UI_BASE_IME_MOCK_INPUT_METHOD_H_ |
| OLD | NEW |