Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(821)

Side by Side Diff: Source/WebCore/html/HTMLInputElement.h

Issue 12573007: Merge 145423 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698