diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-26 17:48:22 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-26 17:48:22 +0000 |
commit | 5a65bc166f794c6734e2f71aed4c280da49c9afa (patch) | |
tree | 5a6d122b189ef357807984ea4b00efb3847a3a2d /content/public | |
parent | 946792581ad09f3a725b2aa1920dd020e6188092 (diff) | |
download | chromium_src-5a65bc166f794c6734e2f71aed4c280da49c9afa.zip chromium_src-5a65bc166f794c6734e2f71aed4c280da49c9afa.tar.gz chromium_src-5a65bc166f794c6734e2f71aed4c280da49c9afa.tar.bz2 |
Revert 144199 - win_aura failure -Start consolidating non-port specific code to ui/base/dialogs.
This moves content::SelectedFileInfo (what the select dialog outputs) and
BaseShellDialog to ui/base/dialogs/.
(This was split off from https://chromiumcodereview.appspot.com/10667026/
because that patch is getting huge.)
BUG=134529
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10669023
TBR=erg@google.com
Review URL: https://chromiumcodereview.appspot.com/10666056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144202 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/browser/render_view_host.h | 7 | ||||
-rw-r--r-- | content/public/common/selected_file_info.h | 39 |
2 files changed, 41 insertions, 5 deletions
diff --git a/content/public/browser/render_view_host.h b/content/public/browser/render_view_host.h index 14226ea..401fe0e 100644 --- a/content/public/browser/render_view_host.h +++ b/content/public/browser/render_view_host.h @@ -25,10 +25,6 @@ namespace gfx { class Point; } -namespace ui { -struct SelectedFileInfo; -} - namespace WebKit { struct WebFindOptions; struct WebMediaPlayerAction; @@ -42,6 +38,7 @@ class RenderViewHostDelegate; class SessionStorageNamespace; class SiteInstance; struct CustomContextMenuContext; +struct SelectedFileInfo; // A RenderViewHost is responsible for creating and talking to a RenderView // object in a child process. It exposes a high level API to users, for things @@ -209,7 +206,7 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost { // base::PlatformFileFlags enum which specify which file permissions should // be granted to the renderer. virtual void FilesSelectedInChooser( - const std::vector<ui::SelectedFileInfo>& files, + const std::vector<SelectedFileInfo>& files, int permissions) = 0; virtual RenderViewHostDelegate* GetDelegate() const = 0; diff --git a/content/public/common/selected_file_info.h b/content/public/common/selected_file_info.h new file mode 100644 index 0000000..124a22b --- /dev/null +++ b/content/public/common/selected_file_info.h @@ -0,0 +1,39 @@ +// Copyright (c) 2012 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_SELECTED_FILE_INFO_H_ +#define CONTENT_PUBLIC_COMMON_SELECTED_FILE_INFO_H_ +#pragma once + +#include <vector> + +#include "base/file_path.h" +#include "base/string16.h" +#include "content/common/content_export.h" + +namespace content { + +// Struct used for passing selected file info to WebKit. +struct CONTENT_EXPORT SelectedFileInfo { + // The real path to the selected file. This can be a snapshot file with a + // human unreadable name like /blah/.d41d8cd98f00b204e9800998ecf8427e. + FilePath path; + + // This field is optional. The display name contains only the base name + // portion of a file name (ex. no path separators), and used for displaying + // selected file names. If this field is empty, the base name portion of + // |path| is used for displaying. + FilePath::StringType display_name; + + SelectedFileInfo() {} + SelectedFileInfo(const FilePath& in_path, + const FilePath::StringType& in_display_name) + : path(in_path), + display_name(in_display_name) { + } +}; + +} // namespace content + +#endif // CONTENT_PUBLIC_COMMON_SELECTED_FILE_INFO_H_ |