| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DUMMY_INPUT_METHOD_H_ | 5 #ifndef UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
| 6 #define UI_BASE_IME_DUMMY_INPUT_METHOD_H_ | 6 #define UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/base/ime/input_method.h" | 9 #include "ui/base/ime/input_method.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 24 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
| 25 NativeEventResult* result) override; | 25 NativeEventResult* result) override; |
| 26 void SetFocusedTextInputClient(TextInputClient* client) override; | 26 void SetFocusedTextInputClient(TextInputClient* client) override; |
| 27 void DetachTextInputClient(TextInputClient* client) override; | 27 void DetachTextInputClient(TextInputClient* client) override; |
| 28 TextInputClient* GetTextInputClient() const override; | 28 TextInputClient* GetTextInputClient() const override; |
| 29 void DispatchKeyEvent(ui::KeyEvent* event) override; | 29 void DispatchKeyEvent(ui::KeyEvent* event) override; |
| 30 void OnTextInputTypeChanged(const TextInputClient* client) override; | 30 void OnTextInputTypeChanged(const TextInputClient* client) override; |
| 31 void OnCaretBoundsChanged(const TextInputClient* client) override; | 31 void OnCaretBoundsChanged(const TextInputClient* client) override; |
| 32 void CancelComposition(const TextInputClient* client) override; | 32 void CancelComposition(const TextInputClient* client) override; |
| 33 void OnInputLocaleChanged() override; | 33 void OnInputLocaleChanged() override; |
| 34 std::string GetInputLocale() override; | 34 bool IsInputLocaleCJK() const override; |
| 35 TextInputType GetTextInputType() const override; | 35 TextInputType GetTextInputType() const override; |
| 36 TextInputMode GetTextInputMode() const override; | 36 TextInputMode GetTextInputMode() const override; |
| 37 int GetTextInputFlags() const override; | 37 int GetTextInputFlags() const override; |
| 38 bool CanComposeInline() const override; | 38 bool CanComposeInline() const override; |
| 39 bool IsCandidatePopupOpen() const override; | 39 bool IsCandidatePopupOpen() const override; |
| 40 void ShowImeIfNeeded() override; | 40 void ShowImeIfNeeded() override; |
| 41 | 41 |
| 42 void AddObserver(InputMethodObserver* observer) override; | 42 void AddObserver(InputMethodObserver* observer) override; |
| 43 void RemoveObserver(InputMethodObserver* observer) override; | 43 void RemoveObserver(InputMethodObserver* observer) override; |
| 44 | 44 |
| 45 const std::vector<std::unique_ptr<KeyEvent>>& GetKeyEventsForTesting() | 45 const std::vector<std::unique_ptr<KeyEvent>>& GetKeyEventsForTesting() |
| 46 override; | 46 override; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 std::vector<std::unique_ptr<KeyEvent>> key_events_for_testing_; | 49 std::vector<std::unique_ptr<KeyEvent>> key_events_for_testing_; |
| 50 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod); | 50 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace ui | 53 } // namespace ui |
| 54 | 54 |
| 55 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_ | 55 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
| OLD | NEW |