Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: WebCore/html/HTMLAnchorElement.h

Issue 3366025: Merge 67246 - 2010-09-109 Peter Kasting <pkasting@google.com>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « WebCore/editing/DeleteButton.cpp ('k') | WebCore/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « WebCore/editing/DeleteButton.cpp ('k') | WebCore/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698