| 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 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 namespace cc { | 40 namespace cc { |
| 41 class TextureLayer; | 41 class TextureLayer; |
| 42 class TextureLayerClient; | 42 class TextureLayerClient; |
| 43 class SharedBitmapManager; | 43 class SharedBitmapManager; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace test_runner { | 46 namespace test_runner { |
| 47 | 47 |
| 48 class DeviceLightData; | 48 class DeviceLightData; |
| 49 class GamepadController; | 49 class GamepadController; |
| 50 class LayoutDumpFlags; |
| 50 class WebTask; | 51 class WebTask; |
| 51 class WebTestProxyBase; | 52 class WebTestProxyBase; |
| 52 struct TestPreferences; | 53 struct TestPreferences; |
| 53 | 54 |
| 54 class WebTestDelegate { | 55 class WebTestDelegate { |
| 55 public: | 56 public: |
| 56 // Set and clear the edit command to execute on the next call to | 57 // Set and clear the edit command to execute on the next call to |
| 57 // WebViewClient::handleCurrentKeyboardEvent(). | 58 // WebViewClient::handleCurrentKeyboardEvent(). |
| 58 virtual void ClearEditCommand() = 0; | 59 virtual void ClearEditCommand() = 0; |
| 59 virtual void SetEditCommand(const std::string& name, | 60 virtual void SetEditCommand(const std::string& name, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // third-party context is blocked. | 206 // third-party context is blocked. |
| 206 virtual void SetAcceptAllCookies(bool accept) = 0; | 207 virtual void SetAcceptAllCookies(bool accept) = 0; |
| 207 | 208 |
| 208 // The same as RewriteLayoutTestsURL unless the resource is a path starting | 209 // The same as RewriteLayoutTestsURL unless the resource is a path starting |
| 209 // with /tmp/, then return a file URL to a temporary file. | 210 // with /tmp/, then return a file URL to a temporary file. |
| 210 virtual std::string PathToLocalResource(const std::string& resource) = 0; | 211 virtual std::string PathToLocalResource(const std::string& resource) = 0; |
| 211 | 212 |
| 212 // Sets the POSIX locale of the current process. | 213 // Sets the POSIX locale of the current process. |
| 213 virtual void SetLocale(const std::string& locale) = 0; | 214 virtual void SetLocale(const std::string& locale) = 0; |
| 214 | 215 |
| 216 // Invoked when layout dump flags change. |
| 217 virtual void OnLayoutDumpFlagsChanged( |
| 218 test_runner::LayoutDumpFlags* layout_dump_flags) = 0; |
| 219 |
| 215 // Invoked when the test finished. | 220 // Invoked when the test finished. |
| 216 virtual void TestFinished() = 0; | 221 virtual void TestFinished() = 0; |
| 217 | 222 |
| 218 // Invoked when the embedder should close all but the main WebView. | 223 // Invoked when the embedder should close all but the main WebView. |
| 219 virtual void CloseRemainingWindows() = 0; | 224 virtual void CloseRemainingWindows() = 0; |
| 220 | 225 |
| 221 virtual void DeleteAllCookies() = 0; | 226 virtual void DeleteAllCookies() = 0; |
| 222 | 227 |
| 223 // Returns the length of the back/forward history of the main WebView. | 228 // Returns the length of the back/forward history of the main WebView. |
| 224 virtual int NavigationEntryCount() = 0; | 229 virtual int NavigationEntryCount() = 0; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; | 291 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; |
| 287 | 292 |
| 288 // Convert the position in DIP to native coordinates. | 293 // Convert the position in DIP to native coordinates. |
| 289 virtual blink::WebPoint ConvertDIPToNative( | 294 virtual blink::WebPoint ConvertDIPToNative( |
| 290 const blink::WebPoint& point_in_dip) const = 0; | 295 const blink::WebPoint& point_in_dip) const = 0; |
| 291 }; | 296 }; |
| 292 | 297 |
| 293 } // namespace test_runner | 298 } // namespace test_runner |
| 294 | 299 |
| 295 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 300 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |