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 17 matching lines...) Expand all Loading... |
28 #include "FileChooser.h" | 28 #include "FileChooser.h" |
29 #include "HTMLTextFormControlElement.h" | 29 #include "HTMLTextFormControlElement.h" |
30 #include "StepRange.h" | 30 #include "StepRange.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class CheckedRadioButtons; | 34 class CheckedRadioButtons; |
35 class DragData; | 35 class DragData; |
36 class FileList; | 36 class FileList; |
37 class HTMLDataListElement; | 37 class HTMLDataListElement; |
| 38 class HTMLImageLoader; |
38 class HTMLOptionElement; | 39 class HTMLOptionElement; |
39 class Icon; | 40 class Icon; |
40 class InputType; | 41 class InputType; |
41 class KURL; | 42 class KURL; |
42 class ListAttributeTargetObserver; | 43 class ListAttributeTargetObserver; |
43 struct DateTimeChooserParameters; | 44 struct DateTimeChooserParameters; |
44 | 45 |
45 class HTMLInputElement : public HTMLTextFormControlElement { | 46 class HTMLInputElement : public HTMLTextFormControlElement { |
46 public: | 47 public: |
47 static PassRefPtr<HTMLInputElement> create(const QualifiedName&, Document*,
HTMLFormElement*, bool createdByParser); | 48 static PassRefPtr<HTMLInputElement> create(const QualifiedName&, Document*,
HTMLFormElement*, bool createdByParser); |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 287 |
287 void endEditing(); | 288 void endEditing(); |
288 | 289 |
289 static Vector<FileChooserFileInfo> filesFromFileInputFormControlState(const
FormControlState&); | 290 static Vector<FileChooserFileInfo> filesFromFileInputFormControlState(const
FormControlState&); |
290 | 291 |
291 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE; | 292 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE; |
292 virtual bool matchesReadWritePseudoClass() const OVERRIDE; | 293 virtual bool matchesReadWritePseudoClass() const OVERRIDE; |
293 virtual void setRangeText(const String& replacement, ExceptionCode&) OVERRID
E; | 294 virtual void setRangeText(const String& replacement, ExceptionCode&) OVERRID
E; |
294 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionCode&) OVERRIDE; | 295 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionCode&) OVERRIDE; |
295 | 296 |
| 297 bool hasImageLoader() const { return m_imageLoader; } |
| 298 HTMLImageLoader* imageLoader(); |
| 299 |
296 #if ENABLE(DATE_AND_TIME_INPUT_TYPES) | 300 #if ENABLE(DATE_AND_TIME_INPUT_TYPES) |
297 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); | 301 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); |
298 #endif | 302 #endif |
299 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 303 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
300 | 304 |
301 protected: | 305 protected: |
302 HTMLInputElement(const QualifiedName&, Document*, HTMLFormElement*, bool cre
atedByParser); | 306 HTMLInputElement(const QualifiedName&, Document*, HTMLFormElement*, bool cre
atedByParser); |
303 | 307 |
304 virtual void defaultEventHandler(Event*); | 308 virtual void defaultEventHandler(Event*); |
305 | 309 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 #endif | 426 #endif |
423 bool m_stateRestored : 1; | 427 bool m_stateRestored : 1; |
424 bool m_parsingInProgress : 1; | 428 bool m_parsingInProgress : 1; |
425 bool m_valueAttributeWasUpdatedAfterParsing : 1; | 429 bool m_valueAttributeWasUpdatedAfterParsing : 1; |
426 bool m_wasModifiedByUser : 1; | 430 bool m_wasModifiedByUser : 1; |
427 bool m_canReceiveDroppedFiles : 1; | 431 bool m_canReceiveDroppedFiles : 1; |
428 #if ENABLE(TOUCH_EVENTS) | 432 #if ENABLE(TOUCH_EVENTS) |
429 bool m_hasTouchEventHandler : 1; | 433 bool m_hasTouchEventHandler : 1; |
430 #endif | 434 #endif |
431 OwnPtr<InputType> m_inputType; | 435 OwnPtr<InputType> m_inputType; |
| 436 // The ImageLoader must be owned by this element because the loader code ass
umes |
| 437 // that it lives as long as its owning element lives. If we move the loader
into |
| 438 // the ImageInput object we may delete the loader while this element lives o
n. |
| 439 OwnPtr<HTMLImageLoader> m_imageLoader; |
432 #if ENABLE(DATALIST_ELEMENT) | 440 #if ENABLE(DATALIST_ELEMENT) |
433 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver; | 441 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver; |
434 #endif | 442 #endif |
435 }; | 443 }; |
436 | 444 |
437 } //namespace | 445 } //namespace |
438 #endif | 446 #endif |
OLD | NEW |