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

Side by Side Diff: Source/core/html/HTMLFormControlElement.h

Issue 455223002: Make anchors mouse-focusable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: De-duplicate using FocusController; update TestExpectations Created 6 years, 4 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 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 virtual void disabledAttributeChanged(); 122 virtual void disabledAttributeChanged();
123 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 123 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
124 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 124 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
125 virtual void removedFrom(ContainerNode*) OVERRIDE; 125 virtual void removedFrom(ContainerNode*) OVERRIDE;
126 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 126 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
127 127
128 virtual bool supportsFocus() const OVERRIDE; 128 virtual bool supportsFocus() const OVERRIDE;
129 virtual bool isKeyboardFocusable() const OVERRIDE; 129 virtual bool isKeyboardFocusable() const OVERRIDE;
130 virtual bool shouldShowFocusRingOnMouseFocus() const; 130 virtual bool shouldShowFocusRingOnMouseFocus() const;
131 virtual bool shouldHaveFocusAppearance() const OVERRIDE FINAL; 131 virtual bool shouldHaveFocusAppearance() const OVERRIDE FINAL;
132 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType) OVERR IDE;
133 virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE; 132 virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE;
134 virtual void willCallDefaultEventHandler(const Event&) OVERRIDE FINAL;
135 133
136 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; 134 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL;
137 135
138 // This must be called any time the result of willValidate() has changed. 136 // This must be called any time the result of willValidate() has changed.
139 void setNeedsWillValidateCheck(); 137 void setNeedsWillValidateCheck();
140 virtual bool recalcWillValidate() const; 138 virtual bool recalcWillValidate() const;
141 139
142 virtual void resetImpl() { } 140 virtual void resetImpl() { }
143 virtual bool supportsAutofocus() const; 141 virtual bool supportsAutofocus() const;
144 142
(...skipping 30 matching lines...) Expand all
175 // initialize it with a virtual function in the constructor. m_willValidate 173 // initialize it with a virtual function in the constructor. m_willValidate
176 // is not deterministic as long as m_willValidateInitialized is false. 174 // is not deterministic as long as m_willValidateInitialized is false.
177 mutable bool m_willValidateInitialized: 1; 175 mutable bool m_willValidateInitialized: 1;
178 mutable bool m_willValidate : 1; 176 mutable bool m_willValidate : 1;
179 177
180 // Cache of valid(). 178 // Cache of valid().
181 // But "candidate for constraint validation" doesn't affect m_isValid. 179 // But "candidate for constraint validation" doesn't affect m_isValid.
182 bool m_isValid : 1; 180 bool m_isValid : 1;
183 181
184 bool m_wasChangedSinceLastFormControlChangeEvent : 1; 182 bool m_wasChangedSinceLastFormControlChangeEvent : 1;
185 bool m_wasFocusedByMouse : 1;
186 }; 183 };
187 184
188 inline bool isHTMLFormControlElement(const Element& element) 185 inline bool isHTMLFormControlElement(const Element& element)
189 { 186 {
190 return element.isFormControlElement(); 187 return element.isFormControlElement();
191 } 188 }
192 189
193 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 190 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
194 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 191 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
195 192
196 } // namespace 193 } // namespace
197 194
198 #endif 195 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698