Commit 4a615a04 authored by kevino@webkit.org's avatar kevino@webkit.org

Reviewed by Kevin Ollivier.

        
Implement support for wxWebViewNewWindowEvent.
        
https://bugs.webkit.org/show_bug.cgi?id=19043


git-svn-id: svn://svn.chromium.org/blink/trunk@42562 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent ab2866d2
2009-04-15 Robin Dunn <robin@alldunn.com>
Reviewed by Kevin Ollivier.
Implement support for wxWebViewNewWindowEvent.
https://bugs.webkit.org/show_bug.cgi?id=19043
* WebKitSupport/FrameLoaderClientWx.cpp:
(WebCore::FrameLoaderClientWx::dispatchDecidePolicyForNewWindowAction):
2009-04-04 Kevin Ollivier <kevino@theolliviers.com>
Build fixes for wxMac/Tiger.
......
......@@ -690,12 +690,23 @@ void FrameLoaderClientWx::dispatchDecidePolicyForMIMEType(FramePolicyFunction fu
(m_frame->loader()->*function)(PolicyUse);
}
void FrameLoaderClientWx::dispatchDecidePolicyForNewWindowAction(FramePolicyFunction function, const NavigationAction&, const ResourceRequest&, PassRefPtr<FormState>, const String&)
void FrameLoaderClientWx::dispatchDecidePolicyForNewWindowAction(FramePolicyFunction function, const NavigationAction&, const ResourceRequest& request, PassRefPtr<FormState>, const String& targetName)
{
if (!m_frame)
return;
notImplemented();
if (m_webView) {
wxWebViewNewWindowEvent wkEvent(m_webView);
wkEvent.SetURL(request.url().string());
wkEvent.SetTargetName(targetName);
if (m_webView->GetEventHandler()->ProcessEvent(wkEvent)) {
// if the app handles and doesn't skip the event,
// from WebKit's perspective treat it as blocked / ignored
(m_frame->loader()->*function)(PolicyIgnore);
return;
}
}
(m_frame->loader()->*function)(PolicyUse);
}
......
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