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

Side by Side Diff: Source/WebKit/chromium/public/WebFileChooserParams.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) 2010, 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010, 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebFileChooserParams_h 31 #ifndef WebFileChooserParams_h
32 #define WebFileChooserParams_h 32 #define WebFileChooserParams_h
33 33
34 #define NEW_MEDIA_CAPTURE_IMPLEMENTATION
35
34 #include "../../../Platform/chromium/public/WebString.h" 36 #include "../../../Platform/chromium/public/WebString.h"
35 #include "../../../Platform/chromium/public/WebVector.h" 37 #include "../../../Platform/chromium/public/WebVector.h"
36 #include "WebFileChooserCompletion.h" 38 #include "WebFileChooserCompletion.h"
37 39
38 namespace WebKit { 40 namespace WebKit {
39 41
40 struct WebFileChooserParams { 42 struct WebFileChooserParams {
41 // If |multiSelect| is true, the dialog allows the user to select multiple f iles. 43 // If |multiSelect| is true, the dialog allows the user to select multiple f iles.
42 bool multiSelect; 44 bool multiSelect;
43 // If |directory| is true, the dialog allows the user to select a directory. 45 // If |directory| is true, the dialog allows the user to select a directory.
(...skipping 14 matching lines...) Expand all
58 // it contains only lower-cased MIME type strings and file extensions. 60 // it contains only lower-cased MIME type strings and file extensions.
59 WebVector<WebString> acceptTypes; 61 WebVector<WebString> acceptTypes;
60 // |selectedFiles| has filenames which a file upload control already selecte d. 62 // |selectedFiles| has filenames which a file upload control already selecte d.
61 // A WebViewClient implementation may ask a user to select 63 // A WebViewClient implementation may ask a user to select
62 // - removing a file from the selected files, 64 // - removing a file from the selected files,
63 // - appending other files, or 65 // - appending other files, or
64 // - replacing with other files 66 // - replacing with other files
65 // before opening a file chooser dialog. 67 // before opening a file chooser dialog.
66 WebVector<WebString> selectedFiles; 68 WebVector<WebString> selectedFiles;
67 // See http://www.w3.org/TR/html-media-capture/ for the semantics of the 69 // See http://www.w3.org/TR/html-media-capture/ for the semantics of the
68 // capture attribute. This string will either be empty (meaning the feature 70 // capture attribute. If |capture| is true, the media types indicated in
69 // is disabled) or one of the following values: 71 // |acceptTypes| should be obtained from the device's environment using a
70 // - filesystem (default) 72 // media capture mechanism.
71 // - camera 73 bool capture;
72 // - camcorder
73 // - microphone
74 WebString capture;
75 74
76 WebFileChooserParams() 75 WebFileChooserParams()
77 : multiSelect(false) 76 : multiSelect(false)
78 , directory(false) 77 , directory(false)
79 , saveAs(false) 78 , saveAs(false)
79 , capture(false)
80 { 80 {
81 } 81 }
82 }; 82 };
83 83
84 } // namespace WebKit 84 } // namespace WebKit
85 85
86 #endif 86 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698