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 String altText() const; | 157 virtual String altText() const override final; |
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() override final; |
| 256 virtual void ensurePrimaryContent() override final; |
| 257 bool hasFallbackContent() const; |
255 protected: | 258 protected: |
256 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); | 259 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); |
257 | 260 |
258 virtual void defaultEventHandler(Event*) override; | 261 virtual void defaultEventHandler(Event*) override; |
259 | 262 |
260 private: | 263 private: |
261 enum AutoCompleteSetting { Uninitialized, On, Off }; | 264 enum AutoCompleteSetting { Uninitialized, On, Off }; |
262 | 265 |
263 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final; | 266 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final; |
264 virtual void willAddFirstAuthorShadowRoot() override final; | 267 virtual void willAddFirstAuthorShadowRoot() override final; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 void setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<ListAttributeTarg
etObserver>); | 344 void setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<ListAttributeTarg
etObserver>); |
342 void resetListAttributeTargetObserver(); | 345 void resetListAttributeTargetObserver(); |
343 void parseMaxLengthAttribute(const AtomicString&); | 346 void parseMaxLengthAttribute(const AtomicString&); |
344 void parseMinLengthAttribute(const AtomicString&); | 347 void parseMinLengthAttribute(const AtomicString&); |
345 void updateValueIfNeeded(); | 348 void updateValueIfNeeded(); |
346 | 349 |
347 // Returns null if this isn't associated with any radio button group. | 350 // Returns null if this isn't associated with any radio button group. |
348 RadioButtonGroupScope* radioButtonGroupScope() const; | 351 RadioButtonGroupScope* radioButtonGroupScope() const; |
349 void addToRadioButtonGroup(); | 352 void addToRadioButtonGroup(); |
350 void removeFromRadioButtonGroup(); | 353 void removeFromRadioButtonGroup(); |
351 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | |
352 virtual PassRefPtr<RenderStyle> customStyleForRenderer() override; | 354 virtual PassRefPtr<RenderStyle> customStyleForRenderer() override; |
353 #endif | |
354 | 355 |
355 virtual bool shouldDispatchFormControlChangeEvent(String&, String&) override
; | 356 virtual bool shouldDispatchFormControlChangeEvent(String&, String&) override
; |
356 | 357 |
357 AtomicString m_name; | 358 AtomicString m_name; |
358 String m_valueIfDirty; | 359 String m_valueIfDirty; |
359 String m_suggestedValue; | 360 String m_suggestedValue; |
360 int m_size; | 361 int m_size; |
361 int m_maxLength; | 362 int m_maxLength; |
362 int m_minLength; | 363 int m_minLength; |
363 short m_maxResults; | 364 short m_maxResults; |
(...skipping 15 matching lines...) Expand all Loading... |
379 // The ImageLoader must be owned by this element because the loader code ass
umes | 380 // 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 | 381 // 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. | 382 // the ImageInput object we may delete the loader while this element lives o
n. |
382 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 383 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
383 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; | 384 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve
r; |
384 }; | 385 }; |
385 | 386 |
386 } // namespace blink | 387 } // namespace blink |
387 | 388 |
388 #endif // HTMLInputElement_h | 389 #endif // HTMLInputElement_h |
OLD | NEW |