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

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

Issue 10414085: Modified the pepper file chooser API to support filtering files by extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 Mode mode; 37 Mode mode;
38 38
39 // Title to be used for the dialog. This may be empty for the default title, 39 // Title to be used for the dialog. This may be empty for the default title,
40 // which will be either "Open" or "Save" depending on the mode. 40 // which will be either "Open" or "Save" depending on the mode.
41 string16 title; 41 string16 title;
42 42
43 // Default file name to select in the dialog. 43 // Default file name to select in the dialog.
44 FilePath default_file_name; 44 FilePath default_file_name;
45 45
46 // A list of valid lower-cased MIME types specified in an input element. It is 46 // A list of valid lower-cased MIME types or file extensions specified in an
47 // used to restrict selectable files to such types. 47 // input element. It is used to restrict selectable files to such types.
48 std::vector<string16> accept_types; 48 std::vector<string16> accept_types;
49 }; 49 };
50 50
51 } // namespace content 51 } // namespace content
52 52
53 #endif // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_ 53 #endif // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698