| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void updateFocusAppearance(SelectionBehaviorOnFocus) final; | 158 void updateFocusAppearance(SelectionBehaviorOnFocus) final; |
| 159 | 159 |
| 160 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV
I-idiom here by making | 160 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV
I-idiom here by making |
| 161 // it private virtual in all classes and expose a public method in HTMLFormC
ontrolElement to call | 161 // it private virtual in all classes and expose a public method in HTMLFormC
ontrolElement to call |
| 162 // the private virtual method. | 162 // the private virtual method. |
| 163 bool isActivatedSubmit() const final; | 163 bool isActivatedSubmit() const final; |
| 164 void setActivatedSubmit(bool flag) final; | 164 void setActivatedSubmit(bool flag) final; |
| 165 | 165 |
| 166 String altText() const final; | 166 String altText() const final; |
| 167 | 167 |
| 168 int maxResults() const { return m_maxResults; } | |
| 169 | |
| 170 const AtomicString& defaultValue() const; | 168 const AtomicString& defaultValue() const; |
| 171 | 169 |
| 172 Vector<String> acceptMIMETypes(); | 170 Vector<String> acceptMIMETypes(); |
| 173 Vector<String> acceptFileExtensions(); | 171 Vector<String> acceptFileExtensions(); |
| 174 const AtomicString& alt() const; | 172 const AtomicString& alt() const; |
| 175 | 173 |
| 176 void setSize(unsigned); | 174 void setSize(unsigned); |
| 177 void setSize(unsigned, ExceptionState&); | 175 void setSize(unsigned, ExceptionState&); |
| 178 | 176 |
| 179 KURL src() const; | 177 KURL src() const; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | 371 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; |
| 374 | 372 |
| 375 bool shouldDispatchFormControlChangeEvent(String&, String&) override; | 373 bool shouldDispatchFormControlChangeEvent(String&, String&) override; |
| 376 | 374 |
| 377 AtomicString m_name; | 375 AtomicString m_name; |
| 378 String m_valueIfDirty; | 376 String m_valueIfDirty; |
| 379 String m_suggestedValue; | 377 String m_suggestedValue; |
| 380 int m_size; | 378 int m_size; |
| 381 int m_maxLength; | 379 int m_maxLength; |
| 382 int m_minLength; | 380 int m_minLength; |
| 383 short m_maxResults; | |
| 384 // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-checked | 381 // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-checked |
| 385 unsigned m_isChecked : 1; | 382 unsigned m_isChecked : 1; |
| 386 // https://html.spec.whatwg.org/multipage/forms.html#concept-input-checked-d
irty-flag | 383 // https://html.spec.whatwg.org/multipage/forms.html#concept-input-checked-d
irty-flag |
| 387 unsigned m_dirtyCheckedness : 1; | 384 unsigned m_dirtyCheckedness : 1; |
| 388 unsigned m_isIndeterminate : 1; | 385 unsigned m_isIndeterminate : 1; |
| 389 unsigned m_isActivatedSubmit : 1; | 386 unsigned m_isActivatedSubmit : 1; |
| 390 unsigned m_autocomplete : 2; // AutoCompleteSetting | 387 unsigned m_autocomplete : 2; // AutoCompleteSetting |
| 391 unsigned m_hasNonEmptyList : 1; | 388 unsigned m_hasNonEmptyList : 1; |
| 392 unsigned m_stateRestored : 1; | 389 unsigned m_stateRestored : 1; |
| 393 unsigned m_parsingInProgress : 1; | 390 unsigned m_parsingInProgress : 1; |
| 394 unsigned m_valueAttributeWasUpdatedAfterParsing : 1; | 391 unsigned m_valueAttributeWasUpdatedAfterParsing : 1; |
| 395 unsigned m_canReceiveDroppedFiles : 1; | 392 unsigned m_canReceiveDroppedFiles : 1; |
| 396 unsigned m_hasTouchEventHandler : 1; | 393 unsigned m_hasTouchEventHandler : 1; |
| 397 unsigned m_shouldRevealPassword : 1; | 394 unsigned m_shouldRevealPassword : 1; |
| 398 unsigned m_needsToUpdateViewValue : 1; | 395 unsigned m_needsToUpdateViewValue : 1; |
| 399 unsigned m_isPlaceholderVisible : 1; | 396 unsigned m_isPlaceholderVisible : 1; |
| 400 Member<InputType> m_inputType; | 397 Member<InputType> m_inputType; |
| 401 Member<InputTypeView> m_inputTypeView; | 398 Member<InputTypeView> m_inputTypeView; |
| 402 // The ImageLoader must be owned by this element because the loader code ass
umes | 399 // The ImageLoader must be owned by this element because the loader code ass
umes |
| 403 // that it lives as long as its owning element lives. If we move the loader
into | 400 // that it lives as long as its owning element lives. If we move the loader
into |
| 404 // the ImageInput object we may delete the loader while this element lives o
n. | 401 // the ImageInput object we may delete the loader while this element lives o
n. |
| 405 Member<HTMLImageLoader> m_imageLoader; | 402 Member<HTMLImageLoader> m_imageLoader; |
| 406 Member<ListAttributeTargetObserver> m_listAttributeTargetObserver; | 403 Member<ListAttributeTargetObserver> m_listAttributeTargetObserver; |
| 407 }; | 404 }; |
| 408 | 405 |
| 409 } // namespace blink | 406 } // namespace blink |
| 410 | 407 |
| 411 #endif // HTMLInputElement_h | 408 #endif // HTMLInputElement_h |
| OLD | NEW |