| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  112  |  112  | 
|  113     void setType(const AtomicString&); |  113     void setType(const AtomicString&); | 
|  114  |  114  | 
|  115     String value() const override; |  115     String value() const override; | 
|  116     void setValue(const String&, ExceptionState&, TextFieldEventBehavior = Dispa
     tchNoEvent); |  116     void setValue(const String&, ExceptionState&, TextFieldEventBehavior = Dispa
     tchNoEvent); | 
|  117     void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent) overr
     ide; |  117     void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent) overr
     ide; | 
|  118     void setValueForUser(const String&); |  118     void setValueForUser(const String&); | 
|  119     // Checks if the specified string would be a valid value. |  119     // Checks if the specified string would be a valid value. | 
|  120     // We should not call this for types with no string value such as CHECKBOX a
     nd RADIO. |  120     // We should not call this for types with no string value such as CHECKBOX a
     nd RADIO. | 
|  121     bool isValidValue(const String&) const; |  121     bool isValidValue(const String&) const; | 
|  122     bool hasDirtyValue() const { return !m_valueIfDirty.isNull(); } |  122     bool hasDirtyValue() const; | 
|  123  |  123  | 
|  124     String sanitizeValue(const String&) const; |  124     String sanitizeValue(const String&) const; | 
|  125  |  125  | 
|  126     String localizeValue(const String&) const; |  126     String localizeValue(const String&) const; | 
|  127  |  127  | 
|  128     const String& suggestedValue() const; |  128     const String& suggestedValue() const; | 
|  129     void setSuggestedValue(const String&); |  129     void setSuggestedValue(const String&); | 
|  130  |  130  | 
|  131     void setEditingValue(const String&); |  131     void setEditingValue(const String&); | 
|  132  |  132  | 
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  367  |  367  | 
|  368     // Returns null if this isn't associated with any radio button group. |  368     // Returns null if this isn't associated with any radio button group. | 
|  369     RadioButtonGroupScope* radioButtonGroupScope() const; |  369     RadioButtonGroupScope* radioButtonGroupScope() const; | 
|  370     void addToRadioButtonGroup(); |  370     void addToRadioButtonGroup(); | 
|  371     void removeFromRadioButtonGroup(); |  371     void removeFromRadioButtonGroup(); | 
|  372     PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; |  372     PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | 
|  373  |  373  | 
|  374     bool shouldDispatchFormControlChangeEvent(String&, String&) override; |  374     bool shouldDispatchFormControlChangeEvent(String&, String&) override; | 
|  375  |  375  | 
|  376     AtomicString m_name; |  376     AtomicString m_name; | 
 |  377     // A dirty value.  isNull() means the value is not dirty and we should refer | 
 |  378     // to |value| content attribute value. | 
|  377     String m_valueIfDirty; |  379     String m_valueIfDirty; | 
|  378     String m_suggestedValue; |  380     String m_suggestedValue; | 
|  379     int m_size; |  381     int m_size; | 
|  380     int m_maxLength; |  382     int m_maxLength; | 
|  381     int m_minLength; |  383     int m_minLength; | 
 |  384     // https://html.spec.whatwg.org/multipage/forms.html#concept-input-value-dir
     ty-flag | 
 |  385     unsigned m_hasDirtyValue : 1; | 
|  382     // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-checked |  386     // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-checked | 
|  383     unsigned m_isChecked : 1; |  387     unsigned m_isChecked : 1; | 
|  384     // https://html.spec.whatwg.org/multipage/forms.html#concept-input-checked-d
     irty-flag |  388     // https://html.spec.whatwg.org/multipage/forms.html#concept-input-checked-d
     irty-flag | 
|  385     unsigned m_dirtyCheckedness : 1; |  389     unsigned m_dirtyCheckedness : 1; | 
|  386     unsigned m_isIndeterminate : 1; |  390     unsigned m_isIndeterminate : 1; | 
|  387     unsigned m_isActivatedSubmit : 1; |  391     unsigned m_isActivatedSubmit : 1; | 
|  388     unsigned m_autocomplete : 2; // AutoCompleteSetting |  392     unsigned m_autocomplete : 2; // AutoCompleteSetting | 
|  389     unsigned m_hasNonEmptyList : 1; |  393     unsigned m_hasNonEmptyList : 1; | 
|  390     unsigned m_stateRestored : 1; |  394     unsigned m_stateRestored : 1; | 
|  391     unsigned m_parsingInProgress : 1; |  395     unsigned m_parsingInProgress : 1; | 
|  392     unsigned m_valueAttributeWasUpdatedAfterParsing : 1; |  396     unsigned m_valueAttributeWasUpdatedAfterParsing : 1; | 
|  393     unsigned m_canReceiveDroppedFiles : 1; |  397     unsigned m_canReceiveDroppedFiles : 1; | 
|  394     unsigned m_shouldRevealPassword : 1; |  398     unsigned m_shouldRevealPassword : 1; | 
|  395     unsigned m_needsToUpdateViewValue : 1; |  399     unsigned m_needsToUpdateViewValue : 1; | 
|  396     unsigned m_isPlaceholderVisible : 1; |  400     unsigned m_isPlaceholderVisible : 1; | 
|  397     Member<InputType> m_inputType; |  401     Member<InputType> m_inputType; | 
|  398     Member<InputTypeView> m_inputTypeView; |  402     Member<InputTypeView> m_inputTypeView; | 
|  399     // The ImageLoader must be owned by this element because the loader code ass
     umes |  403     // The ImageLoader must be owned by this element because the loader code ass
     umes | 
|  400     // that it lives as long as its owning element lives. If we move the loader 
     into |  404     // that it lives as long as its owning element lives. If we move the loader 
     into | 
|  401     // the ImageInput object we may delete the loader while this element lives o
     n. |  405     // the ImageInput object we may delete the loader while this element lives o
     n. | 
|  402     Member<HTMLImageLoader> m_imageLoader; |  406     Member<HTMLImageLoader> m_imageLoader; | 
|  403     Member<ListAttributeTargetObserver> m_listAttributeTargetObserver; |  407     Member<ListAttributeTargetObserver> m_listAttributeTargetObserver; | 
|  404 }; |  408 }; | 
|  405  |  409  | 
|  406 } // namespace blink |  410 } // namespace blink | 
|  407  |  411  | 
|  408 #endif // HTMLInputElement_h |  412 #endif // HTMLInputElement_h | 
| OLD | NEW |