| 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 COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
| 14 #include "third_party/WebKit/public/platform/WebURL.h" | 14 #include "third_party/WebKit/public/platform/WebURL.h" |
| 15 #include "third_party/WebKit/public/platform/WebVector.h" | 15 #include "third_party/WebKit/public/platform/WebVector.h" |
| 16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
| 17 | 17 |
| 18 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE | 18 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 class WebBatteryStatus; |
| 21 class WebDeviceMotionData; | 22 class WebDeviceMotionData; |
| 22 class WebDeviceOrientationData; | 23 class WebDeviceOrientationData; |
| 23 class WebFrame; | 24 class WebFrame; |
| 24 class WebGamepad; | 25 class WebGamepad; |
| 25 class WebGamepads; | 26 class WebGamepads; |
| 26 class WebHistoryItem; | 27 class WebHistoryItem; |
| 27 class WebLayer; | 28 class WebLayer; |
| 28 class WebLocalFrame; | 29 class WebLocalFrame; |
| 29 class WebMediaStream; | 30 class WebMediaStream; |
| 30 class WebPlugin; | 31 class WebPlugin; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const blink::WebDeviceOrientationData& data) = 0; | 75 const blink::WebDeviceOrientationData& data) = 0; |
| 75 | 76 |
| 76 // Set orientation to set when registering via | 77 // Set orientation to set when registering via |
| 77 // Platform::setScreenOrientationListener(). | 78 // Platform::setScreenOrientationListener(). |
| 78 virtual void SetScreenOrientation( | 79 virtual void SetScreenOrientation( |
| 79 const blink::WebScreenOrientationType& orientation) = 0; | 80 const blink::WebScreenOrientationType& orientation) = 0; |
| 80 | 81 |
| 81 // Reset the screen orientation data used for testing. | 82 // Reset the screen orientation data used for testing. |
| 82 virtual void ResetScreenOrientation() = 0; | 83 virtual void ResetScreenOrientation() = 0; |
| 83 | 84 |
| 85 // Notifies blink about a change in battery status. |
| 86 virtual void DidChangeBatteryStatus( |
| 87 const blink::WebBatteryStatus& status) = 0; |
| 88 |
| 84 // Add a message to the text dump for the layout test. | 89 // Add a message to the text dump for the layout test. |
| 85 virtual void PrintMessage(const std::string& message) = 0; | 90 virtual void PrintMessage(const std::string& message) = 0; |
| 86 | 91 |
| 87 // The delegate takes ownership of the WebTask objects and is responsible | 92 // The delegate takes ownership of the WebTask objects and is responsible |
| 88 // for deleting them. | 93 // for deleting them. |
| 89 virtual void PostTask(WebTask* task) = 0; | 94 virtual void PostTask(WebTask* task) = 0; |
| 90 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; | 95 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; |
| 91 | 96 |
| 92 // Register a new isolated filesystem with the given files, and return the | 97 // Register a new isolated filesystem with the given files, and return the |
| 93 // new filesystem id. | 98 // new filesystem id. |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; | 288 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; |
| 284 | 289 |
| 285 // Convert the position in DIP to native coordinates. | 290 // Convert the position in DIP to native coordinates. |
| 286 virtual blink::WebPoint ConvertDIPToNative( | 291 virtual blink::WebPoint ConvertDIPToNative( |
| 287 const blink::WebPoint& point_in_dip) const = 0; | 292 const blink::WebPoint& point_in_dip) const = 0; |
| 288 }; | 293 }; |
| 289 | 294 |
| 290 } // namespace test_runner | 295 } // namespace test_runner |
| 291 | 296 |
| 292 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 297 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |