Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.h

Issue 1377163002: Use DOMSettableTokenList for {HTMLAnchorElement, HTMLAreaElement}.ping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLAnchorElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.h b/third_party/WebKit/Source/core/html/HTMLAnchorElement.h
index e48981020d8072cd0f254ca9f6d3f2437499d43b..6df3715d629e014080659e67523c95148e0762d5 100644
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.h
@@ -26,6 +26,7 @@
#include "core/CoreExport.h"
#include "core/HTMLNames.h"
+#include "core/dom/DOMSettableTokenList.h"
#include "core/dom/DOMURLUtils.h"
#include "core/dom/Document.h"
#include "core/html/HTMLElement.h"
@@ -57,9 +58,10 @@ enum {
RelationNoOpener = 0x00040000,
};
-class CORE_EXPORT HTMLAnchorElement : public HTMLElement, public DOMURLUtils {
+class CORE_EXPORT HTMLAnchorElement : public HTMLElement, public DOMURLUtils, public DOMSettableTokenListObserver {
DEFINE_WRAPPERTYPEINFO();
public:
+ DECLARE_VIRTUAL_TRACE();
static PassRefPtrWillBeRawPtr<HTMLAnchorElement> create(Document&);
~HTMLAnchorElement() override;
@@ -87,6 +89,8 @@ public:
void sendPings(const KURL& destinationURL) const;
+ DOMSettableTokenList* ping();
+
protected:
HTMLAnchorElement(const QualifiedName&, Document&);
@@ -111,9 +115,13 @@ private:
InsertionNotificationRequest insertedInto(ContainerNode*) override;
void handleClick(Event*);
+ // DOMSettableTokenListObserver
+ void valueWasSet() override;
+
uint32_t m_linkRelations;
mutable LinkHash m_cachedVisitedLinkHash;
bool m_wasFocusedByMouse;
+ RefPtrWillBeMember<DOMSettableTokenList> m_ping;
};
inline LinkHash HTMLAnchorElement::visitedLinkHash() const
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698