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

Unified Diff: chrome/browser/ui/select_file_dialog_extension.h

Issue 10798011: views: Add a cross-platform SelectFileDialogExtension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years, 5 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/ui/select_file_dialog_extension.h
diff --git a/chrome/browser/ui/select_file_dialog_extension.h b/chrome/browser/ui/select_file_dialog_extension.h
new file mode 100644
index 0000000000000000000000000000000000000000..f59d8f8183e6ab2d1fb6a52eb9359ca11caf7e8d
--- /dev/null
+++ b/chrome/browser/ui/select_file_dialog_extension.h
@@ -0,0 +1,34 @@
+// 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 CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_
+#define CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+
+namespace ui {
+struct SelectedFileInfo;
+}
+
+class SelectFileDialogExtension {
+ public:
+ // Routes callback to appropriate SelectFileDialog::Listener based on
+ // the owning |tab_id|.
+ static void OnFileSelected(int32 tab_id,
+ const ui::SelectedFileInfo& file,
+ int index);
+
+ static void OnMultiFilesSelected(
+ int32 tab_id,
+ const std::vector<ui::SelectedFileInfo>& files);
+
+ static void OnFileSelectionCanceled(int32 tab_id);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(SelectFileDialogExtension);
+};
+
+#endif // CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_
« no previous file with comments | « chrome/browser/ui/browser_list.h ('k') | chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698