| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 const ui::TextInputClient* client) { | 75 const ui::TextInputClient* client) { |
| 76 latest_text_input_type_ = | 76 latest_text_input_type_ = |
| 77 client ? client->GetTextInputType() : ui::TEXT_INPUT_TYPE_NONE; | 77 client ? client->GetTextInputType() : ui::TEXT_INPUT_TYPE_NONE; |
| 78 if (waiting_type_ == WAIT_ON_TEXT_INPUT_TYPE_CHANGED) | 78 if (waiting_type_ == WAIT_ON_TEXT_INPUT_TYPE_CHANGED) |
| 79 base::MessageLoop::current()->Quit(); | 79 base::MessageLoop::current()->Quit(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void TextInputTestHelper::OnShowImeIfNeeded() { | 82 void TextInputTestHelper::OnShowImeIfNeeded() { |
| 83 } | 83 } |
| 84 | 84 |
| 85 void TextInputTestHelper::OnKeyboardBoundsUnchanged() { |
| 86 } |
| 87 |
| 85 void TextInputTestHelper::OnInputMethodDestroyed( | 88 void TextInputTestHelper::OnInputMethodDestroyed( |
| 86 const ui::InputMethod* input_method) { | 89 const ui::InputMethod* input_method) { |
| 87 } | 90 } |
| 88 | 91 |
| 89 void TextInputTestHelper::OnFocus() { | 92 void TextInputTestHelper::OnFocus() { |
| 90 focus_state_ = true; | 93 focus_state_ = true; |
| 91 if (waiting_type_ == WAIT_ON_FOCUS) | 94 if (waiting_type_ == WAIT_ON_FOCUS) |
| 92 base::MessageLoop::current()->Quit(); | 95 base::MessageLoop::current()->Quit(); |
| 93 } | 96 } |
| 94 | 97 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 mouse_event.y = rect.CenterPoint().y(); | 204 mouse_event.y = rect.CenterPoint().y(); |
| 202 mouse_event.clickCount = 1; | 205 mouse_event.clickCount = 1; |
| 203 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); | 206 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); |
| 204 | 207 |
| 205 mouse_event.type = blink::WebInputEvent::MouseUp; | 208 mouse_event.type = blink::WebInputEvent::MouseUp; |
| 206 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); | 209 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); |
| 207 return true; | 210 return true; |
| 208 } | 211 } |
| 209 | 212 |
| 210 } // namespace chromeos | 213 } // namespace chromeos |
| OLD | NEW |