| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 #include "core/html/forms/BaseClickableWithKeyInputType.h" | 35 #include "core/html/forms/BaseClickableWithKeyInputType.h" |
| 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 FINAL : public BaseClickableWithKeyInputType, private FileCh
ooserClient { |
| 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; |
| (...skipping 22 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 |