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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_
6 #define CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11
12 namespace ui {
13 struct SelectedFileInfo;
14 }
15
16 class SelectFileDialogExtension {
17 public:
18 // Routes callback to appropriate SelectFileDialog::Listener based on
19 // the owning |tab_id|.
20 static void OnFileSelected(int32 tab_id,
21 const ui::SelectedFileInfo& file,
22 int index);
23
24 static void OnMultiFilesSelected(
25 int32 tab_id,
26 const std::vector<ui::SelectedFileInfo>& files);
27
28 static void OnFileSelectionCanceled(int32 tab_id);
29
30 private:
31 DISALLOW_IMPLICIT_CONSTRUCTORS(SelectFileDialogExtension);
32 };
33
34 #endif // CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_
OLDNEW
« 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