OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const String path; | 49 const String path; |
50 const String displayName; | 50 const String displayName; |
51 }; | 51 }; |
52 | 52 |
53 struct FileChooserSettings { | 53 struct FileChooserSettings { |
54 bool allowsMultipleFiles; | 54 bool allowsMultipleFiles; |
55 bool allowsDirectoryUpload; | 55 bool allowsDirectoryUpload; |
56 Vector<String> acceptMIMETypes; | 56 Vector<String> acceptMIMETypes; |
57 Vector<String> acceptFileExtensions; | 57 Vector<String> acceptFileExtensions; |
58 Vector<String> selectedFiles; | 58 Vector<String> selectedFiles; |
59 #if ENABLE(MEDIA_CAPTURE) | |
60 bool useMediaCapture; | 59 bool useMediaCapture; |
61 #endif | |
62 | 60 |
63 // Returns a combined vector of acceptMIMETypes and acceptFileExtensions. | 61 // Returns a combined vector of acceptMIMETypes and acceptFileExtensions. |
64 Vector<String> PLATFORM_EXPORT acceptTypes() const; | 62 Vector<String> PLATFORM_EXPORT acceptTypes() const; |
65 }; | 63 }; |
66 | 64 |
67 class PLATFORM_EXPORT FileChooserClient { | 65 class PLATFORM_EXPORT FileChooserClient { |
68 public: | 66 public: |
69 virtual void filesChosen(const Vector<FileChooserFileInfo>&) = 0; | 67 virtual void filesChosen(const Vector<FileChooserFileInfo>&) = 0; |
70 virtual ~FileChooserClient(); | 68 virtual ~FileChooserClient(); |
71 | 69 |
(...skipping 24 matching lines...) Expand all Loading... |
96 private: | 94 private: |
97 FileChooser(FileChooserClient*, const FileChooserSettings&); | 95 FileChooser(FileChooserClient*, const FileChooserSettings&); |
98 | 96 |
99 FileChooserClient* m_client; | 97 FileChooserClient* m_client; |
100 FileChooserSettings m_settings; | 98 FileChooserSettings m_settings; |
101 }; | 99 }; |
102 | 100 |
103 } // namespace WebCore | 101 } // namespace WebCore |
104 | 102 |
105 #endif // FileChooser_h | 103 #endif // FileChooser_h |
OLD | NEW |