OLD | NEW |
---|---|
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 | 96 |
97 void WebWidgetTestClient::setToolTipText(const blink::WebString& text, | 97 void WebWidgetTestClient::setToolTipText(const blink::WebString& text, |
98 blink::WebTextDirection direction) { | 98 blink::WebTextDirection direction) { |
99 test_runner_->setToolTipText(text); | 99 test_runner_->setToolTipText(text); |
100 } | 100 } |
101 | 101 |
102 void WebWidgetTestClient::resetInputMethod() { | 102 void WebWidgetTestClient::resetInputMethod() { |
103 // If a composition text exists, then we need to let the browser process | 103 // If a composition text exists, then we need to let the browser process |
104 // to cancel the input method's ongoing composition session. | 104 // to cancel the input method's ongoing composition session. |
105 if (web_view_test_proxy_base_) | 105 if (web_view_test_proxy_base_) |
106 web_view_test_proxy_base_->web_widget()->confirmComposition(); | 106 web_view_test_proxy_base_->web_widget()->confirmComposition(1); |
Changwan Ryu
2016/08/03 07:37:29
ditto
yabinh
2016/08/08 07:33:43
Done.
| |
107 } | 107 } |
108 | 108 |
109 } // namespace test_runner | 109 } // namespace test_runner |
OLD | NEW |