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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 widget_test_client()->requestPointerUnlock(); | 115 widget_test_client()->requestPointerUnlock(); |
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(); } | |
126 void startDragging(blink::WebReferrerPolicy policy, | 125 void startDragging(blink::WebReferrerPolicy policy, |
127 const blink::WebDragData& data, | 126 const blink::WebDragData& data, |
128 blink::WebDragOperationsMask mask, | 127 blink::WebDragOperationsMask mask, |
129 const blink::WebImage& image, | 128 const blink::WebImage& image, |
130 const blink::WebPoint& point) override { | 129 const blink::WebPoint& point) override { |
131 widget_test_client()->startDragging(policy, data, mask, image, point); | 130 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 | 131 // Don't forward this call to Base because we don't want to do a real |
133 // drag-and-drop. | 132 // drag-and-drop. |
134 } | 133 } |
135 | 134 |
136 private: | 135 private: |
137 virtual ~WebWidgetTestProxy() {} | 136 virtual ~WebWidgetTestProxy() {} |
138 | 137 |
139 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy); | 138 DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxy); |
140 }; | 139 }; |
141 | 140 |
142 } // namespace test_runner | 141 } // namespace test_runner |
143 | 142 |
144 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ | 143 #endif // COMPONENTS_TEST_RUNNER_WEB_WIDGET_TEST_PROXY_H_ |
OLD | NEW |