| 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 base { |
| 21 class DictionaryValue; |
| 22 } |
| 23 |
| 20 namespace blink { | 24 namespace blink { |
| 21 class WebDeviceMotionData; | 25 class WebDeviceMotionData; |
| 22 class WebDeviceOrientationData; | 26 class WebDeviceOrientationData; |
| 23 class WebFrame; | 27 class WebFrame; |
| 24 class WebGamepad; | 28 class WebGamepad; |
| 25 class WebGamepads; | 29 class WebGamepads; |
| 26 class WebHistoryItem; | 30 class WebHistoryItem; |
| 27 class WebLayer; | 31 class WebLayer; |
| 28 class WebLocalFrame; | 32 class WebLocalFrame; |
| 29 class WebMediaStream; | 33 class WebMediaStream; |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // third-party context is blocked. | 209 // third-party context is blocked. |
| 206 virtual void SetAcceptAllCookies(bool accept) = 0; | 210 virtual void SetAcceptAllCookies(bool accept) = 0; |
| 207 | 211 |
| 208 // The same as RewriteLayoutTestsURL unless the resource is a path starting | 212 // The same as RewriteLayoutTestsURL unless the resource is a path starting |
| 209 // with /tmp/, then return a file URL to a temporary file. | 213 // with /tmp/, then return a file URL to a temporary file. |
| 210 virtual std::string PathToLocalResource(const std::string& resource) = 0; | 214 virtual std::string PathToLocalResource(const std::string& resource) = 0; |
| 211 | 215 |
| 212 // Sets the POSIX locale of the current process. | 216 // Sets the POSIX locale of the current process. |
| 213 virtual void SetLocale(const std::string& locale) = 0; | 217 virtual void SetLocale(const std::string& locale) = 0; |
| 214 | 218 |
| 219 // Invoked when layout dump flags change. |
| 220 virtual void OnLayoutDumpFlagsChanged( |
| 221 const base::DictionaryValue& changed_values) = 0; |
| 222 |
| 215 // Invoked when the test finished. | 223 // Invoked when the test finished. |
| 216 virtual void TestFinished() = 0; | 224 virtual void TestFinished() = 0; |
| 217 | 225 |
| 218 // Invoked when the embedder should close all but the main WebView. | 226 // Invoked when the embedder should close all but the main WebView. |
| 219 virtual void CloseRemainingWindows() = 0; | 227 virtual void CloseRemainingWindows() = 0; |
| 220 | 228 |
| 221 virtual void DeleteAllCookies() = 0; | 229 virtual void DeleteAllCookies() = 0; |
| 222 | 230 |
| 223 // Returns the length of the back/forward history of the main WebView. | 231 // Returns the length of the back/forward history of the main WebView. |
| 224 virtual int NavigationEntryCount() = 0; | 232 virtual int NavigationEntryCount() = 0; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; | 294 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; |
| 287 | 295 |
| 288 // Convert the position in DIP to native coordinates. | 296 // Convert the position in DIP to native coordinates. |
| 289 virtual blink::WebPoint ConvertDIPToNative( | 297 virtual blink::WebPoint ConvertDIPToNative( |
| 290 const blink::WebPoint& point_in_dip) const = 0; | 298 const blink::WebPoint& point_in_dip) const = 0; |
| 291 }; | 299 }; |
| 292 | 300 |
| 293 } // namespace test_runner | 301 } // namespace test_runner |
| 294 | 302 |
| 295 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 303 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |