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_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // Controls auto resize mode. | 116 // Controls auto resize mode. |
117 virtual void EnableAutoResizeMode(const blink::WebSize& min_size, | 117 virtual void EnableAutoResizeMode(const blink::WebSize& min_size, |
118 const blink::WebSize& max_size) = 0; | 118 const blink::WebSize& max_size) = 0; |
119 virtual void DisableAutoResizeMode(const blink::WebSize& new_size) = 0; | 119 virtual void DisableAutoResizeMode(const blink::WebSize& new_size) = 0; |
120 | 120 |
121 // Clears DevTools' localStorage when an inspector test is started. | 121 // Clears DevTools' localStorage when an inspector test is started. |
122 virtual void ClearDevToolsLocalStorage() = 0; | 122 virtual void ClearDevToolsLocalStorage() = 0; |
123 | 123 |
124 // Opens and closes the inspector. | 124 // Opens and closes the inspector. |
125 virtual void ShowDevTools(const std::string& settings, | 125 virtual void ShowDevTools(const std::string& test_path, |
126 const std::string& frontend_url) = 0; | 126 const std::string& frontend_url) = 0; |
127 virtual void CloseDevTools() = 0; | 127 virtual void CloseDevTools() = 0; |
128 | 128 |
129 // Evaluate the given script in the DevTools agent. | 129 // Evaluate the given script in the DevTools agent. |
130 virtual void EvaluateInWebInspector(long call_id, | 130 virtual void EvaluateInWebInspector(long call_id, |
131 const std::string& script) = 0; | 131 const std::string& script) = 0; |
132 | 132 |
133 // Controls WebSQL databases. | 133 // Controls WebSQL databases. |
134 virtual void ClearAllDatabases() = 0; | 134 virtual void ClearAllDatabases() = 0; |
135 virtual void SetDatabaseQuota(int quota) = 0; | 135 virtual void SetDatabaseQuota(int quota) = 0; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 virtual bool AllowExternalPages() = 0; | 199 virtual bool AllowExternalPages() = 0; |
200 | 200 |
201 // Returns a text dump the back/forward history for the WebView associated | 201 // Returns a text dump the back/forward history for the WebView associated |
202 // with the given WebTestProxyBase. | 202 // with the given WebTestProxyBase. |
203 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; | 203 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; |
204 }; | 204 }; |
205 | 205 |
206 } // namespace content | 206 } // namespace content |
207 | 207 |
208 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 208 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |