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 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. |
11 * | 11 * |
12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Library General Public License for more details. | 15 * Library General Public License for more details. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 virtual bool isKeyboardFocusable(KeyboardEvent*) const; | 102 virtual bool isKeyboardFocusable(KeyboardEvent*) const; |
103 virtual void defaultEventHandler(Event*); | 103 virtual void defaultEventHandler(Event*); |
104 virtual void setActive(bool active = true, bool pause = false); | 104 virtual void setActive(bool active = true, bool pause = false); |
105 virtual void accessKeyAction(bool fullAction); | 105 virtual void accessKeyAction(bool fullAction); |
106 virtual bool isURLAttribute(Attribute*) const; | 106 virtual bool isURLAttribute(Attribute*) const; |
107 virtual bool canStartSelection() const; | 107 virtual bool canStartSelection() const; |
108 virtual String target() const; | 108 virtual String target() const; |
109 virtual short tabIndex() const; | 109 virtual short tabIndex() const; |
110 virtual bool draggable() const; | 110 virtual bool draggable() const; |
111 | 111 |
| 112 enum EventType { |
| 113 MouseEventWithoutShiftKey, |
| 114 MouseEventWithShiftKey, |
| 115 NonMouseEvent, |
| 116 }; |
| 117 static EventType eventType(Event*); |
| 118 bool treatLinkAsLiveForEventType(EventType) const; |
| 119 |
112 RefPtr<Element> m_rootEditableElementForSelectionOnMouseDown; | 120 RefPtr<Element> m_rootEditableElementForSelectionOnMouseDown; |
113 bool m_wasShiftKeyDownOnMouseDown; | 121 bool m_wasShiftKeyDownOnMouseDown; |
114 uint32_t m_linkRelations; | 122 uint32_t m_linkRelations; |
115 }; | 123 }; |
116 | 124 |
| 125 // Functions shared with the other anchor elements (SVG and WML). |
| 126 |
| 127 bool isEnterKeyKeydownEvent(Event*); |
| 128 bool isMiddleMouseButtonEvent(Event*); |
| 129 bool isLinkClick(Event*); |
| 130 void handleLinkClick(Event*, Document*, const String& url, const String& target,
bool hideReferrer = false); |
| 131 |
117 } // namespace WebCore | 132 } // namespace WebCore |
118 | 133 |
119 #endif // HTMLAnchorElement_h | 134 #endif // HTMLAnchorElement_h |
OLD | NEW |