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