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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual RenderObject* createRenderer(RenderStyle*) override; | 147 virtual RenderObject* createRenderer(RenderStyle*) override; |
148 virtual void detach(const AttachContext& = AttachContext()) override final; | 148 virtual void detach(const AttachContext& = AttachContext()) override final; |
149 virtual void updateFocusAppearance(bool restorePreviousSelection) override f
inal; | 149 virtual void updateFocusAppearance(bool restorePreviousSelection) override f
inal; |
150 | 150 |
151 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV
I-idiom here by making | 151 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV
I-idiom here by making |
152 // it private virtual in all classes and expose a public method in HTMLFormC
ontrolElement to call | 152 // it private virtual in all classes and expose a public method in HTMLFormC
ontrolElement to call |
153 // the private virtual method. | 153 // the private virtual method. |
154 virtual bool isActivatedSubmit() const override final; | 154 virtual bool isActivatedSubmit() const override final; |
155 virtual void setActivatedSubmit(bool flag) override final; | 155 virtual void setActivatedSubmit(bool flag) override final; |
156 | 156 |
157 virtual String altText() const override final; | 157 String altText() const; |
158 | 158 |
159 int maxResults() const { return m_maxResults; } | 159 int maxResults() const { return m_maxResults; } |
160 | 160 |
161 const AtomicString& defaultValue() const; | 161 const AtomicString& defaultValue() const; |
162 | 162 |
163 Vector<String> acceptMIMETypes(); | 163 Vector<String> acceptMIMETypes(); |
164 Vector<String> acceptFileExtensions(); | 164 Vector<String> acceptFileExtensions(); |
165 const AtomicString& alt() const; | 165 const AtomicString& alt() const; |
166 | 166 |
167 void setSize(unsigned); | 167 void setSize(unsigned); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); | 246 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); |
247 | 247 |
248 bool supportsInputModeAttribute() const; | 248 bool supportsInputModeAttribute() const; |
249 | 249 |
250 void setShouldRevealPassword(bool value); | 250 void setShouldRevealPassword(bool value); |
251 bool shouldRevealPassword() const { return m_shouldRevealPassword; } | 251 bool shouldRevealPassword() const { return m_shouldRevealPassword; } |
252 AXObject* popupRootAXObject(); | 252 AXObject* popupRootAXObject(); |
253 virtual void didNotifySubtreeInsertionsToDocument() override; | 253 virtual void didNotifySubtreeInsertionsToDocument() override; |
254 | 254 |
255 virtual void ensureFallbackContent(); | |
256 virtual void ensurePrimaryContent(); | |
257 bool hasFallbackContent() const; | |
258 protected: | 255 protected: |
259 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); | 256 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); |
260 | 257 |
261 virtual void defaultEventHandler(Event*) override; | 258 virtual void defaultEventHandler(Event*) override; |
262 | 259 |
263 private: | 260 private: |
264 enum AutoCompleteSetting { Uninitialized, On, Off }; | 261 enum AutoCompleteSetting { Uninitialized, On, Off }; |
265 | 262 |
266 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final; | 263 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final; |
267 virtual void willAddFirstAuthorShadowRoot() override final; | 264 virtual void willAddFirstAuthorShadowRoot() override final; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 void setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<ListAttributeTarg
etObserver>); | 341 void setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<ListAttributeTarg
etObserver>); |
345 void resetListAttributeTargetObserver(); | 342 void resetListAttributeTargetObserver(); |
346 void parseMaxLengthAttribute(const AtomicString&); | 343 void parseMaxLengthAttribute(const AtomicString&); |
347 void parseMinLengthAttribute(const AtomicString&); | 344 void parseMinLengthAttribute(const AtomicString&); |
348 void updateValueIfNeeded(); | 345 void updateValueIfNeeded(); |
349 | 346 |
350 // Returns null if this isn't associated with any radio button group. | 347 // Returns null if this isn't associated with any radio button group. |
351 RadioButtonGroupScope* radioButtonGroupScope() const; | 348 RadioButtonGroupScope* radioButtonGroupScope() const; |
352 void addToRadioButtonGroup(); | 349 void addToRadioButtonGroup(); |
353 void removeFromRadioButtonGroup(); | 350 void removeFromRadioButtonGroup(); |
| 351 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
354 virtual PassRefPtr<RenderStyle> customStyleForRenderer() override; | 352 virtual PassRefPtr<RenderStyle> customStyleForRenderer() override; |
| 353 #endif |
355 | 354 |
356 virtual bool shouldDispatchFormControlChangeEvent(String&, String&) override
; | 355 virtual bool shouldDispatchFormControlChangeEvent(String&, String&) override
; |
357 | 356 |
358 AtomicString m_name; | 357 AtomicString m_name; |
359 String m_valueIfDirty; | 358 String m_valueIfDirty; |
360 String m_suggestedValue; | 359 String m_suggestedValue; |
361 int m_size; | 360 int m_size; |
362 int m_maxLength; | 361 int m_maxLength; |
363 int m_minLength; | 362 int m_minLength; |
364 short m_maxResults; | 363 short m_maxResults; |
(...skipping 15 matching lines...) Expand all Loading... |
380 // The ImageLoader must be owned by this element because the loader code ass
umes | 379 // The ImageLoader must be owned by this element because the loader code ass
umes |
381 // that it lives as long as its owning element lives. If we move the loader
into | 380 // that it lives as long as its owning element lives. If we move the loader
into |
382 // the ImageInput object we may delete the loader while this element lives o
n. | 381 // the ImageInput object we may delete the loader while this element lives o
n. |
383 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 382 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
384 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; | 383 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; |
385 }; | 384 }; |
386 | 385 |
387 } // namespace blink | 386 } // namespace blink |
388 | 387 |
389 #endif // HTMLInputElement_h | 388 #endif // HTMLInputElement_h |
OLD | NEW |