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/WebTaskRunner.h" |
14 #include "third_party/WebKit/public/platform/WebURL.h" | 15 #include "third_party/WebKit/public/platform/WebURL.h" |
15 #include "third_party/WebKit/public/platform/WebVector.h" | 16 #include "third_party/WebKit/public/platform/WebVector.h" |
16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 17 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
17 | 18 |
18 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE | 19 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE |
19 | 20 |
20 namespace base { | 21 namespace base { |
21 class DictionaryValue; | 22 class DictionaryValue; |
22 } | 23 } |
23 | 24 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Set data to return when registering via | 76 // Set data to return when registering via |
76 // Platform::setDeviceOrientationListener(). | 77 // Platform::setDeviceOrientationListener(). |
77 virtual void SetDeviceOrientationData( | 78 virtual void SetDeviceOrientationData( |
78 const blink::WebDeviceOrientationData& data) = 0; | 79 const blink::WebDeviceOrientationData& data) = 0; |
79 | 80 |
80 // Add a message to the text dump for the layout test. | 81 // Add a message to the text dump for the layout test. |
81 virtual void PrintMessage(const std::string& message) = 0; | 82 virtual void PrintMessage(const std::string& message) = 0; |
82 | 83 |
83 // The delegate takes ownership of the WebTask objects and is responsible | 84 // The delegate takes ownership of the WebTask objects and is responsible |
84 // for deleting them. | 85 // for deleting them. |
85 virtual void PostTask(WebTask* task) = 0; | 86 virtual void PostTask(blink::WebTaskRunner::Task* task) = 0; |
86 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; | 87 virtual void PostDelayedTask(blink::WebTaskRunner::Task* task, |
| 88 long long ms) = 0; |
87 | 89 |
88 // Register a new isolated filesystem with the given files, and return the | 90 // Register a new isolated filesystem with the given files, and return the |
89 // new filesystem id. | 91 // new filesystem id. |
90 virtual blink::WebString RegisterIsolatedFileSystem( | 92 virtual blink::WebString RegisterIsolatedFileSystem( |
91 const blink::WebVector<blink::WebString>& absolute_filenames) = 0; | 93 const blink::WebVector<blink::WebString>& absolute_filenames) = 0; |
92 | 94 |
93 // Gets the current time in milliseconds since the UNIX epoch. | 95 // Gets the current time in milliseconds since the UNIX epoch. |
94 virtual long long GetCurrentTimeInMillisecond() = 0; | 96 virtual long long GetCurrentTimeInMillisecond() = 0; |
95 | 97 |
96 // Convert the provided relative path into an absolute path. | 98 // Convert the provided relative path into an absolute path. |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 const blink::WebPluginParams& params) = 0; | 275 const blink::WebPluginParams& params) = 0; |
274 | 276 |
275 // Convert the position in DIP to native coordinates. | 277 // Convert the position in DIP to native coordinates. |
276 virtual blink::WebPoint ConvertDIPToNative( | 278 virtual blink::WebPoint ConvertDIPToNative( |
277 const blink::WebPoint& point_in_dip) const = 0; | 279 const blink::WebPoint& point_in_dip) const = 0; |
278 }; | 280 }; |
279 | 281 |
280 } // namespace test_runner | 282 } // namespace test_runner |
281 | 283 |
282 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 284 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |