Index: sky/engine/core/html/HTMLViewElement.h |
diff --git a/sky/engine/core/html/HTMLAnchorElement.h b/sky/engine/core/html/HTMLViewElement.h |
similarity index 63% |
copy from sky/engine/core/html/HTMLAnchorElement.h |
copy to sky/engine/core/html/HTMLViewElement.h |
index 508479594381d75822c040283a6c3acf54cdb047..073255abd155b31e15e5f7091b9cf7f15b221944 100644 |
--- a/sky/engine/core/html/HTMLAnchorElement.h |
+++ b/sky/engine/core/html/HTMLViewElement.h |
@@ -21,8 +21,8 @@ |
* |
*/ |
esprehn
2014/11/06 22:40:28
Use the 3 line google copyright.
Matt Perry
2014/11/06 23:38:50
Done.
|
-#ifndef HTMLAnchorElement_h |
-#define HTMLAnchorElement_h |
+#ifndef HTMLViewElement_h |
+#define HTMLViewElement_h |
#include "core/HTMLNames.h" |
#include "core/dom/DOMURLUtils.h" |
@@ -31,30 +31,30 @@ |
namespace blink { |
-class HTMLAnchorElement : public HTMLElement { |
+class HTMLViewElement : public HTMLElement { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static PassRefPtr<HTMLAnchorElement> create(Document&); |
+ static PassRefPtr<HTMLViewElement> create(Document&); |
- virtual ~HTMLAnchorElement(); |
+ virtual ~HTMLViewElement(); |
- KURL href() const; |
- void setHref(const AtomicString&); |
+private: |
+ explicit HTMLViewElement(Document&); |
- virtual bool isLiveLink() const override final; |
+ virtual RenderObject* createRenderer(RenderStyle* style) override; |
-private: |
- explicit HTMLAnchorElement(Document&); |
+ virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; |
+ virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
+ virtual void didNotifySubtreeInsertionsToDocument() override final; |
+ virtual void removedFrom(ContainerNode*) override; |
- virtual bool supportsFocus() const override final; |
- virtual void defaultEventHandler(Event*) override final; |
- virtual bool willRespondToMouseClickEvents() override final; |
- virtual bool isURLAttribute(const Attribute&) const override final; |
- virtual bool canStartSelection() const override final; |
+private: |
+ void setLocation(const String&); |
+ void openURL(); |
- void handleClick(Event*); |
+ AtomicString m_URL; |
}; |
} // namespace blink |
-#endif // HTMLAnchorElement_h |
+#endif // HTMLViewElement_h |