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 #include "ash/shell.h" | 5 #include "ash/shell.h" |
6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/chromeos/input_method/textinput_test_helper.h" | 9 #include "chrome/browser/chromeos/input_method/textinput_test_helper.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 return GetInputMethod()->GetTextInputClient(); | 71 return GetInputMethod()->GetTextInputClient(); |
72 } | 72 } |
73 | 73 |
74 void TextInputTestHelper::OnTextInputTypeChanged( | 74 void TextInputTestHelper::OnTextInputTypeChanged( |
75 const ui::TextInputClient* client) { | 75 const ui::TextInputClient* client) { |
76 latest_text_input_type_ = client->GetTextInputType(); | 76 latest_text_input_type_ = client->GetTextInputType(); |
77 if (waiting_type_ == WAIT_ON_TEXT_INPUT_TYPE_CHANGED) | 77 if (waiting_type_ == WAIT_ON_TEXT_INPUT_TYPE_CHANGED) |
78 base::MessageLoop::current()->Quit(); | 78 base::MessageLoop::current()->Quit(); |
79 } | 79 } |
80 | 80 |
| 81 void TextInputTestHelper::OnShowImeIfNeeded() { |
| 82 } |
| 83 |
81 void TextInputTestHelper::OnInputMethodDestroyed( | 84 void TextInputTestHelper::OnInputMethodDestroyed( |
82 const ui::InputMethod* input_method) { | 85 const ui::InputMethod* input_method) { |
83 } | 86 } |
84 | 87 |
85 void TextInputTestHelper::OnFocus() { | 88 void TextInputTestHelper::OnFocus() { |
86 focus_state_ = true; | 89 focus_state_ = true; |
87 if (waiting_type_ == WAIT_ON_FOCUS) | 90 if (waiting_type_ == WAIT_ON_FOCUS) |
88 base::MessageLoop::current()->Quit(); | 91 base::MessageLoop::current()->Quit(); |
89 } | 92 } |
90 | 93 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 mouse_event.y = rect.CenterPoint().y(); | 197 mouse_event.y = rect.CenterPoint().y(); |
195 mouse_event.clickCount = 1; | 198 mouse_event.clickCount = 1; |
196 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); | 199 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); |
197 | 200 |
198 mouse_event.type = blink::WebInputEvent::MouseUp; | 201 mouse_event.type = blink::WebInputEvent::MouseUp; |
199 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); | 202 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); |
200 return true; | 203 return true; |
201 } | 204 } |
202 | 205 |
203 } // namespace chromeos | 206 } // namespace chromeos |
OLD | NEW |