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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const FileMetadata metadata; | 59 const FileMetadata metadata; |
60 }; | 60 }; |
61 | 61 |
62 struct FileChooserSettings { | 62 struct FileChooserSettings { |
63 DISALLOW_NEW(); | 63 DISALLOW_NEW(); |
64 bool allows_multiple_files; | 64 bool allows_multiple_files; |
65 bool allows_directory_upload; | 65 bool allows_directory_upload; |
66 Vector<String> accept_mime_types; | 66 Vector<String> accept_mime_types; |
67 Vector<String> accept_file_extensions; | 67 Vector<String> accept_file_extensions; |
68 Vector<String> selected_files; | 68 Vector<String> selected_files; |
69 bool use_media_capture; | 69 String capture; |
70 | 70 |
71 // Returns a combined vector of acceptMIMETypes and acceptFileExtensions. | 71 // Returns a combined vector of acceptMIMETypes and acceptFileExtensions. |
72 Vector<String> PLATFORM_EXPORT AcceptTypes() const; | 72 Vector<String> PLATFORM_EXPORT AcceptTypes() const; |
73 }; | 73 }; |
74 | 74 |
75 class PLATFORM_EXPORT FileChooserClient { | 75 class PLATFORM_EXPORT FileChooserClient { |
76 public: | 76 public: |
77 virtual void FilesChosen(const Vector<FileChooserFileInfo>&) = 0; | 77 virtual void FilesChosen(const Vector<FileChooserFileInfo>&) = 0; |
78 virtual ~FileChooserClient(); | 78 virtual ~FileChooserClient(); |
79 | 79 |
(...skipping 23 matching lines...) Expand all Loading... |
103 private: | 103 private: |
104 FileChooser(FileChooserClient*, const FileChooserSettings&); | 104 FileChooser(FileChooserClient*, const FileChooserSettings&); |
105 | 105 |
106 FileChooserClient* client_; | 106 FileChooserClient* client_; |
107 FileChooserSettings settings_; | 107 FileChooserSettings settings_; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
111 | 111 |
112 #endif // FileChooser_h | 112 #endif // FileChooser_h |
OLD | NEW |