Chromium Code Reviews

Side by Side Diff: components/test_runner/web_widget_test_client.cc

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For aelias and yosin review Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/test_runner/web_widget_test_client.h" 5 #include "components/test_runner/web_widget_test_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 86 matching lines...)
97 97
98 void WebWidgetTestClient::setToolTipText(const blink::WebString& text, 98 void WebWidgetTestClient::setToolTipText(const blink::WebString& text,
99 blink::WebTextDirection direction) { 99 blink::WebTextDirection direction) {
100 test_runner_->setToolTipText(text); 100 test_runner_->setToolTipText(text);
101 } 101 }
102 102
103 void WebWidgetTestClient::resetInputMethod() { 103 void WebWidgetTestClient::resetInputMethod() {
104 // If a composition text exists, then we need to let the browser process 104 // If a composition text exists, then we need to let the browser process
105 // to cancel the input method's ongoing composition session. 105 // to cancel the input method's ongoing composition session.
106 if (web_widget_test_proxy_base_) 106 if (web_widget_test_proxy_base_)
107 web_widget_test_proxy_base_->web_widget()->confirmComposition(); 107 web_widget_test_proxy_base_->web_widget()->finishComposingText(
108 blink::WebWidget::KeepSelection);
108 } 109 }
109 110
110 } // namespace test_runner 111 } // namespace test_runner
OLDNEW

Powered by Google App Engine