| 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 #ifndef COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 bool isPointerLocked() override { | 117 bool isPointerLocked() override { |
| 118 return widget_test_client()->isPointerLocked(); | 118 return widget_test_client()->isPointerLocked(); |
| 119 } | 119 } |
| 120 void setToolTipText(const blink::WebString& text, | 120 void setToolTipText(const blink::WebString& text, |
| 121 blink::WebTextDirection hint) override { | 121 blink::WebTextDirection hint) override { |
| 122 Base::setToolTipText(text, hint); | 122 Base::setToolTipText(text, hint); |
| 123 widget_test_client()->setToolTipText(text, hint); | 123 widget_test_client()->setToolTipText(text, hint); |
| 124 } | 124 } |
| 125 void resetInputMethod() override { widget_test_client()->resetInputMethod(); } | 125 void resetInputMethod() override { widget_test_client()->resetInputMethod(); } |
| 126 void startDragging(blink::WebReferrerPolicy policy, |
| 127 const blink::WebDragData& data, |
| 128 blink::WebDragOperationsMask mask, |
| 129 const blink::WebImage& image, |
| 130 const blink::WebPoint& point) override { |
| 131 widget_test_client()->startDragging(policy, data, mask, image, point); |
| 132 // Don't forward this call to Base because we don't want to do a real |
| 133 // drag-and-drop. |
| 134 } |
| 126 | 135 |
| 127 private: | 136 private: |
| 128 virtual ~WebWidgetTestProxy() {} | 137 virtual ~WebWidgetTestProxy() {} |
| 129 | 138 |
| 130 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy); | 139 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy); |
| 131 }; | 140 }; |
| 132 | 141 |
| 133 } // namespace test_runner | 142 } // namespace test_runner |
| 134 | 143 |
| 135 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ | 144 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ |
| OLD | NEW |