summaryrefslogtreecommitdiff
path: root/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h')
-rw-r--r--Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h
index 04e7a6b43..8eb2533f5 100644
--- a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h
+++ b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h
@@ -45,16 +45,22 @@ class WebFrame;
class InjectedBundleNavigationAction : public API::ObjectImpl<API::Object::Type::BundleNavigationAction> {
public:
- static PassRefPtr<InjectedBundleNavigationAction> create(WebFrame*, const WebCore::NavigationAction&, PassRefPtr<WebCore::FormState>);
+ static Ref<InjectedBundleNavigationAction> create(WebFrame*, const WebCore::NavigationAction&, PassRefPtr<WebCore::FormState>);
static WebEvent::Modifiers modifiersForNavigationAction(const WebCore::NavigationAction&);
static WebMouseEvent::Button mouseButtonForNavigationAction(const WebCore::NavigationAction&);
+ static WebMouseEvent::SyntheticClickType syntheticClickTypeForNavigationAction(const WebCore::NavigationAction&);
WebCore::NavigationType navigationType() const { return m_navigationType; }
WebEvent::Modifiers modifiers() const { return m_modifiers; }
WebMouseEvent::Button mouseButton() const { return m_mouseButton; }
InjectedBundleHitTestResult* hitTestResult() const { return m_hitTestResult.get(); }
InjectedBundleNodeHandle* formElement() const { return m_formElement.get(); }
+ WebMouseEvent::SyntheticClickType syntheticClickType() const { return m_syntheticClickType; }
+
+ bool shouldOpenExternalURLs() const { return m_shouldOpenExternalURLs; }
+ bool shouldTryAppLinks() const { return m_shouldTryAppLinks; }
+ AtomicString downloadAttribute() const { return m_downloadAttribute; }
private:
InjectedBundleNavigationAction(WebFrame*, const WebCore::NavigationAction&, PassRefPtr<WebCore::FormState>);
@@ -62,8 +68,12 @@ private:
WebCore::NavigationType m_navigationType;
WebEvent::Modifiers m_modifiers;
WebMouseEvent::Button m_mouseButton;
+ WebMouseEvent::SyntheticClickType m_syntheticClickType;
RefPtr<InjectedBundleHitTestResult> m_hitTestResult;
RefPtr<InjectedBundleNodeHandle> m_formElement;
+ AtomicString m_downloadAttribute;
+ bool m_shouldOpenExternalURLs;
+ bool m_shouldTryAppLinks;
};
} // namespace WebKit