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; | |
tkent
2016/03/01 01:43:00
Please do not add this.
Use |input->formControlTyp
tkent
2016/03/01 02:17:49
oops, formControlType() -> type()
je_julie(Not used)
2016/03/01 13:46:07
tkent and keishi,
keishi left comment "third_party
tkent
2016/03/02 00:40:02
Please follow my comment.
Keishi's comment meant
| |
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 | |
270 protected: | 274 protected: |
271 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); | 275 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); |
272 | 276 |
273 void defaultEventHandler(Event*) override; | 277 void defaultEventHandler(Event*) override; |
274 | 278 |
275 private: | 279 private: |
276 enum AutoCompleteSetting { Uninitialized, On, Off }; | 280 enum AutoCompleteSetting { Uninitialized, On, Off }; |
277 | 281 |
278 void didAddUserAgentShadowRoot(ShadowRoot&) final; | 282 void didAddUserAgentShadowRoot(ShadowRoot&) final; |
279 void willAddFirstAuthorShadowRoot() final; | 283 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 | 401 // 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 | 402 // 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. | 403 // the ImageInput object we may delete the loader while this element lives o n. |
400 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 404 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
401 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; | 405 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; |
402 }; | 406 }; |
403 | 407 |
404 } // namespace blink | 408 } // namespace blink |
405 | 409 |
406 #endif // HTMLInputElement_h | 410 #endif // HTMLInputElement_h |
OLD | NEW |