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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.h

Issue 2586143004: Blur immediately if an attribute change made an element unfocasable. (Closed)
Patch Set: Update comments and a function name Created 3 years, 12 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
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, 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 void parseAttribute(const QualifiedName&, 96 void parseAttribute(const QualifiedName&,
97 const AtomicString&, 97 const AtomicString&,
98 const AtomicString&) override; 98 const AtomicString&) override;
99 bool supportsFocus() const override; 99 bool supportsFocus() const override;
100 bool matchesEnabledPseudoClass() const override; 100 bool matchesEnabledPseudoClass() const override;
101 101
102 private: 102 private:
103 class NavigationHintSender; 103 class NavigationHintSender;
104 104
105 void attributeChanged(const QualifiedName&,
106 const AtomicString&,
107 const AtomicString&,
108 AttributeModificationReason) override;
105 bool shouldHaveFocusAppearance() const final; 109 bool shouldHaveFocusAppearance() const final;
106 void dispatchFocusEvent(Element* oldFocusedElement, 110 void dispatchFocusEvent(Element* oldFocusedElement,
107 WebFocusType, 111 WebFocusType,
108 InputDeviceCapabilities* sourceCapabilities) override; 112 InputDeviceCapabilities* sourceCapabilities) override;
109 void dispatchBlurEvent(Element* newFocusedElement, 113 void dispatchBlurEvent(Element* newFocusedElement,
110 WebFocusType, 114 WebFocusType,
111 InputDeviceCapabilities* sourceCapabilities) override; 115 InputDeviceCapabilities* sourceCapabilities) override;
112 bool isMouseFocusable() const override; 116 bool isMouseFocusable() const override;
113 bool isKeyboardFocusable() const override; 117 bool isKeyboardFocusable() const override;
114 void defaultEventHandler(Event*) final; 118 void defaultEventHandler(Event*) final;
(...skipping 23 matching lines...) Expand all
138 } 142 }
139 143
140 // Functions shared with the other anchor elements (i.e., SVG). 144 // Functions shared with the other anchor elements (i.e., SVG).
141 145
142 bool isEnterKeyKeydownEvent(Event*); 146 bool isEnterKeyKeydownEvent(Event*);
143 bool isLinkClick(Event*); 147 bool isLinkClick(Event*);
144 148
145 } // namespace blink 149 } // namespace blink
146 150
147 #endif // HTMLAnchorElement_h 151 #endif // HTMLAnchorElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698