| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 AXObject* popupRootAXObject(); | 259 AXObject* popupRootAXObject(); |
| 260 void didNotifySubtreeInsertionsToDocument() override; | 260 void didNotifySubtreeInsertionsToDocument() override; |
| 261 | 261 |
| 262 virtual void ensureFallbackContent(); | 262 virtual void ensureFallbackContent(); |
| 263 virtual void ensurePrimaryContent(); | 263 virtual void ensurePrimaryContent(); |
| 264 bool hasFallbackContent() const; | 264 bool hasFallbackContent() const; |
| 265 | 265 |
| 266 bool isPlaceholderVisible() const override { return m_isPlaceholderVisible;
} | 266 bool isPlaceholderVisible() const override { return m_isPlaceholderVisible;
} |
| 267 void setPlaceholderVisibility(bool) override; | 267 void setPlaceholderVisibility(bool) override; |
| 268 | 268 |
| 269 void setPositionInRadioGroup(unsigned position) { m_positonInRadio = positio
n; } |
| 270 unsigned positionInRadioGroup(); |
| 271 unsigned sizeOfRadioGroup(); |
| 272 |
| 269 protected: | 273 protected: |
| 270 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); | 274 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); |
| 271 | 275 |
| 272 void defaultEventHandler(Event*) override; | 276 void defaultEventHandler(Event*) override; |
| 273 | 277 |
| 274 private: | 278 private: |
| 275 enum AutoCompleteSetting { Uninitialized, On, Off }; | 279 enum AutoCompleteSetting { Uninitialized, On, Off }; |
| 276 | 280 |
| 277 void didAddUserAgentShadowRoot(ShadowRoot&) final; | 281 void didAddUserAgentShadowRoot(ShadowRoot&) final; |
| 278 void willAddFirstAuthorShadowRoot() final; | 282 void willAddFirstAuthorShadowRoot() final; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | 373 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; |
| 370 | 374 |
| 371 bool shouldDispatchFormControlChangeEvent(String&, String&) override; | 375 bool shouldDispatchFormControlChangeEvent(String&, String&) override; |
| 372 | 376 |
| 373 AtomicString m_name; | 377 AtomicString m_name; |
| 374 String m_valueIfDirty; | 378 String m_valueIfDirty; |
| 375 String m_suggestedValue; | 379 String m_suggestedValue; |
| 376 int m_size; | 380 int m_size; |
| 377 int m_maxLength; | 381 int m_maxLength; |
| 378 int m_minLength; | 382 int m_minLength; |
| 383 unsigned m_positonInRadio; |
| 379 short m_maxResults; | 384 short m_maxResults; |
| 380 unsigned m_isChecked : 1; | 385 unsigned m_isChecked : 1; |
| 381 unsigned m_reflectsCheckedAttribute : 1; | 386 unsigned m_reflectsCheckedAttribute : 1; |
| 382 unsigned m_isIndeterminate : 1; | 387 unsigned m_isIndeterminate : 1; |
| 383 unsigned m_isActivatedSubmit : 1; | 388 unsigned m_isActivatedSubmit : 1; |
| 384 unsigned m_autocomplete : 2; // AutoCompleteSetting | 389 unsigned m_autocomplete : 2; // AutoCompleteSetting |
| 385 unsigned m_hasNonEmptyList : 1; | 390 unsigned m_hasNonEmptyList : 1; |
| 386 unsigned m_stateRestored : 1; | 391 unsigned m_stateRestored : 1; |
| 387 unsigned m_parsingInProgress : 1; | 392 unsigned m_parsingInProgress : 1; |
| 388 unsigned m_valueAttributeWasUpdatedAfterParsing : 1; | 393 unsigned m_valueAttributeWasUpdatedAfterParsing : 1; |
| 389 unsigned m_canReceiveDroppedFiles : 1; | 394 unsigned m_canReceiveDroppedFiles : 1; |
| 390 unsigned m_hasTouchEventHandler : 1; | 395 unsigned m_hasTouchEventHandler : 1; |
| 391 unsigned m_shouldRevealPassword : 1; | 396 unsigned m_shouldRevealPassword : 1; |
| 392 unsigned m_needsToUpdateViewValue : 1; | 397 unsigned m_needsToUpdateViewValue : 1; |
| 393 unsigned m_isPlaceholderVisible : 1; | 398 unsigned m_isPlaceholderVisible : 1; |
| 394 RefPtrWillBeMember<InputType> m_inputType; | 399 RefPtrWillBeMember<InputType> m_inputType; |
| 395 RefPtrWillBeMember<InputTypeView> m_inputTypeView; | 400 RefPtrWillBeMember<InputTypeView> m_inputTypeView; |
| 396 // The ImageLoader must be owned by this element because the loader code ass
umes | 401 // The ImageLoader must be owned by this element because the loader code ass
umes |
| 397 // that it lives as long as its owning element lives. If we move the loader
into | 402 // that it lives as long as its owning element lives. If we move the loader
into |
| 398 // the ImageInput object we may delete the loader while this element lives o
n. | 403 // the ImageInput object we may delete the loader while this element lives o
n. |
| 399 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 404 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 400 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; | 405 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; |
| 401 }; | 406 }; |
| 402 | 407 |
| 403 } // namespace blink | 408 } // namespace blink |
| 404 | 409 |
| 405 #endif // HTMLInputElement_h | 410 #endif // HTMLInputElement_h |
| OLD | NEW |