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. | |
Rick Byers
2017/03/09 13:22:24
nit: explicitly add "(not saved to expected output
Dan Elphick
2017/03/09 13:41:40
Done.
| |
74 virtual void PrintLogMessage(const std::string& message) = 0; | |
75 | |
73 // Add a message to the text dump for the layout test. | 76 // Add a message to the text dump for the layout test. |
74 virtual void PrintMessage(const std::string& message) = 0; | 77 virtual void PrintMessage(const std::string& message) = 0; |
75 | 78 |
76 // The delegate takes ownership of the WebTask objects and is responsible | 79 // The delegate takes ownership of the WebTask objects and is responsible |
77 // for deleting them. | 80 // for deleting them. |
78 virtual void PostTask(const base::Closure& task) = 0; | 81 virtual void PostTask(const base::Closure& task) = 0; |
79 virtual void PostDelayedTask(const base::Closure& task, long long ms) = 0; | 82 virtual void PostDelayedTask(const base::Closure& task, long long ms) = 0; |
80 | 83 |
81 // Register a new isolated filesystem with the given files, and return the | 84 // Register a new isolated filesystem with the given files, and return the |
82 // new filesystem id. | 85 // new filesystem id. |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 | 298 |
296 // PlzNavigate | 299 // PlzNavigate |
297 // Indicates if the navigation was initiated by the browser or renderer. | 300 // Indicates if the navigation was initiated by the browser or renderer. |
298 virtual bool IsNavigationInitiatedByRenderer( | 301 virtual bool IsNavigationInitiatedByRenderer( |
299 const blink::WebURLRequest& request) = 0; | 302 const blink::WebURLRequest& request) = 0; |
300 }; | 303 }; |
301 | 304 |
302 } // namespace test_runner | 305 } // namespace test_runner |
303 | 306 |
304 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 307 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |