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

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: Move m_wasFocusedByMouse into subclasses. Created 6 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 | « Source/core/html/HTMLAnchorElement.cpp ('k') | Source/core/html/HTMLFormControlElement.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 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; 133 virtual bool wasFocusedByMouse() const OVERRIDE;
134 virtual void setWasFocusedByMouse(bool) OVERRIDE FINAL;
134 virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE; 135 virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE;
135 virtual void willCallDefaultEventHandler(const Event&) OVERRIDE FINAL;
136 136
137 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; 137 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL;
138 138
139 // This must be called any time the result of willValidate() has changed. 139 // This must be called any time the result of willValidate() has changed.
140 void setNeedsWillValidateCheck(); 140 void setNeedsWillValidateCheck();
141 virtual bool recalcWillValidate() const; 141 virtual bool recalcWillValidate() const;
142 142
143 virtual void resetImpl() { } 143 virtual void resetImpl() { }
144 virtual bool supportsAutofocus() const; 144 virtual bool supportsAutofocus() const;
145 145
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 { 190 {
191 return element.isFormControlElement(); 191 return element.isFormControlElement();
192 } 192 }
193 193
194 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 194 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
195 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 195 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
196 196
197 } // namespace 197 } // namespace
198 198
199 #endif 199 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLAnchorElement.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698