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

Unified Diff: content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc

Issue 2052633002: Extend the ToRenderFrameHost magic to FrameTreeNode* and Shell* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix induced script bug. Created 4 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/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc
diff --git a/content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc b/content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc
index 711ded7d26f66db57542d50b80aedbf248979cfe..901d61dfcc6732df843c151bdd5292ac5aceba85 100644
--- a/content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc
+++ b/content/browser/renderer_host/input/touch_selection_controller_client_aura_browsertest.cc
@@ -135,8 +135,8 @@ class TouchSelectionControllerClientAuraTest : public ContentBrowserTest {
bool GetPointInsideText(gfx::PointF* point) {
std::string str;
- if (ExecuteScriptAndExtractString(shell()->web_contents()->GetMainFrame(),
- "get_point_inside_text()", &str)) {
+ if (ExecuteScriptAndExtractString(shell(), "get_point_inside_text()",
+ &str)) {
return JSONToPoint(str, point);
}
return false;
@@ -144,17 +144,14 @@ class TouchSelectionControllerClientAuraTest : public ContentBrowserTest {
bool GetPointInsideTextfield(gfx::PointF* point) {
std::string str;
- if (ExecuteScriptAndExtractString(shell()->web_contents()->GetMainFrame(),
- "get_point_inside_textfield()", &str)) {
+ if (ExecuteScriptAndExtractString(shell(), "get_point_inside_textfield()",
+ &str)) {
return JSONToPoint(str, point);
}
return false;
}
- bool EmptyTextfield() {
- return ExecuteScript(shell()->web_contents()->GetMainFrame(),
- "empty_textfield()");
- }
+ bool EmptyTextfield() { return ExecuteScript(shell(), "empty_textfield()"); }
RenderWidgetHostViewAura* GetRenderWidgetHostViewAura() {
return static_cast<RenderWidgetHostViewAura*>(

Powered by Google App Engine
This is Rietveld 408576698