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

Side by Side Diff: Source/core/platform/FileChooser.h

Issue 15015006: HTML Media Capture: Update implementation, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const String displayName; 49 const String displayName;
50 }; 50 };
51 51
52 struct FileChooserSettings { 52 struct FileChooserSettings {
53 bool allowsMultipleFiles; 53 bool allowsMultipleFiles;
54 bool allowsDirectoryUpload; 54 bool allowsDirectoryUpload;
55 Vector<String> acceptMIMETypes; 55 Vector<String> acceptMIMETypes;
56 Vector<String> acceptFileExtensions; 56 Vector<String> acceptFileExtensions;
57 Vector<String> selectedFiles; 57 Vector<String> selectedFiles;
58 #if ENABLE(MEDIA_CAPTURE) 58 #if ENABLE(MEDIA_CAPTURE)
59 String capture; 59 bool capture;
60 #endif 60 #endif
61 61
62 // Returns a combined vector of acceptMIMETypes and acceptFileExtensions. 62 // Returns a combined vector of acceptMIMETypes and acceptFileExtensions.
63 Vector<String> acceptTypes() const; 63 Vector<String> acceptTypes() const;
64 }; 64 };
65 65
66 class FileChooserClient { 66 class FileChooserClient {
67 public: 67 public:
68 virtual void filesChosen(const Vector<FileChooserFileInfo>&) = 0; 68 virtual void filesChosen(const Vector<FileChooserFileInfo>&) = 0;
69 virtual ~FileChooserClient(); 69 virtual ~FileChooserClient();
(...skipping 25 matching lines...) Expand all
95 private: 95 private:
96 FileChooser(FileChooserClient*, const FileChooserSettings&); 96 FileChooser(FileChooserClient*, const FileChooserSettings&);
97 97
98 FileChooserClient* m_client; 98 FileChooserClient* m_client;
99 FileChooserSettings m_settings; 99 FileChooserSettings m_settings;
100 }; 100 };
101 101
102 } // namespace WebCore 102 } // namespace WebCore
103 103
104 #endif // FileChooser_h 104 #endif // FileChooser_h
OLDNEW
« Source/core/html/HTMLInputElement.h ('K') | « Source/core/html/HTMLInputElement.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698