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

Side by Side Diff: third_party/WebKit/public/web/WebFileChooserParams.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) 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // This list comes from an 'accept' attribute value of an INPUT element, and 56 // This list comes from an 'accept' attribute value of an INPUT element, and
57 // it contains only lower-cased MIME type strings and file extensions. 57 // it contains only lower-cased MIME type strings and file extensions.
58 WebVector<WebString> accept_types; 58 WebVector<WebString> accept_types;
59 // |selectedFiles| has filenames which a file upload control already selected. 59 // |selectedFiles| has filenames which a file upload control already selected.
60 // A WebViewClient implementation may ask a user to select 60 // A WebViewClient implementation may ask a user to select
61 // - removing a file from the selected files, 61 // - removing a file from the selected files,
62 // - appending other files, or 62 // - appending other files, or
63 // - replacing with other files 63 // - replacing with other files
64 // before opening a file chooser dialog. 64 // before opening a file chooser dialog.
65 WebVector<WebString> selected_files; 65 WebVector<WebString> selected_files;
66 // See http://www.w3.org/TR/html-media-capture/ for the semantics of the 66 // https://w3c.github.io/html-media-capture/#dom-htmlinputelement-capture.
67 // capture attribute. If |useMediaCapture| is true, the media types
68 // indicated in |acceptTypes| should be obtained from the device's
69 // environment using a media capture mechanism. |capture| is deprecated and
70 // provided for compatibility reasons.
71 WebString capture; 67 WebString capture;
72 bool use_media_capture;
73 // Whether WebFileChooserCompletion needs local paths or not. If the result 68 // Whether WebFileChooserCompletion needs local paths or not. If the result
74 // of file chooser is handled by the implementation of 69 // of file chooser is handled by the implementation of
75 // WebFileChooserCompletion that can handle files without local paths, 70 // WebFileChooserCompletion that can handle files without local paths,
76 // 'false' should be specified to the flag. 71 // 'false' should be specified to the flag.
77 bool need_local_path; 72 bool need_local_path;
78 // If non-empty, represents the URL of the requestor if the request was 73 // If non-empty, represents the URL of the requestor if the request was
79 // initiated by a document. 74 // initiated by a document.
80 WebURL requestor; 75 WebURL requestor;
81 76
82 WebFileChooserParams() 77 WebFileChooserParams()
83 : multi_select(false), 78 : multi_select(false),
84 directory(false), 79 directory(false),
85 save_as(false), 80 save_as(false),
86 use_media_capture(false),
87 need_local_path(true) {} 81 need_local_path(true) {}
88 }; 82 };
89 83
90 } // namespace blink 84 } // namespace blink
91 85
92 #endif 86 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698