OLD | NEW |
(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_ |
OLD | NEW |