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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 bool isSteppable() const; | 88 bool isSteppable() const; |
89 | 89 |
90 // Returns true if the type is button, reset, or submit. | 90 // Returns true if the type is button, reset, or submit. |
91 bool isTextButton() const; | 91 bool isTextButton() const; |
92 // Returns true if the type is email, number, password, search, tel, text, | 92 // Returns true if the type is email, number, password, search, tel, text, |
93 // or url. | 93 // or url. |
94 bool isTextField() const; | 94 bool isTextField() const; |
95 | 95 |
96 bool isImage() const; | 96 bool isImage() const; |
97 | 97 |
| 98 bool isRadioButton() const; |
| 99 |
98 bool checked() const; | 100 bool checked() const; |
99 void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent); | 101 void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent); |
100 void dispatchChangeEventIfNeeded(); | 102 void dispatchChangeEventIfNeeded(); |
101 | 103 |
102 // '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 // 'indeterminate' is a state independent of the checked state that causes t
he control to draw in a way that hides the actual state. |
103 bool indeterminate() const { return m_isIndeterminate; } | 105 bool indeterminate() const { return m_isIndeterminate; } |
104 void setIndeterminate(bool); | 106 void setIndeterminate(bool); |
105 // shouldAppearChecked is used by the layout tree/CSS while checked() is use
d by JS to determine checked state | 107 // shouldAppearChecked is used by the layout tree/CSS while checked() is use
d by JS to determine checked state |
106 bool shouldAppearChecked() const; | 108 bool shouldAppearChecked() const; |
107 bool shouldAppearIndeterminate() const override; | 109 bool shouldAppearIndeterminate() const override; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 AXObject* popupRootAXObject(); | 262 AXObject* popupRootAXObject(); |
261 void didNotifySubtreeInsertionsToDocument() override; | 263 void didNotifySubtreeInsertionsToDocument() override; |
262 | 264 |
263 virtual void ensureFallbackContent(); | 265 virtual void ensureFallbackContent(); |
264 virtual void ensurePrimaryContent(); | 266 virtual void ensurePrimaryContent(); |
265 bool hasFallbackContent() const; | 267 bool hasFallbackContent() const; |
266 | 268 |
267 bool isPlaceholderVisible() const override { return m_isPlaceholderVisible;
} | 269 bool isPlaceholderVisible() const override { return m_isPlaceholderVisible;
} |
268 void setPlaceholderVisibility(bool) override; | 270 void setPlaceholderVisibility(bool) override; |
269 | 271 |
| 272 unsigned sizeOfRadioGroup() const; |
| 273 void updateAXPositionInRadioGroup() const; |
| 274 void setNeedToUpdateAXPosition(bool) const; |
| 275 |
270 protected: | 276 protected: |
271 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); | 277 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); |
272 | 278 |
273 void defaultEventHandler(Event*) override; | 279 void defaultEventHandler(Event*) override; |
274 | 280 |
275 private: | 281 private: |
276 enum AutoCompleteSetting { Uninitialized, On, Off }; | 282 enum AutoCompleteSetting { Uninitialized, On, Off }; |
277 | 283 |
278 void didAddUserAgentShadowRoot(ShadowRoot&) final; | 284 void didAddUserAgentShadowRoot(ShadowRoot&) final; |
279 void willAddFirstAuthorShadowRoot() final; | 285 void willAddFirstAuthorShadowRoot() final; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // 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 |
398 // 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 |
399 // 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. |
400 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 406 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
401 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; | 407 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; |
402 }; | 408 }; |
403 | 409 |
404 } // namespace blink | 410 } // namespace blink |
405 | 411 |
406 #endif // HTMLInputElement_h | 412 #endif // HTMLInputElement_h |
OLD | NEW |