Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
| diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
| index a20266fcdd1ef15fa79106752a7fa66fdd4fd095..1bfbfd1cabb9cb2755bfbd9cbce1437163156622 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
| @@ -37,6 +37,7 @@ |
| #include "core/page/ChromeClient.h" |
| #include "platform/network/NetworkHints.h" |
| #include "platform/weborigin/SecurityPolicy.h" |
| +#include "public/platform/WebNavigationHintType.h" |
| namespace blink { |
| @@ -44,15 +45,6 @@ using namespace HTMLNames; |
| class HTMLAnchorElement::NavigationHintSender : public GarbageCollected<HTMLAnchorElement::NavigationHintSender> { |
| public: |
| - // TODO(horo): Move WebNavigationHintType to public/ directory. |
| - enum class WebNavigationHintType { |
| - Unknown, |
| - LinkMouseDown, |
| - LinkTapUnconfirmed, |
| - LinkTapDown, |
| - Last = LinkTapDown |
| - }; |
| - |
| static NavigationHintSender* create(HTMLAnchorElement* anchorElement) |
| { |
| return new NavigationHintSender(anchorElement); |
| @@ -116,7 +108,7 @@ void HTMLAnchorElement::NavigationHintSender::maybeSendNavigationHint(WebNavigat |
| if (!shouldSendNavigationHint()) |
| return; |
| - // TODO(horo): Send the navigation hint message to the browser process. |
| + blink::sendNavigationHint(m_anchorElement->href(), type); |
|
kinuko
2016/06/24 07:40:48
blink:: doesn't seem necessary
horo
2016/06/24 08:26:02
Done.
|
| } |
| HTMLAnchorElement::HTMLAnchorElement(const QualifiedName& tagName, Document& document) |