Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Side by Side Diff: content/shell/test_runner/test_runner_for_specific_view.h

Issue 2923053002: Move MainWorldScriptContext accessor/method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Rebasing... Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/shell/test_runner/test_interfaces.cc ('k') | content/shell/test_runner/test_runner_for_specific_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698