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

Side by Side Diff: Source/core/html/forms/FileInputType.h

Issue 27746003: Have InputType factories take an HTMLInputElement reference in parameter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/forms/EmailInputType.cpp ('k') | Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 25 matching lines...) Expand all
36 #include "platform/FileChooser.h" 36 #include "platform/FileChooser.h"
37 #include "wtf/RefPtr.h" 37 #include "wtf/RefPtr.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class DragData; 41 class DragData;
42 class FileList; 42 class FileList;
43 43
44 class FileInputType : public BaseClickableWithKeyInputType, private FileChooserC lient { 44 class FileInputType : public BaseClickableWithKeyInputType, private FileChooserC lient {
45 public: 45 public:
46 static PassRefPtr<InputType> create(HTMLInputElement*); 46 static PassRefPtr<InputType> create(HTMLInputElement&);
47 static Vector<FileChooserFileInfo> filesFromFormControlState(const FormContr olState&); 47 static Vector<FileChooserFileInfo> filesFromFormControlState(const FormContr olState&);
48 48
49 private: 49 private:
50 FileInputType(HTMLInputElement*); 50 FileInputType(HTMLInputElement&);
51 virtual const AtomicString& formControlType() const OVERRIDE; 51 virtual const AtomicString& formControlType() const OVERRIDE;
52 virtual FormControlState saveFormControlState() const OVERRIDE; 52 virtual FormControlState saveFormControlState() const OVERRIDE;
53 virtual void restoreFormControlState(const FormControlState&) OVERRIDE; 53 virtual void restoreFormControlState(const FormControlState&) OVERRIDE;
54 virtual bool appendFormData(FormDataList&, bool) const OVERRIDE; 54 virtual bool appendFormData(FormDataList&, bool) const OVERRIDE;
55 virtual bool valueMissing(const String&) const OVERRIDE; 55 virtual bool valueMissing(const String&) const OVERRIDE;
56 virtual String valueMissingText() const OVERRIDE; 56 virtual String valueMissingText() const OVERRIDE;
57 virtual void handleDOMActivateEvent(Event*) OVERRIDE; 57 virtual void handleDOMActivateEvent(Event*) OVERRIDE;
58 virtual RenderObject* createRenderer(RenderStyle*) const OVERRIDE; 58 virtual RenderObject* createRenderer(RenderStyle*) const OVERRIDE;
59 virtual bool canSetStringValue() const OVERRIDE; 59 virtual bool canSetStringValue() const OVERRIDE;
60 virtual FileList* files() OVERRIDE; 60 virtual FileList* files() OVERRIDE;
(...skipping 16 matching lines...) Expand all
77 void receiveDropForDirectoryUpload(const Vector<String>&); 77 void receiveDropForDirectoryUpload(const Vector<String>&);
78 78
79 RefPtr<FileList> m_fileList; 79 RefPtr<FileList> m_fileList;
80 80
81 String m_droppedFileSystemId; 81 String m_droppedFileSystemId;
82 }; 82 };
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
86 #endif // FileInputType_h 86 #endif // FileInputType_h
OLDNEW
« no previous file with comments | « Source/core/html/forms/EmailInputType.cpp ('k') | Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698