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

Side by Side Diff: third_party/WebKit/Source/platform/FileChooser.h

Issue 2735633004: HTML Media Capture: update capture attribute to use string. (Closed)
Patch Set: Fix comments Created 3 years, 7 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698