OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // This file implements common select dialog functionality between GTK and KDE. | 5 // This file implements common select dialog functionality between GTK and KDE. |
6 | 6 |
7 #ifndef CHROME_BROWSER_UI_GTK_SELECT_FILE_DIALOG_IMPL_H_ | 7 #ifndef UI_BASE_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_ |
8 #define CHROME_BROWSER_UI_GTK_SELECT_FILE_DIALOG_IMPL_H_ | 8 #define UI_BASE_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/nix/xdg_util.h" | 13 #include "base/nix/xdg_util.h" |
14 #include "chrome/browser/ui/select_file_dialog.h" | 14 #include "ui/base/dialogs/select_file_dialog.h" |
| 15 |
| 16 namespace ui { |
15 | 17 |
16 // Shared implementation SelectFileDialog used by SelectFileDialogImplGTK | 18 // Shared implementation SelectFileDialog used by SelectFileDialogImplGTK |
17 class SelectFileDialogImpl : public SelectFileDialog { | 19 class SelectFileDialogImpl : public SelectFileDialog { |
18 public: | 20 public: |
19 // Factory method for creating a GTK-styled SelectFileDialogImpl | 21 // Factory method for creating a GTK-styled SelectFileDialogImpl |
20 static SelectFileDialogImpl* NewSelectFileDialogImplGTK( | 22 static SelectFileDialogImpl* NewSelectFileDialogImplGTK( |
21 Listener* listener, | 23 Listener* listener, |
22 ui::SelectFilePolicy* policy); | 24 ui::SelectFilePolicy* policy); |
23 // Factory method for creating a KDE-styled SelectFileDialogImpl | 25 // Factory method for creating a KDE-styled SelectFileDialogImpl |
24 static SelectFileDialogImpl* NewSelectFileDialogImplKDE( | 26 static SelectFileDialogImpl* NewSelectFileDialogImplKDE( |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 Type type_; | 72 Type type_; |
71 | 73 |
72 // These two variables track where the user last saved a file or opened a | 74 // These two variables track where the user last saved a file or opened a |
73 // file so that we can display future dialogs with the same starting path. | 75 // file so that we can display future dialogs with the same starting path. |
74 static FilePath* last_saved_path_; | 76 static FilePath* last_saved_path_; |
75 static FilePath* last_opened_path_; | 77 static FilePath* last_opened_path_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); | 79 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); |
78 }; | 80 }; |
79 | 81 |
80 #endif // CHROME_BROWSER_UI_GTK_SELECT_FILE_DIALOG_IMPL_H_ | 82 SelectFileDialog* CreateLinuxSelectFileDialog( |
| 83 SelectFileDialog::Listener* listener, |
| 84 SelectFilePolicy* policy); |
| 85 |
| 86 } // namespace ui |
| 87 |
| 88 #endif // UI_BASE_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_ |
OLD | NEW |