OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |