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

Side by Side Diff: content/public/common/file_chooser_params.h

Issue 2735633004: HTML Media Capture: update capture attribute to use string. (Closed)
Patch Set: Fix for android webview 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ 6 #define CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 base::FilePath default_file_name; 46 base::FilePath default_file_name;
47 47
48 // A list of valid lower-cased MIME types or file extensions specified in an 48 // A list of valid lower-cased MIME types or file extensions specified in an
49 // input element. It is used to restrict selectable files to such types. 49 // input element. It is used to restrict selectable files to such types.
50 std::vector<base::string16> accept_types; 50 std::vector<base::string16> accept_types;
51 51
52 // Whether the caller needs native file path or not. 52 // Whether the caller needs native file path or not.
53 bool need_local_path; 53 bool need_local_path;
54 54
55 #if defined(OS_ANDROID) 55 #if defined(OS_ANDROID)
56 // See http://www.w3.org/TR/html-media-capture for more information. 56 // See https://w3c.github.io/html-media-capture/#dom-htmlinputelement-capture
57 // If true, the data should be obtained using the device's camera/mic/etc. 57 // for more information.
58 bool capture; 58 base::string16 capture;
59 #endif 59 #endif
60 60
61 // If non-empty, represents the URL of the requestor if the request was 61 // If non-empty, represents the URL of the requestor if the request was
62 // initiated by a document. Note that this value should be considered 62 // initiated by a document. Note that this value should be considered
63 // untrustworthy since it is specified by the sandbox and not validated. 63 // untrustworthy since it is specified by the sandbox and not validated.
64 GURL requestor; 64 GURL requestor;
65 }; 65 };
66 66
67 } // namespace content 67 } // namespace content
68 68
69 #endif // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ 69 #endif // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698