| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); } | 175 void resetInputMethod() override { widget_test_client()->resetInputMethod(); } |
| 176 | 176 |
| 177 // WebViewClient implementation. | 177 // WebViewClient implementation. |
| 178 void startDragging(blink::WebLocalFrame* frame, | 178 void startDragging(blink::WebReferrerPolicy policy, |
| 179 const blink::WebDragData& data, | 179 const blink::WebDragData& data, |
| 180 blink::WebDragOperationsMask mask, | 180 blink::WebDragOperationsMask mask, |
| 181 const blink::WebImage& image, | 181 const blink::WebImage& image, |
| 182 const blink::WebPoint& point) override { | 182 const blink::WebPoint& point) override { |
| 183 view_test_client()->startDragging(frame, data, mask, image, point); | 183 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 | 184 // Don't forward this call to Base because we don't want to do a real |
| 185 // drag-and-drop. | 185 // drag-and-drop. |
| 186 } | 186 } |
| 187 void didChangeContents() override { | 187 void didChangeContents() override { |
| 188 view_test_client()->didChangeContents(); | 188 view_test_client()->didChangeContents(); |
| 189 Base::didChangeContents(); | 189 Base::didChangeContents(); |
| 190 } | 190 } |
| 191 blink::WebView* createView(blink::WebLocalFrame* creator, | 191 blink::WebView* createView(blink::WebLocalFrame* creator, |
| 192 const blink::WebURLRequest& request, | 192 const blink::WebURLRequest& request, |
| 193 const blink::WebWindowFeatures& features, | 193 const blink::WebWindowFeatures& features, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 226 |
| 227 private: | 227 private: |
| 228 virtual ~WebViewTestProxy() {} | 228 virtual ~WebViewTestProxy() {} |
| 229 | 229 |
| 230 DISALLOW_COPY_AND_ASSIGN(WebViewTestProxy); | 230 DISALLOW_COPY_AND_ASSIGN(WebViewTestProxy); |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 } // namespace test_runner | 233 } // namespace test_runner |
| 234 | 234 |
| 235 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ | 235 #endif // COMPONENTS_TEST_RUNNER_WEB_VIEW_TEST_PROXY_H_ |
| OLD | NEW |