OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
6 #define CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Platform::setDeviceLightListener(). | 63 // Platform::setDeviceLightListener(). |
64 virtual void SetDeviceLightData(const double data) = 0; | 64 virtual void SetDeviceLightData(const double data) = 0; |
65 // Set data to return when registering via | 65 // Set data to return when registering via |
66 // Platform::setDeviceMotionListener(). | 66 // Platform::setDeviceMotionListener(). |
67 virtual void SetDeviceMotionData(const blink::WebDeviceMotionData& data) = 0; | 67 virtual void SetDeviceMotionData(const blink::WebDeviceMotionData& data) = 0; |
68 // Set data to return when registering via | 68 // Set data to return when registering via |
69 // Platform::setDeviceOrientationListener(). | 69 // Platform::setDeviceOrientationListener(). |
70 virtual void SetDeviceOrientationData( | 70 virtual void SetDeviceOrientationData( |
71 const blink::WebDeviceOrientationData& data) = 0; | 71 const blink::WebDeviceOrientationData& data) = 0; |
72 | 72 |
| 73 // Add a message to stderr (not saved to expected output files, for debugging |
| 74 // only). |
| 75 virtual void PrintMessageToStderr(const std::string& message) = 0; |
| 76 |
73 // Add a message to the text dump for the layout test. | 77 // Add a message to the text dump for the layout test. |
74 virtual void PrintMessage(const std::string& message) = 0; | 78 virtual void PrintMessage(const std::string& message) = 0; |
75 | 79 |
76 // The delegate takes ownership of the WebTask objects and is responsible | 80 // The delegate takes ownership of the WebTask objects and is responsible |
77 // for deleting them. | 81 // for deleting them. |
78 virtual void PostTask(const base::Closure& task) = 0; | 82 virtual void PostTask(const base::Closure& task) = 0; |
79 virtual void PostDelayedTask(const base::Closure& task, long long ms) = 0; | 83 virtual void PostDelayedTask(const base::Closure& task, long long ms) = 0; |
80 | 84 |
81 // Register a new isolated filesystem with the given files, and return the | 85 // Register a new isolated filesystem with the given files, and return the |
82 // new filesystem id. | 86 // new filesystem id. |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 299 |
296 // PlzNavigate | 300 // PlzNavigate |
297 // Indicates if the navigation was initiated by the browser or renderer. | 301 // Indicates if the navigation was initiated by the browser or renderer. |
298 virtual bool IsNavigationInitiatedByRenderer( | 302 virtual bool IsNavigationInitiatedByRenderer( |
299 const blink::WebURLRequest& request) = 0; | 303 const blink::WebURLRequest& request) = 0; |
300 }; | 304 }; |
301 | 305 |
302 } // namespace test_runner | 306 } // namespace test_runner |
303 | 307 |
304 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 308 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |