| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "core/CoreExport.h" | 28 #include "core/CoreExport.h" |
| 29 #include "core/html/HTMLTextFormControlElement.h" | 29 #include "core/html/HTMLTextFormControlElement.h" |
| 30 #include "core/html/forms/StepRange.h" | 30 #include "core/html/forms/StepRange.h" |
| 31 #include "platform/FileChooser.h" | 31 #include "platform/FileChooser.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class AXObject; | 35 class AXObject; |
| 36 class DragData; | 36 class DragData; |
| 37 class ElementVisibilityObserver; |
| 37 class ExceptionState; | 38 class ExceptionState; |
| 38 class FileList; | 39 class FileList; |
| 39 class HTMLDataListElement; | 40 class HTMLDataListElement; |
| 40 class HTMLImageLoader; | 41 class HTMLImageLoader; |
| 41 class InputType; | 42 class InputType; |
| 42 class InputTypeView; | 43 class InputTypeView; |
| 43 class KURL; | 44 class KURL; |
| 44 class ListAttributeTargetObserver; | 45 class ListAttributeTargetObserver; |
| 45 class RadioButtonGroupScope; | 46 class RadioButtonGroupScope; |
| 46 struct DateTimeChooserParameters; | 47 struct DateTimeChooserParameters; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 void updateValueIfNeeded(); | 367 void updateValueIfNeeded(); |
| 367 | 368 |
| 368 // Returns null if this isn't associated with any radio button group. | 369 // Returns null if this isn't associated with any radio button group. |
| 369 RadioButtonGroupScope* radioButtonGroupScope() const; | 370 RadioButtonGroupScope* radioButtonGroupScope() const; |
| 370 void addToRadioButtonGroup(); | 371 void addToRadioButtonGroup(); |
| 371 void removeFromRadioButtonGroup(); | 372 void removeFromRadioButtonGroup(); |
| 372 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | 373 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; |
| 373 | 374 |
| 374 bool shouldDispatchFormControlChangeEvent(String&, String&) override; | 375 bool shouldDispatchFormControlChangeEvent(String&, String&) override; |
| 375 | 376 |
| 377 void updateVisibilityObserver(const AtomicString& newTypeName); |
| 378 void onVisibilityChangedForPasswordInput(bool isVisible); |
| 379 |
| 376 AtomicString m_name; | 380 AtomicString m_name; |
| 377 String m_valueIfDirty; | 381 String m_valueIfDirty; |
| 378 String m_suggestedValue; | 382 String m_suggestedValue; |
| 379 int m_size; | 383 int m_size; |
| 380 int m_maxLength; | 384 int m_maxLength; |
| 381 int m_minLength; | 385 int m_minLength; |
| 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; |
| 408 Member<ElementVisibilityObserver> m_passwordVisibilityObserver; |
| 404 }; | 409 }; |
| 405 | 410 |
| 406 } // namespace blink | 411 } // namespace blink |
| 407 | 412 |
| 408 #endif // HTMLInputElement_h | 413 #endif // HTMLInputElement_h |
| OLD | NEW |