Commit e3ba8c67 authored by jochen@chromium.org's avatar jochen@chromium.org

Update didClearWindowObject API in webview plugin

We now only call this method for the main world (world_id == 0)

BUG=none
R=bauerb@chromium.org

Review URL: https://codereview.chromium.org/292493002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270998 0039d316-1c4b-4281-b951-d872f2087c98
parent 28b989cc
...@@ -232,7 +232,7 @@ void WebViewPlugin::didChangeCursor(const WebCursorInfo& cursor) { ...@@ -232,7 +232,7 @@ void WebViewPlugin::didChangeCursor(const WebCursorInfo& cursor) {
current_cursor_ = cursor; current_cursor_ = cursor;
} }
void WebViewPlugin::didClearWindowObject(WebLocalFrame* frame, int world_id) { void WebViewPlugin::didClearWindowObject(WebLocalFrame* frame) {
if (delegate_) if (delegate_)
delegate_->BindWebFrame(frame); delegate_->BindWebFrame(frame);
} }
......
...@@ -125,7 +125,7 @@ class WebViewPlugin : public blink::WebPlugin, ...@@ -125,7 +125,7 @@ class WebViewPlugin : public blink::WebPlugin,
virtual void didChangeCursor(const blink::WebCursorInfo& cursor); virtual void didChangeCursor(const blink::WebCursorInfo& cursor);
// WebFrameClient methods: // WebFrameClient methods:
virtual void didClearWindowObject(blink::WebLocalFrame* frame, int world_id); virtual void didClearWindowObject(blink::WebLocalFrame* frame);
// This method is defined in WebPlugin as well as in WebFrameClient, but with // This method is defined in WebPlugin as well as in WebFrameClient, but with
// different parameters. We only care about implementing the WebPlugin // different parameters. We only care about implementing the WebPlugin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment