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

Unified Diff: chrome/browser/tab_contents/tab_contents.h

Issue 2825051: Add support for a directory file chooser command, which creates a file list b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/tab_contents.h
===================================================================
--- chrome/browser/tab_contents/tab_contents.h (revision 57114)
+++ chrome/browser/tab_contents/tab_contents.h (working copy)
@@ -25,7 +25,6 @@
#include "chrome/browser/find_notification_details.h"
#include "chrome/browser/jsmessage_box_client.h"
#include "chrome/browser/password_manager/password_manager_delegate.h"
-#include "chrome/browser/shell_dialogs.h"
#include "chrome/browser/renderer_host/render_view_host_delegate.h"
#include "chrome/browser/tab_contents/constrained_window.h"
#include "chrome/browser/tab_contents/language_state.h"
@@ -79,13 +78,13 @@
class SkBitmap;
class TabContents;
class TabContentsDelegate;
+class TabContentsFileSelectHelper;
class TabContentsSSLHelper;
class TabContentsView;
class URLPattern;
struct ThumbnailScore;
struct ViewHostMsg_DomMessage_Params;
struct ViewHostMsg_FrameNavigate_Params;
-struct ViewHostMsg_RunFileChooser_Params;
struct WebPreferences;
// Describes what goes in the main content area of a tab. TabContents is
@@ -96,7 +95,6 @@
public RenderViewHostDelegate::BrowserIntegration,
public RenderViewHostDelegate::Resource,
public RenderViewHostManager::Delegate,
- public SelectFileDialog::Listener,
public JavaScriptMessageBoxClient,
public ImageLoadingTracker::Observer,
public PasswordManagerDelegate,
@@ -156,7 +154,7 @@
// Returns the PluginInstaller, creating it if necessary.
PluginInstaller* GetPluginInstaller();
- // Returns the TabContentsSSLHelper, creating if it necessary.
+ // Returns the TabContentsSSLHelper, creating it if necessary.
TabContentsSSLHelper* GetSSLHelper();
// Returns the MatchPreview. Returns NULL if MatchPreview is not enabled.
@@ -887,6 +885,7 @@
virtual RenderViewHostDelegate::AutoFill* GetAutoFillDelegate();
virtual RenderViewHostDelegate::BlockedPlugin* GetBlockedPluginDelegate();
virtual RenderViewHostDelegate::SSL* GetSSLDelegate();
+ virtual RenderViewHostDelegate::FileSelect* GetFileSelectDelegate();
virtual AutomationResourceRoutingDelegate*
GetAutomationResourceRoutingDelegate();
virtual TabContents* GetAsTabContents();
@@ -925,7 +924,6 @@
virtual void ProcessExternalHostMessage(const std::string& message,
const std::string& origin,
const std::string& target);
- virtual void RunFileChooser(const ViewHostMsg_RunFileChooser_Params& params);
virtual void RunJavaScriptMessage(const std::wstring& message,
const std::wstring& default_prompt,
const GURL& frame_url,
@@ -961,13 +959,6 @@
virtual void FocusedNodeChanged();
virtual void SetDisplayingPDFContent();
- // SelectFileDialog::Listener ------------------------------------------------
-
- virtual void FileSelected(const FilePath& path, int index, void* params);
- virtual void MultiFilesSelected(const std::vector<FilePath>& files,
- void* params);
- virtual void FileSelectionCanceled(void* params);
-
// RenderViewHostManager::Delegate -------------------------------------------
// Blocks/unblocks interaction with renderer process.
@@ -1062,15 +1053,15 @@
// BlockedPluginManager, lazily created.
scoped_ptr<BlockedPluginManager> blocked_plugin_manager_;
+ // TabContentsFileSelectHelper, lazily created.
+ scoped_ptr<TabContentsFileSelectHelper> file_select_helper_;
+
// Handles drag and drop event forwarding to extensions.
BookmarkDrag* bookmark_drag_;
// Handles downloading favicons.
FavIconHelper fav_icon_helper_;
- // Dialog box used for choosing files to upload from file form fields.
- scoped_refptr<SelectFileDialog> select_file_dialog_;
-
// Cached web app info data.
webkit_glue::WebApplicationInfo web_app_info_;
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698