| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void stepUp(int, ExceptionState&); | 83 void stepUp(int, ExceptionState&); |
| 84 void stepDown(int, ExceptionState&); | 84 void stepDown(int, ExceptionState&); |
| 85 // stepUp()/stepDown() for user-interaction. | 85 // stepUp()/stepDown() for user-interaction. |
| 86 bool isSteppable() const; | 86 bool isSteppable() const; |
| 87 | 87 |
| 88 // Returns true if the type is button, reset, or submit. | 88 // Returns true if the type is button, reset, or submit. |
| 89 bool isTextButton() const; | 89 bool isTextButton() const; |
| 90 // Returns true if the type is email, number, password, search, tel, text, | 90 // Returns true if the type is email, number, password, search, tel, text, |
| 91 // or url. | 91 // or url. |
| 92 bool isTextField() const; | 92 bool isTextField() const; |
| 93 // Returns true if the type is email, password, search, tel, text, or url. | |
| 94 // FIXME: It's highly likely that any call site calling this function should
instead | |
| 95 // be using a different one. Many input elements behave like text fields, an
d in addition | |
| 96 // any unknown input type is treated as text. Consider, for example, isTextF
ield or | |
| 97 // isTextField && !isPasswordField. | |
| 98 bool isText() const; | |
| 99 | 93 |
| 100 bool checked() const { return m_isChecked; } | 94 bool checked() const { return m_isChecked; } |
| 101 void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent); | 95 void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent); |
| 102 | 96 |
| 103 // '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 // 'indeterminate' is a state independent of the checked state that causes t
he control to draw in a way that hides the actual state. |
| 104 bool indeterminate() const { return m_isIndeterminate; } | 98 bool indeterminate() const { return m_isIndeterminate; } |
| 105 void setIndeterminate(bool); | 99 void setIndeterminate(bool); |
| 106 // shouldAppearChecked is used by the rendering tree/CSS while checked() is
used by JS to determine checked state | 100 // shouldAppearChecked is used by the rendering tree/CSS while checked() is
used by JS to determine checked state |
| 107 bool shouldAppearChecked() const; | 101 bool shouldAppearChecked() const; |
| 108 virtual bool shouldAppearIndeterminate() const OVERRIDE; | 102 virtual bool shouldAppearIndeterminate() const OVERRIDE; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 308 |
| 315 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; | 309 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; |
| 316 virtual void postDispatchEventHandler(Event*, void* dataFromPreDispatch) OVE
RRIDE FINAL; | 310 virtual void postDispatchEventHandler(Event*, void* dataFromPreDispatch) OVE
RRIDE FINAL; |
| 317 | 311 |
| 318 virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; | 312 virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; |
| 319 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
L; | 313 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
L; |
| 320 virtual const QualifiedName& subResourceAttributeName() const OVERRIDE FINAL
; | 314 virtual const QualifiedName& subResourceAttributeName() const OVERRIDE FINAL
; |
| 321 virtual bool isInRange() const OVERRIDE FINAL; | 315 virtual bool isInRange() const OVERRIDE FINAL; |
| 322 virtual bool isOutOfRange() const OVERRIDE FINAL; | 316 virtual bool isOutOfRange() const OVERRIDE FINAL; |
| 323 | 317 |
| 324 bool isTextType() const; | |
| 325 bool tooLong(const String&, NeedsToCheckDirtyFlag) const; | 318 bool tooLong(const String&, NeedsToCheckDirtyFlag) const; |
| 326 | 319 |
| 327 virtual bool supportsPlaceholder() const OVERRIDE FINAL; | 320 virtual bool supportsPlaceholder() const OVERRIDE FINAL; |
| 328 virtual void updatePlaceholderText() OVERRIDE FINAL; | 321 virtual void updatePlaceholderText() OVERRIDE FINAL; |
| 329 virtual bool isEmptyValue() const OVERRIDE FINAL { return innerEditorValue()
.isEmpty(); } | 322 virtual bool isEmptyValue() const OVERRIDE FINAL { return innerEditorValue()
.isEmpty(); } |
| 330 virtual bool isEmptySuggestedValue() const OVERRIDE FINAL { return suggested
Value().isEmpty(); } | 323 virtual bool isEmptySuggestedValue() const OVERRIDE FINAL { return suggested
Value().isEmpty(); } |
| 331 virtual void handleFocusEvent(Element* oldFocusedElement, FocusType) OVERRID
E FINAL; | 324 virtual void handleFocusEvent(Element* oldFocusedElement, FocusType) OVERRID
E FINAL; |
| 332 virtual void handleBlurEvent() OVERRIDE FINAL; | 325 virtual void handleBlurEvent() OVERRIDE FINAL; |
| 333 | 326 |
| 334 virtual bool isOptionalFormControl() const OVERRIDE FINAL { return !isRequir
edFormControl(); } | 327 virtual bool isOptionalFormControl() const OVERRIDE FINAL { return !isRequir
edFormControl(); } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // The ImageLoader must be owned by this element because the loader code ass
umes | 372 // The ImageLoader must be owned by this element because the loader code ass
umes |
| 380 // that it lives as long as its owning element lives. If we move the loader
into | 373 // that it lives as long as its owning element lives. If we move the loader
into |
| 381 // the ImageInput object we may delete the loader while this element lives o
n. | 374 // the ImageInput object we may delete the loader while this element lives o
n. |
| 382 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 375 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 383 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; | 376 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; |
| 384 }; | 377 }; |
| 385 | 378 |
| 386 } // namespace blink | 379 } // namespace blink |
| 387 | 380 |
| 388 #endif // HTMLInputElement_h | 381 #endif // HTMLInputElement_h |
| OLD | NEW |