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

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: rebase 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual void disabledAttributeChanged(); 123 virtual void disabledAttributeChanged();
124 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 124 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
125 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 125 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
126 virtual void removedFrom(ContainerNode*) OVERRIDE; 126 virtual void removedFrom(ContainerNode*) OVERRIDE;
127 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 127 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
128 128
129 virtual bool supportsFocus() const OVERRIDE; 129 virtual bool supportsFocus() const OVERRIDE;
130 virtual bool isKeyboardFocusable() const OVERRIDE; 130 virtual bool isKeyboardFocusable() const OVERRIDE;
131 virtual bool shouldShowFocusRingOnMouseFocus() const; 131 virtual bool shouldShowFocusRingOnMouseFocus() const;
132 virtual bool shouldHaveFocusAppearance() const OVERRIDE FINAL; 132 virtual bool shouldHaveFocusAppearance() const OVERRIDE FINAL;
133 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType) OVERR IDE;
134 virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE; 133 virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE;
135 virtual void willCallDefaultEventHandler(const Event&) OVERRIDE FINAL;
136 134
137 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; 135 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL;
138 136
139 // This must be called any time the result of willValidate() has changed. 137 // This must be called any time the result of willValidate() has changed.
140 void setNeedsWillValidateCheck(); 138 void setNeedsWillValidateCheck();
141 virtual bool recalcWillValidate() const; 139 virtual bool recalcWillValidate() const;
142 140
143 virtual void resetImpl() { } 141 virtual void resetImpl() { }
144 virtual bool supportsAutofocus() const; 142 virtual bool supportsAutofocus() const;
145 143
(...skipping 30 matching lines...) Expand all
176 // initialize it with a virtual function in the constructor. m_willValidate 174 // initialize it with a virtual function in the constructor. m_willValidate
177 // is not deterministic as long as m_willValidateInitialized is false. 175 // is not deterministic as long as m_willValidateInitialized is false.
178 mutable bool m_willValidateInitialized: 1; 176 mutable bool m_willValidateInitialized: 1;
179 mutable bool m_willValidate : 1; 177 mutable bool m_willValidate : 1;
180 178
181 // Cache of valid(). 179 // Cache of valid().
182 // But "candidate for constraint validation" doesn't affect m_isValid. 180 // But "candidate for constraint validation" doesn't affect m_isValid.
183 bool m_isValid : 1; 181 bool m_isValid : 1;
184 182
185 bool m_wasChangedSinceLastFormControlChangeEvent : 1; 183 bool m_wasChangedSinceLastFormControlChangeEvent : 1;
186 bool m_wasFocusedByMouse : 1;
187 }; 184 };
188 185
189 inline bool isHTMLFormControlElement(const Element& element) 186 inline bool isHTMLFormControlElement(const Element& element)
190 { 187 {
191 return element.isFormControlElement(); 188 return element.isFormControlElement();
192 } 189 }
193 190
194 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 191 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
195 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 192 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
196 193
197 } // namespace 194 } // namespace
198 195
199 #endif 196 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698