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_TEST_PROXY_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ |
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 bool requestPointerLock() override { | 177 bool requestPointerLock() override { |
178 return widget_test_client()->requestPointerLock(); | 178 return widget_test_client()->requestPointerLock(); |
179 } | 179 } |
180 void requestPointerUnlock() override { | 180 void requestPointerUnlock() override { |
181 widget_test_client()->requestPointerUnlock(); | 181 widget_test_client()->requestPointerUnlock(); |
182 } | 182 } |
183 bool isPointerLocked() override { | 183 bool isPointerLocked() override { |
184 return widget_test_client()->isPointerLocked(); | 184 return widget_test_client()->isPointerLocked(); |
185 } | 185 } |
186 void didFocus() override { | 186 void didFocus() override { |
187 widget_test_client()->didFocus(); | 187 view_test_client()->didFocus(); |
188 Base::didFocus(); | 188 Base::didFocus(); |
189 } | 189 } |
190 void setToolTipText(const blink::WebString& text, | 190 void setToolTipText(const blink::WebString& text, |
191 blink::WebTextDirection hint) override { | 191 blink::WebTextDirection hint) override { |
192 widget_test_client()->setToolTipText(text, hint); | 192 widget_test_client()->setToolTipText(text, hint); |
193 Base::setToolTipText(text, hint); | 193 Base::setToolTipText(text, hint); |
194 } | 194 } |
195 void resetInputMethod() override { widget_test_client()->resetInputMethod(); } | 195 void resetInputMethod() override { widget_test_client()->resetInputMethod(); } |
196 | 196 |
197 // WebViewClient implementation. | 197 // WebViewClient implementation. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 private: | 247 private: |
248 virtual ~WebTestProxy() {} | 248 virtual ~WebTestProxy() {} |
249 | 249 |
250 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 250 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
251 }; | 251 }; |
252 | 252 |
253 } // namespace test_runner | 253 } // namespace test_runner |
254 | 254 |
255 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ | 255 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ |
OLD | NEW |