| 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_WEBTESTDELEGATE_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual int navigationEntryCount() = 0; | 143 virtual int navigationEntryCount() = 0; |
| 144 | 144 |
| 145 // The following trigger navigations on the main WebViwe. | 145 // The following trigger navigations on the main WebViwe. |
| 146 virtual void goToOffset(int offset) = 0; | 146 virtual void goToOffset(int offset) = 0; |
| 147 virtual void reload() = 0; | 147 virtual void reload() = 0; |
| 148 virtual void loadURLForFrame(const blink::WebURL&, const std::string& frameN
ame) = 0; | 148 virtual void loadURLForFrame(const blink::WebURL&, const std::string& frameN
ame) = 0; |
| 149 | 149 |
| 150 // Returns true if resource requests to external URLs should be permitted. | 150 // Returns true if resource requests to external URLs should be permitted. |
| 151 virtual bool allowExternalPages() = 0; | 151 virtual bool allowExternalPages() = 0; |
| 152 | 152 |
| 153 // Returns the back/forward history for the WebView associated with the | 153 // Returns a text dump the back/forward history for the WebView associated |
| 154 // given WebTestProxyBase as well as the index of the current entry. | 154 // with the given WebTestProxyBase. |
| 155 virtual void captureHistoryForWindow(content::WebTestProxyBase*, blink::WebV
ector<blink::WebHistoryItem>*, size_t* currentEntryIndex) = 0; | 155 virtual std::string dumpHistoryForWindow(content::WebTestProxyBase*) = 0; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } | 158 } |
| 159 | 159 |
| 160 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ | 160 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ |
| OLD | NEW |