| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 virtual void setActive(bool active = true, bool pause = false); | 108 virtual void setActive(bool active = true, bool pause = false); |
| 109 virtual void accessKeyAction(bool fullAction); | 109 virtual void accessKeyAction(bool fullAction); |
| 110 virtual bool isURLAttribute(Attribute*) const; | 110 virtual bool isURLAttribute(Attribute*) const; |
| 111 virtual bool canStartSelection() const; | 111 virtual bool canStartSelection() const; |
| 112 virtual String target() const; | 112 virtual String target() const; |
| 113 virtual short tabIndex() const; | 113 virtual short tabIndex() const; |
| 114 virtual bool draggable() const; | 114 virtual bool draggable() const; |
| 115 | 115 |
| 116 void sendPings(const KURL& destinationURL); | 116 void sendPings(const KURL& destinationURL); |
| 117 | 117 |
| 118 void handleClick(Event*); |
| 119 |
| 118 enum EventType { | 120 enum EventType { |
| 119 MouseEventWithoutShiftKey, | 121 MouseEventWithoutShiftKey, |
| 120 MouseEventWithShiftKey, | 122 MouseEventWithShiftKey, |
| 121 NonMouseEvent, | 123 NonMouseEvent, |
| 122 }; | 124 }; |
| 123 static EventType eventType(Event*); | 125 static EventType eventType(Event*); |
| 124 bool treatLinkAsLiveForEventType(EventType) const; | 126 bool treatLinkAsLiveForEventType(EventType) const; |
| 125 | 127 |
| 126 RefPtr<Element> m_rootEditableElementForSelectionOnMouseDown; | 128 RefPtr<Element> m_rootEditableElementForSelectionOnMouseDown; |
| 127 bool m_wasShiftKeyDownOnMouseDown; | 129 bool m_wasShiftKeyDownOnMouseDown; |
| 128 uint32_t m_linkRelations; | 130 uint32_t m_linkRelations; |
| 129 }; | 131 }; |
| 130 | 132 |
| 131 // Functions shared with the other anchor elements (i.e., SVG). | 133 // Functions shared with the other anchor elements (i.e., SVG). |
| 132 | 134 |
| 133 bool isEnterKeyKeydownEvent(Event*); | 135 bool isEnterKeyKeydownEvent(Event*); |
| 134 bool isMiddleMouseButtonEvent(Event*); | 136 bool isMiddleMouseButtonEvent(Event*); |
| 135 bool isLinkClick(Event*); | 137 bool isLinkClick(Event*); |
| 136 void handleLinkClick(Event*, Document*, const String& url, const String& target,
bool hideReferrer = false); | 138 void handleLinkClick(Event*, Document*, const String& url, const String& target,
bool hideReferrer = false); |
| 137 | 139 |
| 138 } // namespace WebCore | 140 } // namespace WebCore |
| 139 | 141 |
| 140 #endif // HTMLAnchorElement_h | 142 #endif // HTMLAnchorElement_h |
| OLD | NEW |