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

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

Issue 24066010: Implement URLUtils and URL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates based on code review comments Created 7 years, 2 months 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 | « Source/core/html/DOMURLUtils.cpp ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLAnchorElement.h
diff --git a/Source/core/html/HTMLAnchorElement.h b/Source/core/html/HTMLAnchorElement.h
index cb5125e32fdd92b9545c01c20ee491817bca2852..62df498e7d54770e66f23faed4482de02412c035 100644
--- a/Source/core/html/HTMLAnchorElement.h
+++ b/Source/core/html/HTMLAnchorElement.h
@@ -25,6 +25,7 @@
#define HTMLAnchorElement_h
#include "HTMLNames.h"
+#include "core/html/DOMURLUtils.h"
#include "core/html/HTMLElement.h"
#include "platform/LinkHash.h"
@@ -53,7 +54,7 @@ enum {
// RelationUp = 0x00020000,
};
-class HTMLAnchorElement : public HTMLElement {
+class HTMLAnchorElement : public HTMLElement, public DOMURLUtils {
public:
static PassRefPtr<HTMLAnchorElement> create(Document&);
static PassRefPtr<HTMLAnchorElement> create(const QualifiedName&, Document&);
@@ -65,33 +66,14 @@ public:
const AtomicString& name() const;
- String hash() const;
- void setHash(const String&);
+ virtual KURL url() const OVERRIDE;
+ virtual void setURL(const KURL&) OVERRIDE;
- String host() const;
- void setHost(const String&);
-
- String hostname() const;
- void setHostname(const String&);
-
- String pathname() const;
- void setPathname(const String&);
-
- String port() const;
- void setPort(const String&);
-
- String protocol() const;
- void setProtocol(const String&);
-
- String search() const;
- void setSearch(const String&);
-
- String origin() const;
+ virtual String input() const OVERRIDE;
+ virtual void setInput(const String&) OVERRIDE;
String text();
- String toString() const;
-
bool isLiveLink() const;
virtual bool willRespondToMouseClickEvents() OVERRIDE;
« no previous file with comments | « Source/core/html/DOMURLUtils.cpp ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698