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_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_H_ | 7 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_H_ |
8 #define CHROME_BROWSER_UI_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_H_ | 8 #define CHROME_BROWSER_UI_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 21 matching lines...) Expand all Loading... |
32 static SelectFileDialogImpl* NewSelectFileDialogImplKDE( | 32 static SelectFileDialogImpl* NewSelectFileDialogImplKDE( |
33 Listener* listener, | 33 Listener* listener, |
34 ui::SelectFilePolicy* policy, | 34 ui::SelectFilePolicy* policy, |
35 base::nix::DesktopEnvironment desktop); | 35 base::nix::DesktopEnvironment desktop); |
36 | 36 |
37 // Returns true if the SelectFileDialog class returned by | 37 // Returns true if the SelectFileDialog class returned by |
38 // NewSelectFileDialogImplKDE will actually work. | 38 // NewSelectFileDialogImplKDE will actually work. |
39 static bool CheckKDEDialogWorksOnUIThread(); | 39 static bool CheckKDEDialogWorksOnUIThread(); |
40 | 40 |
41 // BaseShellDialog implementation. | 41 // BaseShellDialog implementation. |
42 virtual void ListenerDestroyed() OVERRIDE; | 42 virtual void ListenerDestroyed() override; |
43 | 43 |
44 protected: | 44 protected: |
45 explicit SelectFileDialogImpl(Listener* listener, | 45 explicit SelectFileDialogImpl(Listener* listener, |
46 ui::SelectFilePolicy* policy); | 46 ui::SelectFilePolicy* policy); |
47 virtual ~SelectFileDialogImpl(); | 47 virtual ~SelectFileDialogImpl(); |
48 | 48 |
49 // SelectFileDialog implementation. | 49 // SelectFileDialog implementation. |
50 // |params| is user data we pass back via the Listener interface. | 50 // |params| is user data we pass back via the Listener interface. |
51 virtual void SelectFileImpl( | 51 virtual void SelectFileImpl( |
52 Type type, | 52 Type type, |
(...skipping 25 matching lines...) Expand all Loading... |
78 // file so that we can display future dialogs with the same starting path. | 78 // file so that we can display future dialogs with the same starting path. |
79 static base::FilePath* last_saved_path_; | 79 static base::FilePath* last_saved_path_; |
80 static base::FilePath* last_opened_path_; | 80 static base::FilePath* last_opened_path_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); | 82 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace libgtk2ui | 85 } // namespace libgtk2ui |
86 | 86 |
87 #endif // CHROME_BROWSER_UI_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_H_ | 87 #endif // CHROME_BROWSER_UI_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_H_ |
OLD | NEW |