Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/browser/chromeos/input_method/textinput_test_helper.cc

Issue 13932030: Delayed loading of the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix failing test Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/string_util.h" 6 #include "base/string_util.h"
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/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
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 MessageLoop::current()->Quit(); 78 MessageLoop::current()->Quit();
79 } 79 }
80 80
81 void TextInputTestHelper::OnInputMethodDestroyed(
82 const ui::InputMethod* input_method) {
83 }
84
81 void TextInputTestHelper::OnFocus() { 85 void TextInputTestHelper::OnFocus() {
82 focus_state_ = true; 86 focus_state_ = true;
83 if (waiting_type_ == WAIT_ON_FOCUS) 87 if (waiting_type_ == WAIT_ON_FOCUS)
84 MessageLoop::current()->Quit(); 88 MessageLoop::current()->Quit();
85 } 89 }
86 90
87 void TextInputTestHelper::OnBlur() { 91 void TextInputTestHelper::OnBlur() {
88 focus_state_ = false; 92 focus_state_ = false;
89 if (waiting_type_ == WAIT_ON_BLUR) 93 if (waiting_type_ == WAIT_ON_BLUR)
90 MessageLoop::current()->Quit(); 94 MessageLoop::current()->Quit();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 mouse_event.y = rect.CenterPoint().y(); 194 mouse_event.y = rect.CenterPoint().y();
191 mouse_event.clickCount = 1; 195 mouse_event.clickCount = 1;
192 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); 196 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
193 197
194 mouse_event.type = WebKit::WebInputEvent::MouseUp; 198 mouse_event.type = WebKit::WebInputEvent::MouseUp;
195 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event); 199 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
196 return true; 200 return true;
197 } 201 }
198 202
199 } // namespace chromeos 203 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/textinput_test_helper.h ('k') | ui/base/ime/input_method_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698