Chromium Code Reviews| 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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2007, 2008, 2009, 2010 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 18 matching lines...) Expand all Loading... | |
| 29 #include "core/dom/DOMURLUtils.h" | 29 #include "core/dom/DOMURLUtils.h" |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/html/HTMLElement.h" | 31 #include "core/html/HTMLElement.h" |
| 32 #include "platform/LinkHash.h" | 32 #include "platform/LinkHash.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 // Link relation bitmask values. | 36 // Link relation bitmask values. |
| 37 // FIXME: Uncomment as the various link relations are implemented. | 37 // FIXME: Uncomment as the various link relations are implemented. |
| 38 enum { | 38 enum { |
| 39 // RelationAlternate = 0x00000001, | 39 // RelationAlternate = 0x00000001, |
| 40 // RelationArchives = 0x00000002, | 40 // RelationArchives = 0x00000002, |
| 41 // RelationAuthor = 0x00000004, | 41 // RelationAuthor = 0x00000004, |
| 42 // RelationBoomark = 0x00000008, | 42 // RelationBoomark = 0x00000008, |
| 43 // RelationExternal = 0x00000010, | 43 // RelationExternal = 0x00000010, |
| 44 // RelationFirst = 0x00000020, | 44 // RelationFirst = 0x00000020, |
| 45 // RelationHelp = 0x00000040, | 45 // RelationHelp = 0x00000040, |
| 46 // RelationIndex = 0x00000080, | 46 // RelationIndex = 0x00000080, |
| 47 // RelationLast = 0x00000100, | 47 // RelationLast = 0x00000100, |
| 48 // RelationLicense = 0x00000200, | 48 // RelationLicense = 0x00000200, |
| 49 // RelationNext = 0x00000400, | 49 // RelationNext = 0x00000400, |
| 50 // RelationNoFolow = 0x00000800, | 50 // RelationNoFolow = 0x00000800, |
| 51 RelationNoReferrer = 0x00001000, | 51 RelationNoReferrer = 0x00001000, |
| 52 // RelationPrev = 0x00002000, | 52 // RelationPrev = 0x00002000, |
| 53 // RelationSearch = 0x00004000, | 53 // RelationSearch = 0x00004000, |
| 54 // RelationSidebar = 0x00008000, | 54 // RelationSidebar = 0x00008000, |
| 55 // RelationTag = 0x00010000, | 55 // RelationTag = 0x00010000, |
| 56 // RelationUp = 0x00020000, | 56 // RelationUp = 0x00020000, |
| 57 RelationNoOpener = 0x00040000, | |
|
Mike West
2015/11/15 08:17:39
`git cl format`.
| |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 class CORE_EXPORT HTMLAnchorElement : public HTMLElement, public DOMURLUtils { | 60 class CORE_EXPORT HTMLAnchorElement : public HTMLElement, public DOMURLUtils { |
| 60 DEFINE_WRAPPERTYPEINFO(); | 61 DEFINE_WRAPPERTYPEINFO(); |
| 61 public: | 62 public: |
| 62 static PassRefPtrWillBeRawPtr<HTMLAnchorElement> create(Document&); | 63 static PassRefPtrWillBeRawPtr<HTMLAnchorElement> create(Document&); |
| 63 | 64 |
| 64 ~HTMLAnchorElement() override; | 65 ~HTMLAnchorElement() override; |
| 65 | 66 |
| 66 KURL href() const; | 67 KURL href() const; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 } | 125 } |
| 125 | 126 |
| 126 // Functions shared with the other anchor elements (i.e., SVG). | 127 // Functions shared with the other anchor elements (i.e., SVG). |
| 127 | 128 |
| 128 bool isEnterKeyKeydownEvent(Event*); | 129 bool isEnterKeyKeydownEvent(Event*); |
| 129 bool isLinkClick(Event*); | 130 bool isLinkClick(Event*); |
| 130 | 131 |
| 131 } // namespace blink | 132 } // namespace blink |
| 132 | 133 |
| 133 #endif // HTMLAnchorElement_h | 134 #endif // HTMLAnchorElement_h |
| OLD | NEW |