| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #ifndef HTMLFrameElementBase_h | 24 #ifndef HTMLFrameElementBase_h |
| 25 #define HTMLFrameElementBase_h | 25 #define HTMLFrameElementBase_h |
| 26 | 26 |
| 27 #include "core/html/HTMLFrameOwnerElement.h" | 27 #include "core/html/HTMLFrameOwnerElement.h" |
| 28 #include "platform/scroll/ScrollTypes.h" | 28 #include "platform/scroll/ScrollTypes.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class HTMLFrameElementBase : public HTMLFrameOwnerElement { | 32 class HTMLFrameElementBase : public HTMLFrameOwnerElement { |
| 33 public: | 33 public: |
| 34 KURL location() const; | |
| 35 void setLocation(const String&); | |
| 36 | |
| 37 virtual ScrollbarMode scrollingMode() const OVERRIDE FINAL { return m_scroll
ing; } | 34 virtual ScrollbarMode scrollingMode() const OVERRIDE FINAL { return m_scroll
ing; } |
| 38 | 35 |
| 39 int marginWidth() const { return m_marginWidth; } | 36 int marginWidth() const { return m_marginWidth; } |
| 40 int marginHeight() const { return m_marginHeight; } | 37 int marginHeight() const { return m_marginHeight; } |
| 41 | 38 |
| 42 int width(); | 39 int width(); |
| 43 int height(); | 40 int height(); |
| 44 | 41 |
| 45 virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return false;
} | 42 virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return false;
} |
| 46 | 43 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 57 private: | 54 private: |
| 58 virtual bool supportsFocus() const OVERRIDE FINAL; | 55 virtual bool supportsFocus() const OVERRIDE FINAL; |
| 59 virtual void setFocus(bool) OVERRIDE FINAL; | 56 virtual void setFocus(bool) OVERRIDE FINAL; |
| 60 | 57 |
| 61 virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; | 58 virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; |
| 62 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
L; | 59 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
L; |
| 63 virtual bool isHTMLContentAttribute(const Attribute&) const OVERRIDE FINAL; | 60 virtual bool isHTMLContentAttribute(const Attribute&) const OVERRIDE FINAL; |
| 64 | 61 |
| 65 virtual bool areAuthorShadowsAllowed() const OVERRIDE FINAL { return false;
} | 62 virtual bool areAuthorShadowsAllowed() const OVERRIDE FINAL { return false;
} |
| 66 | 63 |
| 64 void setLocation(const String&); |
| 67 void setNameAndOpenURL(); | 65 void setNameAndOpenURL(); |
| 68 void openURL(bool lockBackForwardList = true); | 66 void openURL(bool lockBackForwardList = true); |
| 69 | 67 |
| 70 AtomicString m_URL; | 68 AtomicString m_URL; |
| 71 AtomicString m_frameName; | 69 AtomicString m_frameName; |
| 72 | 70 |
| 73 ScrollbarMode m_scrolling; | 71 ScrollbarMode m_scrolling; |
| 74 | 72 |
| 75 int m_marginWidth; | 73 int m_marginWidth; |
| 76 int m_marginHeight; | 74 int m_marginHeight; |
| 77 }; | 75 }; |
| 78 | 76 |
| 79 inline bool isHTMLFrameElementBase(const Element& element) | 77 inline bool isHTMLFrameElementBase(const Element& element) |
| 80 { | 78 { |
| 81 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); | 79 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); |
| 82 } | 80 } |
| 83 | 81 |
| 84 inline bool isHTMLFrameElementBase(const HTMLElement& element) | 82 inline bool isHTMLFrameElementBase(const HTMLElement& element) |
| 85 { | 83 { |
| 86 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); | 84 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); |
| 87 } | 85 } |
| 88 | 86 |
| 89 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); | 87 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); |
| 90 | 88 |
| 91 } // namespace WebCore | 89 } // namespace WebCore |
| 92 | 90 |
| 93 #endif // HTMLFrameElementBase_h | 91 #endif // HTMLFrameElementBase_h |
| OLD | NEW |