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

Unified Diff: components/plugins/renderer/webview_plugin.h

Issue 2923433002: Move ExecuteScript method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Tweaked a comment in WebViewPlugin::WebViewHelper::main_frame [as suggested in CR feedback] 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: components/plugins/renderer/webview_plugin.h
diff --git a/components/plugins/renderer/webview_plugin.h b/components/plugins/renderer/webview_plugin.h
index 5e3693ea7558cc1ebb317d73efd739b84b95da29..458296b132924dfe5f2bfa790c7d1a6ce9e1427e 100644
--- a/components/plugins/renderer/webview_plugin.h
+++ b/components/plugins/renderer/webview_plugin.h
@@ -20,6 +20,7 @@
#include "third_party/WebKit/public/web/WebViewClient.h"
namespace blink {
+class WebLocalFrame;
class WebMouseEvent;
}
@@ -68,7 +69,7 @@ class WebViewPlugin : public blink::WebPlugin,
const std::string& html_data,
const GURL& url);
- blink::WebView* web_view() { return web_view_helper_.web_view(); }
+ blink::WebLocalFrame* main_frame() { return web_view_helper_.main_frame(); }
const blink::WebString& old_title() const { return old_title_; }
@@ -116,6 +117,8 @@ class WebViewPlugin : public blink::WebPlugin,
const content::WebPreferences& preferences);
~WebViewPlugin() override;
+ blink::WebView* web_view() { return web_view_helper_.web_view(); }
+
// content::RenderViewObserver methods:
void OnDestruct() override {}
void OnZoomLevelChanged() override;
@@ -151,6 +154,7 @@ class WebViewPlugin : public blink::WebPlugin,
~WebViewHelper() override;
blink::WebView* web_view() { return web_view_; }
+ blink::WebLocalFrame* main_frame();
// WebViewClient methods:
bool AcceptsLoadDrops() override;
« no previous file with comments | « components/plugins/renderer/loadable_plugin_placeholder.cc ('k') | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698