OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ |
6 #define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 165 } |
166 void didFocus() override { | 166 void didFocus() override { |
167 view_test_client()->didFocus(); | 167 view_test_client()->didFocus(); |
168 Base::didFocus(); | 168 Base::didFocus(); |
169 } | 169 } |
170 void setToolTipText(const blink::WebString& text, | 170 void setToolTipText(const blink::WebString& text, |
171 blink::WebTextDirection hint) override { | 171 blink::WebTextDirection hint) override { |
172 widget_test_client()->setToolTipText(text, hint); | 172 widget_test_client()->setToolTipText(text, hint); |
173 Base::setToolTipText(text, hint); | 173 Base::setToolTipText(text, hint); |
174 } | 174 } |
175 void resetInputMethod() override { widget_test_client()->resetInputMethod(); } | |
176 | 175 |
177 // WebViewClient implementation. | 176 // WebViewClient implementation. |
178 void startDragging(blink::WebReferrerPolicy policy, | 177 void startDragging(blink::WebReferrerPolicy policy, |
179 const blink::WebDragData& data, | 178 const blink::WebDragData& data, |
180 blink::WebDragOperationsMask mask, | 179 blink::WebDragOperationsMask mask, |
181 const blink::WebImage& image, | 180 const blink::WebImage& image, |
182 const blink::WebPoint& point) override { | 181 const blink::WebPoint& point) override { |
183 widget_test_client()->startDragging(policy, data, mask, image, point); | 182 widget_test_client()->startDragging(policy, data, mask, image, point); |
184 // Don't forward this call to Base because we don't want to do a real | 183 // Don't forward this call to Base because we don't want to do a real |
185 // drag-and-drop. | 184 // drag-and-drop. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 225 |
227 private: | 226 private: |
228 virtual ~WebViewTestProxy() {} | 227 virtual ~WebViewTestProxy() {} |
229 | 228 |
230 DISALLOW_COPY_AND_ASSIGN(WebViewTestProxy); | 229 DISALLOW_COPY_AND_ASSIGN(WebViewTestProxy); |
231 }; | 230 }; |
232 | 231 |
233 } // namespace test_runner | 232 } // namespace test_runner |
234 | 233 |
235 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ | 234 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ |
OLD | NEW |