| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| 6 #define CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void EvaluateScriptInIsolatedWorld(int world_id, const std::string& script); | 208 void EvaluateScriptInIsolatedWorld(int world_id, const std::string& script); |
| 209 void SetIsolatedWorldSecurityOrigin(int world_id, | 209 void SetIsolatedWorldSecurityOrigin(int world_id, |
| 210 v8::Local<v8::Value> origin); | 210 v8::Local<v8::Value> origin); |
| 211 void SetIsolatedWorldContentSecurityPolicy(int world_id, | 211 void SetIsolatedWorldContentSecurityPolicy(int world_id, |
| 212 const std::string& policy); | 212 const std::string& policy); |
| 213 bool FindString(const std::string& search_text, | 213 bool FindString(const std::string& search_text, |
| 214 const std::vector<std::string>& options_array); | 214 const std::vector<std::string>& options_array); |
| 215 std::string SelectionAsMarkup(); | 215 std::string SelectionAsMarkup(); |
| 216 void SetViewSourceForFrame(const std::string& name, bool enabled); | 216 void SetViewSourceForFrame(const std::string& name, bool enabled); |
| 217 | 217 |
| 218 // Many parts of the layout test harness assume that the main frame is local. |
| 219 // Having all of them go through the helper below makes it easier to catch |
| 220 // scenarios that require breaking this assumption. |
| 221 blink::WebLocalFrame* GetLocalMainFrame(); |
| 222 |
| 218 // Helpers for accessing pointers exposed by |web_view_test_proxy_base_|. | 223 // Helpers for accessing pointers exposed by |web_view_test_proxy_base_|. |
| 219 blink::WebView* web_view(); | 224 blink::WebView* web_view(); |
| 220 WebTestDelegate* delegate(); | 225 WebTestDelegate* delegate(); |
| 221 WebViewTestProxyBase* web_view_test_proxy_base_; | 226 WebViewTestProxyBase* web_view_test_proxy_base_; |
| 222 | 227 |
| 223 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_; | 228 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_; |
| 224 | 229 |
| 225 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView); | 230 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView); |
| 226 }; | 231 }; |
| 227 | 232 |
| 228 } // namespace test_runner | 233 } // namespace test_runner |
| 229 | 234 |
| 230 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ | 235 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| OLD | NEW |