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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/file_chooser_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/file_chooser_params.h
===================================================================
--- content/public/common/file_chooser_params.h (revision 0)
+++ content/public/common/file_chooser_params.h (revision 0)
@@ -0,0 +1,53 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
+#define CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
+#pragma once
+
+#include <vector>
+
+#include "base/file_path.h"
+#include "base/string16.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Struct used by TabContentsDelegate.
+struct CONTENT_EXPORT FileChooserParams {
+ FileChooserParams();
+ ~FileChooserParams();
+
+ enum Mode {
+ // Requires that the file exists before allowing the user to pick it.
+ Open,
+
+ // Like Open, but allows picking multiple files to open.
+ OpenMultiple,
+
+ // Like Open, but selects a folder.
+ OpenFolder,
+
+ // Allows picking a nonexistent file, and prompts to overwrite if the file
+ // already exists.
+ Save,
+ };
+
+ Mode mode;
+
+ // Title to be used for the dialog. This may be empty for the default title,
+ // which will be either "Open" or "Save" depending on the mode.
+ string16 title;
+
+ // Default file name to select in the dialog.
+ FilePath default_file_name;
+
+ // A list of valid lower-cased MIME types specified in an input element. It is
+ // used to restrict selectable files to such types.
+ std::vector<string16> accept_types;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_PARAMS_H_
Property changes on: content\public\common\file_chooser_params.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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