Commit 4a61ea20 authored by avi@chromium.org's avatar avi@chromium.org

Move dispatchUnloadEvent to WebFrame, part 3/3.

BUG=357782
TEST=no change

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170661 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e51ce9b2
......@@ -2403,16 +2403,6 @@ void WebViewImpl::setPageEncoding(const WebString& encodingName)
m_page->mainFrame()->loader().reload(NormalReload, KURL(), newEncodingName);
}
void WebViewImpl::dispatchUnloadEvent()
{
WebFrame* frame = mainFrame();
if (!frame)
return;
// Run unload handlers.
frame->dispatchUnloadEvent();
}
WebFrame* WebViewImpl::mainFrame()
{
return mainFrameImpl();
......
......@@ -187,7 +187,6 @@ public:
virtual void setIsActive(bool value) OVERRIDE;
virtual void setDomainRelaxationForbidden(bool, const WebString& scheme) OVERRIDE;
virtual void setWindowFeatures(const WebWindowFeatures&) OVERRIDE;
virtual void dispatchUnloadEvent() OVERRIDE;
virtual WebFrame* mainFrame() OVERRIDE;
virtual WebFrame* findFrameByName(
const WebString& name, WebFrame* relativeToFrame) OVERRIDE;
......
......@@ -148,13 +148,6 @@ public:
virtual void setWindowFeatures(const WebWindowFeatures&) = 0;
// Closing -------------------------------------------------------------
// Runs unload handlers for the current page.
// OBSOLETE; DO NOT USE. Call it on WebFrame instead.
virtual void dispatchUnloadEvent() = 0;
// Frames --------------------------------------------------------------
virtual WebFrame* mainFrame() = 0;
......
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