OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ |
7 | 7 |
8 #include "chrome/test/base/in_process_browser_test.h" | 8 #include "chrome/test/base/in_process_browser_test.h" |
9 #include "ui/base/ime/mock_input_method.h" | 9 #include "ui/base/ime/mock_input_method.h" |
10 #include "ui/base/ime/text_input_client.h" | 10 #include "ui/base/ime/text_input_client.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual void OnTextInputTypeChanged( | 74 virtual void OnTextInputTypeChanged( |
75 const ui::TextInputClient* client) override; | 75 const ui::TextInputClient* client) override; |
76 virtual void OnFocus() override; | 76 virtual void OnFocus() override; |
77 virtual void OnBlur() override; | 77 virtual void OnBlur() override; |
78 virtual void OnCaretBoundsChanged(const ui::TextInputClient* client) override; | 78 virtual void OnCaretBoundsChanged(const ui::TextInputClient* client) override; |
79 virtual void OnTextInputStateChanged( | 79 virtual void OnTextInputStateChanged( |
80 const ui::TextInputClient* client) override; | 80 const ui::TextInputClient* client) override; |
81 virtual void OnShowImeIfNeeded() override; | 81 virtual void OnShowImeIfNeeded() override; |
82 virtual void OnInputMethodDestroyed( | 82 virtual void OnInputMethodDestroyed( |
83 const ui::InputMethod* input_method) override; | 83 const ui::InputMethod* input_method) override; |
| 84 virtual void OnKeyboardBoundsUnchanged() override; |
84 | 85 |
85 // Represents waiting type of text input event. | 86 // Represents waiting type of text input event. |
86 WaitImeEventType waiting_type_; | 87 WaitImeEventType waiting_type_; |
87 | 88 |
88 base::string16 surrounding_text_; | 89 base::string16 surrounding_text_; |
89 gfx::Rect caret_rect_; | 90 gfx::Rect caret_rect_; |
90 gfx::Rect composition_head_; | 91 gfx::Rect composition_head_; |
91 gfx::Range selection_range_; | 92 gfx::Range selection_range_; |
92 bool focus_state_; | 93 bool focus_state_; |
93 ui::TextInputType latest_text_input_type_; | 94 ui::TextInputType latest_text_input_type_; |
94 | 95 |
95 DISALLOW_COPY_AND_ASSIGN(TextInputTestHelper); | 96 DISALLOW_COPY_AND_ASSIGN(TextInputTestHelper); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace chromeos | 99 } // namespace chromeos |
99 | 100 |
100 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ | 101 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ |
OLD | NEW |