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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 LinkHash visitedLinkHash() const; | 85 LinkHash visitedLinkHash() const; |
86 void invalidateCachedVisitedLinkHash() { m_cachedVisitedLinkHash = 0; } | 86 void invalidateCachedVisitedLinkHash() { m_cachedVisitedLinkHash = 0; } |
87 | 87 |
88 void sendPings(const KURL& destinationURL) const; | 88 void sendPings(const KURL& destinationURL) const; |
89 | 89 |
90 protected: | 90 protected: |
91 HTMLAnchorElement(const QualifiedName&, Document&); | 91 HTMLAnchorElement(const QualifiedName&, Document&); |
92 | 92 |
93 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 93 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
94 bool supportsFocus() const override; | 94 bool supportsFocus() const override; |
| 95 bool matchesEnabledPseudoClass() const override; |
95 | 96 |
96 private: | 97 private: |
97 bool shouldHaveFocusAppearance() const final; | 98 bool shouldHaveFocusAppearance() const final; |
98 void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, InputDevic
eCapabilities* sourceCapabilities) override; | 99 void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, InputDevic
eCapabilities* sourceCapabilities) override; |
99 void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, InputDevice
Capabilities* sourceCapabilities) override; | 100 void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, InputDevice
Capabilities* sourceCapabilities) override; |
100 bool isMouseFocusable() const override; | 101 bool isMouseFocusable() const override; |
101 bool isKeyboardFocusable() const override; | 102 bool isKeyboardFocusable() const override; |
102 void defaultEventHandler(Event*) final; | 103 void defaultEventHandler(Event*) final; |
103 void setActive(bool = true) final; | 104 void setActive(bool = true) final; |
104 void accessKeyAction(bool sendMouseEvents) final; | 105 void accessKeyAction(bool sendMouseEvents) final; |
(...skipping 19 matching lines...) Expand all 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 |