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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/test_runner/test_runner_for_specific_view.h
diff --git a/content/shell/test_runner/test_runner_for_specific_view.h b/content/shell/test_runner/test_runner_for_specific_view.h
index 863646118478257bb4b4bdfc81dc4800a15a0e51..6cb30a060c0eda61018b40f62a1adda84724bdd1 100644
--- a/content/shell/test_runner/test_runner_for_specific_view.h
+++ b/content/shell/test_runner/test_runner_for_specific_view.h
@@ -215,6 +215,11 @@ class TestRunnerForSpecificView {
std::string SelectionAsMarkup();
void SetViewSourceForFrame(const std::string& name, bool enabled);
+ // Many parts of the layout test harness assume that the main frame is local.
+ // Having all of them go through the helper below makes it easier to catch
+ // scenarios that require breaking this assumption.
+ blink::WebLocalFrame* GetLocalMainFrame();
+
// Helpers for accessing pointers exposed by |web_view_test_proxy_base_|.
blink::WebView* web_view();
WebTestDelegate* delegate();
« 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