diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h')
-rw-r--r-- | Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleNavigationAction.h | 12 |
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 |