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

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

Issue 8622005: Get rid of view_messages.h include from chrome since TabContentsDelegate used a struct from it (V... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « content/content_common.gypi ('k') | content/public/common/file_chooser_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
7 #pragma once
8
9 #include <vector>
10
11 #include "base/file_path.h"
12 #include "base/string16.h"
13 #include "content/common/content_export.h"
14
15 namespace content {
16
17 // Struct used by TabContentsDelegate.
18 struct CONTENT_EXPORT FileChooserParams {
19 FileChooserParams();
20 ~FileChooserParams();
21
22 enum Mode {
23 // Requires that the file exists before allowing the user to pick it.
24 Open,
25
26 // Like Open, but allows picking multiple files to open.
27 OpenMultiple,
28
29 // Like Open, but selects a folder.
30 OpenFolder,
31
32 // Allows picking a nonexistent file, and prompts to overwrite if the file
33 // already exists.
34 Save,
35 };
36
37 Mode mode;
38
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.
41 string16 title;
42
43 // Default file name to select in the dialog.
44 FilePath default_file_name;
45
46 // A list of valid lower-cased MIME types specified in an input element. It is
47 // used to restrict selectable files to such types.
48 std::vector<string16> accept_types;
49 };
50
51 } // namespace content
52
53 #endif // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/file_chooser_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698