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

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 10332213: Re-enable <input type="file"> for platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/extensions/shell_window.cc
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index be97abdc24086bab77fd8fcf9cd88b176e987516..0e19687a3ea8b01d0d30ca24fc203da3be74ea71 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/intents/web_intents_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_id.h"
+#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/intents/web_intent_picker_controller.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/chrome_notification_types.h"
@@ -152,9 +153,6 @@ void ShellWindow::CloseContents(WebContents* contents) {
Close();
}
-// TODO(benwells): Rearrange so users of this can call
benwells 2012/05/17 00:46:46 Turns out some implementers of ShouldSuppressDialo
-// WebContents::set_should_suppress_dialogs(bool) instead of overriding
-// this delegate function.
bool ShellWindow::ShouldSuppressDialogs() {
return true;
}
@@ -172,6 +170,11 @@ void ShellWindow::WebIntentDispatch(
intents_dispatcher->GetIntent().type);
}
+void ShellWindow::RunFileChooser(WebContents* tab,
+ const content::FileChooserParams& params) {
+ Browser::RunFileChooserHelper(tab, params);
Mihai Parparita -not on Chrome 2012/05/17 00:51:44 Huh, Browser seems like an odd place for this help
benwells 2012/05/17 01:02:26 There are a bunch of helpers like this on Browser:
sky 2012/05/17 03:57:37 How about a static method on FileSelectHelper? And
+}
+
void ShellWindow::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698