OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 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 UI_SHELL_DIALOGS_LINUX_UI_SHELL_DIALOG_H_ | |
6 #define UI_SHELL_DIALOGS_LINUX_UI_SHELL_DIALOG_H_ | |
7 | |
8 #include "ui/base/linux_ui.h" | |
9 #include "ui/shell_dialogs/select_file_dialog.h" | |
10 #include "ui/shell_dialogs/shell_dialogs_export.h" | |
11 | |
12 namespace ui { | |
13 // This subclass of the base LinuxUI class provides a way for subclasses to | |
14 // override the CreateSelectFileDialog function declared here to return | |
15 // native file dialogs. | |
16 class SHELL_DIALOGS_EXPORT LinuxUIShellDialog : public ui::LinuxUI { | |
17 public: | |
18 virtual ~LinuxUIShellDialog() {} | |
19 | |
20 // Returns a native file selection dialog. | |
21 virtual SelectFileDialog* CreateSelectFileDialog( | |
22 SelectFileDialog::Listener* listener, | |
23 SelectFilePolicy* policy) const = 0; | |
24 }; | |
25 | |
26 } // namespace ui | |
27 | |
28 #endif // UI_SHELL_DIALOGS_LINUX_UI_SHELL_DIALOG_H_ | |
29 | |
OLD | NEW |