| OLD | NEW |
| 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, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class KURL; | 42 class KURL; |
| 43 class ListAttributeTargetObserver; | 43 class ListAttributeTargetObserver; |
| 44 class RadioButtonGroupScope; | 44 class RadioButtonGroupScope; |
| 45 struct DateTimeChooserParameters; | 45 struct DateTimeChooserParameters; |
| 46 | 46 |
| 47 class HTMLInputElement : public HTMLTextFormControlElement { | 47 class HTMLInputElement : public HTMLTextFormControlElement { |
| 48 DEFINE_WRAPPERTYPEINFO(); | 48 DEFINE_WRAPPERTYPEINFO(); |
| 49 public: | 49 public: |
| 50 static PassRefPtrWillBeRawPtr<HTMLInputElement> create(Document&, HTMLFormEl
ement*, bool createdByParser); | 50 static PassRefPtrWillBeRawPtr<HTMLInputElement> create(Document&, HTMLFormEl
ement*, bool createdByParser); |
| 51 virtual ~HTMLInputElement(); | 51 virtual ~HTMLInputElement(); |
| 52 virtual void trace(Visitor*) OVERRIDE; | 52 virtual void trace(Visitor*) override; |
| 53 | 53 |
| 54 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitspeechchange); | 54 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitspeechchange); |
| 55 | 55 |
| 56 virtual bool shouldAutocomplete() const OVERRIDE FINAL; | 56 virtual bool shouldAutocomplete() const override final; |
| 57 | 57 |
| 58 // For ValidityState | 58 // For ValidityState |
| 59 virtual bool hasBadInput() const OVERRIDE FINAL; | 59 virtual bool hasBadInput() const override final; |
| 60 virtual bool patternMismatch() const OVERRIDE FINAL; | 60 virtual bool patternMismatch() const override final; |
| 61 virtual bool rangeUnderflow() const OVERRIDE FINAL; | 61 virtual bool rangeUnderflow() const override final; |
| 62 virtual bool rangeOverflow() const OVERRIDE FINAL; | 62 virtual bool rangeOverflow() const override final; |
| 63 virtual bool stepMismatch() const OVERRIDE FINAL; | 63 virtual bool stepMismatch() const override final; |
| 64 virtual bool tooLong() const OVERRIDE FINAL; | 64 virtual bool tooLong() const override final; |
| 65 virtual bool typeMismatch() const OVERRIDE FINAL; | 65 virtual bool typeMismatch() const override final; |
| 66 virtual bool valueMissing() const OVERRIDE FINAL; | 66 virtual bool valueMissing() const override final; |
| 67 virtual String validationMessage() const OVERRIDE FINAL; | 67 virtual String validationMessage() const override final; |
| 68 | 68 |
| 69 // Returns the minimum value for type=date, number, or range. Don't call th
is for other types. | 69 // Returns the minimum value for type=date, number, or range. Don't call th
is for other types. |
| 70 double minimum() const; | 70 double minimum() const; |
| 71 // Returns the maximum value for type=date, number, or range. Don't call th
is for other types. | 71 // Returns the maximum value for type=date, number, or range. Don't call th
is for other types. |
| 72 // This always returns a value which is >= minimum(). | 72 // This always returns a value which is >= minimum(). |
| 73 double maximum() const; | 73 double maximum() const; |
| 74 // Sets the "allowed value step" defined in the HTML spec to the specified d
ouble pointer. | 74 // Sets the "allowed value step" defined in the HTML spec to the specified d
ouble pointer. |
| 75 // Returns false if there is no "allowed value step." | 75 // Returns false if there is no "allowed value step." |
| 76 bool getAllowedValueStep(Decimal*) const; | 76 bool getAllowedValueStep(Decimal*) const; |
| 77 StepRange createStepRange(AnyStepHandling) const; | 77 StepRange createStepRange(AnyStepHandling) const; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 91 bool isTextField() const; | 91 bool isTextField() const; |
| 92 | 92 |
| 93 bool checked() const { return m_isChecked; } | 93 bool checked() const { return m_isChecked; } |
| 94 void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent); | 94 void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent); |
| 95 | 95 |
| 96 // 'indeterminate' is a state independent of the checked state that causes t
he control to draw in a way that hides the actual state. | 96 // 'indeterminate' is a state independent of the checked state that causes t
he control to draw in a way that hides the actual state. |
| 97 bool indeterminate() const { return m_isIndeterminate; } | 97 bool indeterminate() const { return m_isIndeterminate; } |
| 98 void setIndeterminate(bool); | 98 void setIndeterminate(bool); |
| 99 // shouldAppearChecked is used by the rendering tree/CSS while checked() is
used by JS to determine checked state | 99 // shouldAppearChecked is used by the rendering tree/CSS while checked() is
used by JS to determine checked state |
| 100 bool shouldAppearChecked() const; | 100 bool shouldAppearChecked() const; |
| 101 virtual bool shouldAppearIndeterminate() const OVERRIDE; | 101 virtual bool shouldAppearIndeterminate() const override; |
| 102 | 102 |
| 103 int size() const; | 103 int size() const; |
| 104 bool sizeShouldIncludeDecoration(int& preferredSize) const; | 104 bool sizeShouldIncludeDecoration(int& preferredSize) const; |
| 105 | 105 |
| 106 void setType(const AtomicString&); | 106 void setType(const AtomicString&); |
| 107 | 107 |
| 108 virtual String value() const OVERRIDE; | 108 virtual String value() const override; |
| 109 void setValue(const String&, ExceptionState&, TextFieldEventBehavior = Dispa
tchNoEvent); | 109 void setValue(const String&, ExceptionState&, TextFieldEventBehavior = Dispa
tchNoEvent); |
| 110 void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent); | 110 void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent); |
| 111 void setValueForUser(const String&); | 111 void setValueForUser(const String&); |
| 112 // Checks if the specified string would be a valid value. | 112 // Checks if the specified string would be a valid value. |
| 113 // We should not call this for types with no string value such as CHECKBOX a
nd RADIO. | 113 // We should not call this for types with no string value such as CHECKBOX a
nd RADIO. |
| 114 bool isValidValue(const String&) const; | 114 bool isValidValue(const String&) const; |
| 115 bool hasDirtyValue() const { return !m_valueIfDirty.isNull(); }; | 115 bool hasDirtyValue() const { return !m_valueIfDirty.isNull(); }; |
| 116 | 116 |
| 117 String sanitizeValue(const String&) const; | 117 String sanitizeValue(const String&) const; |
| 118 | 118 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 135 | 135 |
| 136 int selectionStartForBinding(ExceptionState&) const; | 136 int selectionStartForBinding(ExceptionState&) const; |
| 137 int selectionEndForBinding(ExceptionState&) const; | 137 int selectionEndForBinding(ExceptionState&) const; |
| 138 String selectionDirectionForBinding(ExceptionState&) const; | 138 String selectionDirectionForBinding(ExceptionState&) const; |
| 139 void setSelectionStartForBinding(int, ExceptionState&); | 139 void setSelectionStartForBinding(int, ExceptionState&); |
| 140 void setSelectionEndForBinding(int, ExceptionState&); | 140 void setSelectionEndForBinding(int, ExceptionState&); |
| 141 void setSelectionDirectionForBinding(const String&, ExceptionState&); | 141 void setSelectionDirectionForBinding(const String&, ExceptionState&); |
| 142 void setSelectionRangeForBinding(int start, int end, ExceptionState&); | 142 void setSelectionRangeForBinding(int start, int end, ExceptionState&); |
| 143 void setSelectionRangeForBinding(int start, int end, const String& direction
, ExceptionState&); | 143 void setSelectionRangeForBinding(int start, int end, const String& direction
, ExceptionState&); |
| 144 | 144 |
| 145 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE FINAL; | 145 virtual bool rendererIsNeeded(const RenderStyle&) override final; |
| 146 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 146 virtual RenderObject* createRenderer(RenderStyle*) override; |
| 147 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE FINAL; | 147 virtual void detach(const AttachContext& = AttachContext()) override final; |
| 148 virtual void updateFocusAppearance(bool restorePreviousSelection) OVERRIDE F
INAL; | 148 virtual void updateFocusAppearance(bool restorePreviousSelection) override f
inal; |
| 149 | 149 |
| 150 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV
I-idiom here by making | 150 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV
I-idiom here by making |
| 151 // it private virtual in all classes and expose a public method in HTMLFormC
ontrolElement to call | 151 // it private virtual in all classes and expose a public method in HTMLFormC
ontrolElement to call |
| 152 // the private virtual method. | 152 // the private virtual method. |
| 153 virtual bool isActivatedSubmit() const OVERRIDE FINAL; | 153 virtual bool isActivatedSubmit() const override final; |
| 154 virtual void setActivatedSubmit(bool flag) OVERRIDE FINAL; | 154 virtual void setActivatedSubmit(bool flag) override final; |
| 155 | 155 |
| 156 String altText() const; | 156 String altText() const; |
| 157 | 157 |
| 158 int maxResults() const { return m_maxResults; } | 158 int maxResults() const { return m_maxResults; } |
| 159 | 159 |
| 160 const AtomicString& defaultValue() const; | 160 const AtomicString& defaultValue() const; |
| 161 | 161 |
| 162 Vector<String> acceptMIMETypes(); | 162 Vector<String> acceptMIMETypes(); |
| 163 Vector<String> acceptFileExtensions(); | 163 Vector<String> acceptFileExtensions(); |
| 164 const AtomicString& alt() const; | 164 const AtomicString& alt() const; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 183 | 183 |
| 184 // These functions are used for rendering the input active during a | 184 // These functions are used for rendering the input active during a |
| 185 // drag-and-drop operation. | 185 // drag-and-drop operation. |
| 186 bool canReceiveDroppedFiles() const; | 186 bool canReceiveDroppedFiles() const; |
| 187 void setCanReceiveDroppedFiles(bool); | 187 void setCanReceiveDroppedFiles(bool); |
| 188 | 188 |
| 189 void onSearch(); | 189 void onSearch(); |
| 190 | 190 |
| 191 void updateClearButtonVisibility(); | 191 void updateClearButtonVisibility(); |
| 192 | 192 |
| 193 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 193 virtual bool willRespondToMouseClickEvents() override; |
| 194 | 194 |
| 195 HTMLElement* list() const; | 195 HTMLElement* list() const; |
| 196 HTMLDataListElement* dataList() const; | 196 HTMLDataListElement* dataList() const; |
| 197 bool hasValidDataListOptions() const; | 197 bool hasValidDataListOptions() const; |
| 198 void listAttributeTargetChanged(); | 198 void listAttributeTargetChanged(); |
| 199 | 199 |
| 200 HTMLInputElement* checkedRadioButtonForGroup(); | 200 HTMLInputElement* checkedRadioButtonForGroup(); |
| 201 bool isInRequiredRadioButtonGroup(); | 201 bool isInRequiredRadioButtonGroup(); |
| 202 | 202 |
| 203 // Functions for InputType classes. | 203 // Functions for InputType classes. |
| 204 void setValueInternal(const String&, TextFieldEventBehavior); | 204 void setValueInternal(const String&, TextFieldEventBehavior); |
| 205 bool valueAttributeWasUpdatedAfterParsing() const { return m_valueAttributeW
asUpdatedAfterParsing; } | 205 bool valueAttributeWasUpdatedAfterParsing() const { return m_valueAttributeW
asUpdatedAfterParsing; } |
| 206 void updateView(); | 206 void updateView(); |
| 207 bool needsToUpdateViewValue() const { return m_needsToUpdateViewValue; } | 207 bool needsToUpdateViewValue() const { return m_needsToUpdateViewValue; } |
| 208 virtual void setInnerEditorValue(const String&) OVERRIDE; | 208 virtual void setInnerEditorValue(const String&) override; |
| 209 | 209 |
| 210 void cacheSelectionInResponseToSetValue(int caretOffset) { cacheSelection(ca
retOffset, caretOffset, SelectionHasNoDirection); } | 210 void cacheSelectionInResponseToSetValue(int caretOffset) { cacheSelection(ca
retOffset, caretOffset, SelectionHasNoDirection); } |
| 211 | 211 |
| 212 // For test purposes. | 212 // For test purposes. |
| 213 void selectColorInColorChooser(const Color&); | 213 void selectColorInColorChooser(const Color&); |
| 214 void endColorChooser(); | 214 void endColorChooser(); |
| 215 | 215 |
| 216 String defaultToolTip() const; | 216 String defaultToolTip() const; |
| 217 | 217 |
| 218 static const int maximumLength; | 218 static const int maximumLength; |
| 219 | 219 |
| 220 unsigned height() const; | 220 unsigned height() const; |
| 221 unsigned width() const; | 221 unsigned width() const; |
| 222 void setHeight(unsigned); | 222 void setHeight(unsigned); |
| 223 void setWidth(unsigned); | 223 void setWidth(unsigned); |
| 224 | 224 |
| 225 virtual void blur() OVERRIDE FINAL; | 225 virtual void blur() override final; |
| 226 void defaultBlur(); | 226 void defaultBlur(); |
| 227 | 227 |
| 228 virtual const AtomicString& name() const OVERRIDE FINAL; | 228 virtual const AtomicString& name() const override final; |
| 229 | 229 |
| 230 void beginEditing(); | 230 void beginEditing(); |
| 231 void endEditing(); | 231 void endEditing(); |
| 232 | 232 |
| 233 static Vector<FileChooserFileInfo> filesFromFileInputFormControlState(const
FormControlState&); | 233 static Vector<FileChooserFileInfo> filesFromFileInputFormControlState(const
FormControlState&); |
| 234 | 234 |
| 235 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE FINAL; | 235 virtual bool matchesReadOnlyPseudoClass() const override final; |
| 236 virtual bool matchesReadWritePseudoClass() const OVERRIDE FINAL; | 236 virtual bool matchesReadWritePseudoClass() const override final; |
| 237 virtual void setRangeText(const String& replacement, ExceptionState&) OVERRI
DE FINAL; | 237 virtual void setRangeText(const String& replacement, ExceptionState&) overri
de final; |
| 238 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&) OVERRIDE FINAL; | 238 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&) override final; |
| 239 | 239 |
| 240 bool hasImageLoader() const { return m_imageLoader; } | 240 bool hasImageLoader() const { return m_imageLoader; } |
| 241 HTMLImageLoader* imageLoader(); | 241 HTMLImageLoader* imageLoader(); |
| 242 | 242 |
| 243 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); | 243 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); |
| 244 | 244 |
| 245 bool supportsInputModeAttribute() const; | 245 bool supportsInputModeAttribute() const; |
| 246 | 246 |
| 247 void setShouldRevealPassword(bool value); | 247 void setShouldRevealPassword(bool value); |
| 248 bool shouldRevealPassword() const { return m_shouldRevealPassword; } | 248 bool shouldRevealPassword() const { return m_shouldRevealPassword; } |
| 249 AXObject* popupRootAXObject(); | 249 AXObject* popupRootAXObject(); |
| 250 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; | 250 virtual void didNotifySubtreeInsertionsToDocument() override; |
| 251 | 251 |
| 252 protected: | 252 protected: |
| 253 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); | 253 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); |
| 254 | 254 |
| 255 virtual void defaultEventHandler(Event*) OVERRIDE; | 255 virtual void defaultEventHandler(Event*) override; |
| 256 | 256 |
| 257 private: | 257 private: |
| 258 enum AutoCompleteSetting { Uninitialized, On, Off }; | 258 enum AutoCompleteSetting { Uninitialized, On, Off }; |
| 259 | 259 |
| 260 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL; | 260 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final; |
| 261 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL; | 261 virtual void willAddFirstAuthorShadowRoot() override final; |
| 262 | 262 |
| 263 virtual void willChangeForm() OVERRIDE FINAL; | 263 virtual void willChangeForm() override final; |
| 264 virtual void didChangeForm() OVERRIDE FINAL; | 264 virtual void didChangeForm() override final; |
| 265 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 265 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 266 virtual void removedFrom(ContainerNode*) OVERRIDE FINAL; | 266 virtual void removedFrom(ContainerNode*) override final; |
| 267 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE FINAL; | 267 virtual void didMoveToNewDocument(Document& oldDocument) override final; |
| 268 virtual void removeAllEventListeners() OVERRIDE FINAL; | 268 virtual void removeAllEventListeners() override final; |
| 269 | 269 |
| 270 virtual bool hasCustomFocusLogic() const OVERRIDE FINAL; | 270 virtual bool hasCustomFocusLogic() const override final; |
| 271 virtual bool isKeyboardFocusable() const OVERRIDE FINAL; | 271 virtual bool isKeyboardFocusable() const override final; |
| 272 virtual bool shouldShowFocusRingOnMouseFocus() const OVERRIDE FINAL; | 272 virtual bool shouldShowFocusRingOnMouseFocus() const override final; |
| 273 virtual bool isEnumeratable() const OVERRIDE FINAL; | 273 virtual bool isEnumeratable() const override final; |
| 274 virtual bool isInteractiveContent() const OVERRIDE FINAL; | 274 virtual bool isInteractiveContent() const override final; |
| 275 virtual bool supportLabels() const OVERRIDE FINAL; | 275 virtual bool supportLabels() const override final; |
| 276 | 276 |
| 277 virtual bool isTextFormControl() const OVERRIDE FINAL { return isTextField()
; } | 277 virtual bool isTextFormControl() const override final { return isTextField()
; } |
| 278 | 278 |
| 279 virtual bool canTriggerImplicitSubmission() const OVERRIDE FINAL { return is
TextField(); } | 279 virtual bool canTriggerImplicitSubmission() const override final { return is
TextField(); } |
| 280 | 280 |
| 281 virtual const AtomicString& formControlType() const OVERRIDE FINAL; | 281 virtual const AtomicString& formControlType() const override final; |
| 282 | 282 |
| 283 virtual bool shouldSaveAndRestoreFormControlState() const OVERRIDE FINAL; | 283 virtual bool shouldSaveAndRestoreFormControlState() const override final; |
| 284 virtual FormControlState saveFormControlState() const OVERRIDE FINAL; | 284 virtual FormControlState saveFormControlState() const override final; |
| 285 virtual void restoreFormControlState(const FormControlState&) OVERRIDE FINAL
; | 285 virtual void restoreFormControlState(const FormControlState&) override final
; |
| 286 | 286 |
| 287 virtual bool canStartSelection() const OVERRIDE FINAL; | 287 virtual bool canStartSelection() const override final; |
| 288 | 288 |
| 289 virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE FINAL; | 289 virtual void accessKeyAction(bool sendMouseEvents) override final; |
| 290 | 290 |
| 291 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o
ldValue, const AtomicString& newValue) OVERRIDE; | 291 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o
ldValue, const AtomicString& newValue) override; |
| 292 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 292 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 293 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE FI
NAL; | 293 virtual bool isPresentationAttribute(const QualifiedName&) const override fi
nal; |
| 294 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE FINAL; | 294 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override final; |
| 295 virtual void finishParsingChildren() OVERRIDE FINAL; | 295 virtual void finishParsingChildren() override final; |
| 296 | 296 |
| 297 virtual void copyNonAttributePropertiesFromElement(const Element&) OVERRIDE
FINAL; | 297 virtual void copyNonAttributePropertiesFromElement(const Element&) override
final; |
| 298 | 298 |
| 299 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE FINAL; | 299 virtual void attach(const AttachContext& = AttachContext()) override final; |
| 300 | 300 |
| 301 virtual bool appendFormData(FormDataList&, bool) OVERRIDE FINAL; | 301 virtual bool appendFormData(FormDataList&, bool) override final; |
| 302 virtual String resultForDialogSubmit() OVERRIDE FINAL; | 302 virtual String resultForDialogSubmit() override final; |
| 303 | 303 |
| 304 virtual bool canBeSuccessfulSubmitButton() const OVERRIDE FINAL; | 304 virtual bool canBeSuccessfulSubmitButton() const override final; |
| 305 | 305 |
| 306 virtual void resetImpl() OVERRIDE FINAL; | 306 virtual void resetImpl() override final; |
| 307 virtual bool supportsAutofocus() const OVERRIDE FINAL; | 307 virtual bool supportsAutofocus() const override final; |
| 308 | 308 |
| 309 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; | 309 virtual void* preDispatchEventHandler(Event*) override final; |
| 310 virtual void postDispatchEventHandler(Event*, void* dataFromPreDispatch) OVE
RRIDE FINAL; | 310 virtual void postDispatchEventHandler(Event*, void* dataFromPreDispatch) ove
rride final; |
| 311 | 311 |
| 312 virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; | 312 virtual bool isURLAttribute(const Attribute&) const override final; |
| 313 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
L; | 313 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override fina
l; |
| 314 virtual const QualifiedName& subResourceAttributeName() const OVERRIDE FINAL
; | 314 virtual const QualifiedName& subResourceAttributeName() const override final
; |
| 315 virtual bool isInRange() const OVERRIDE FINAL; | 315 virtual bool isInRange() const override final; |
| 316 virtual bool isOutOfRange() const OVERRIDE FINAL; | 316 virtual bool isOutOfRange() const override final; |
| 317 | 317 |
| 318 bool tooLong(const String&, NeedsToCheckDirtyFlag) const; | 318 bool tooLong(const String&, NeedsToCheckDirtyFlag) const; |
| 319 | 319 |
| 320 virtual bool supportsPlaceholder() const OVERRIDE FINAL; | 320 virtual bool supportsPlaceholder() const override final; |
| 321 virtual void updatePlaceholderText() OVERRIDE FINAL; | 321 virtual void updatePlaceholderText() override final; |
| 322 virtual bool isEmptyValue() const OVERRIDE FINAL { return innerEditorValue()
.isEmpty(); } | 322 virtual bool isEmptyValue() const override final { return innerEditorValue()
.isEmpty(); } |
| 323 virtual bool isEmptySuggestedValue() const OVERRIDE FINAL { return suggested
Value().isEmpty(); } | 323 virtual bool isEmptySuggestedValue() const override final { return suggested
Value().isEmpty(); } |
| 324 virtual void handleFocusEvent(Element* oldFocusedElement, FocusType) OVERRID
E FINAL; | 324 virtual void handleFocusEvent(Element* oldFocusedElement, FocusType) overrid
e final; |
| 325 virtual void handleBlurEvent() OVERRIDE FINAL; | 325 virtual void handleBlurEvent() override final; |
| 326 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol
dFocusedElement, FocusType) OVERRIDE FINAL; | 326 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol
dFocusedElement, FocusType) override final; |
| 327 | 327 |
| 328 virtual bool isOptionalFormControl() const OVERRIDE FINAL { return !isRequir
edFormControl(); } | 328 virtual bool isOptionalFormControl() const override final { return !isRequir
edFormControl(); } |
| 329 virtual bool isRequiredFormControl() const OVERRIDE FINAL; | 329 virtual bool isRequiredFormControl() const override final; |
| 330 virtual bool recalcWillValidate() const OVERRIDE FINAL; | 330 virtual bool recalcWillValidate() const override final; |
| 331 virtual void requiredAttributeChanged() OVERRIDE FINAL; | 331 virtual void requiredAttributeChanged() override final; |
| 332 | 332 |
| 333 void updateType(); | 333 void updateType(); |
| 334 | 334 |
| 335 virtual void subtreeHasChanged() OVERRIDE FINAL; | 335 virtual void subtreeHasChanged() override final; |
| 336 | 336 |
| 337 void setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<ListAttributeTarg
etObserver>); | 337 void setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<ListAttributeTarg
etObserver>); |
| 338 void resetListAttributeTargetObserver(); | 338 void resetListAttributeTargetObserver(); |
| 339 void parseMaxLengthAttribute(const AtomicString&); | 339 void parseMaxLengthAttribute(const AtomicString&); |
| 340 void updateValueIfNeeded(); | 340 void updateValueIfNeeded(); |
| 341 | 341 |
| 342 // Returns null if this isn't associated with any radio button group. | 342 // Returns null if this isn't associated with any radio button group. |
| 343 RadioButtonGroupScope* radioButtonGroupScope() const; | 343 RadioButtonGroupScope* radioButtonGroupScope() const; |
| 344 void addToRadioButtonGroup(); | 344 void addToRadioButtonGroup(); |
| 345 void removeFromRadioButtonGroup(); | 345 void removeFromRadioButtonGroup(); |
| 346 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 346 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 347 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 347 virtual PassRefPtr<RenderStyle> customStyleForRenderer() override; |
| 348 #endif | 348 #endif |
| 349 | 349 |
| 350 virtual bool shouldDispatchFormControlChangeEvent(String&, String&) OVERRIDE
; | 350 virtual bool shouldDispatchFormControlChangeEvent(String&, String&) override
; |
| 351 | 351 |
| 352 AtomicString m_name; | 352 AtomicString m_name; |
| 353 String m_valueIfDirty; | 353 String m_valueIfDirty; |
| 354 String m_suggestedValue; | 354 String m_suggestedValue; |
| 355 int m_size; | 355 int m_size; |
| 356 int m_maxLength; | 356 int m_maxLength; |
| 357 short m_maxResults; | 357 short m_maxResults; |
| 358 bool m_isChecked : 1; | 358 bool m_isChecked : 1; |
| 359 bool m_reflectsCheckedAttribute : 1; | 359 bool m_reflectsCheckedAttribute : 1; |
| 360 bool m_isIndeterminate : 1; | 360 bool m_isIndeterminate : 1; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 373 // The ImageLoader must be owned by this element because the loader code ass
umes | 373 // The ImageLoader must be owned by this element because the loader code ass
umes |
| 374 // that it lives as long as its owning element lives. If we move the loader
into | 374 // that it lives as long as its owning element lives. If we move the loader
into |
| 375 // the ImageInput object we may delete the loader while this element lives o
n. | 375 // the ImageInput object we may delete the loader while this element lives o
n. |
| 376 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 376 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 377 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; | 377 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; |
| 378 }; | 378 }; |
| 379 | 379 |
| 380 } // namespace blink | 380 } // namespace blink |
| 381 | 381 |
| 382 #endif // HTMLInputElement_h | 382 #endif // HTMLInputElement_h |
| OLD | NEW |