OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_GTK2_H_ | 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_SELECT_FILE_DIALOG_IMPL_GTK2_H_ |
6 #define CHROME_BROWSER_UI_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_GTK2_H_ | 6 #define CHROME_BROWSER_UI_LIBGTKUI_SELECT_FILE_DIALOG_IMPL_GTK2_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h" | 9 #include "chrome/browser/ui/libgtkui/gtk2_signal.h" |
10 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h" | 10 #include "chrome/browser/ui/libgtkui/gtk2_util.h" |
11 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" | 11 #include "chrome/browser/ui/libgtkui/select_file_dialog_impl.h" |
12 | 12 |
13 namespace libgtk2ui { | 13 namespace libgtkui { |
14 | 14 |
15 // Implementation of SelectFileDialog that shows a Gtk common dialog for | 15 // Implementation of SelectFileDialog that shows a Gtk common dialog for |
16 // choosing a file or folder. This acts as a modal dialog. | 16 // choosing a file or folder. This acts as a modal dialog. |
17 class SelectFileDialogImplGTK : public SelectFileDialogImpl, | 17 class SelectFileDialogImplGTK : public SelectFileDialogImpl, |
18 public aura::WindowObserver { | 18 public aura::WindowObserver { |
19 public: | 19 public: |
20 SelectFileDialogImplGTK(Listener* listener, | 20 SelectFileDialogImplGTK(Listener* listener, |
21 ui::SelectFilePolicy* policy); | 21 ui::SelectFilePolicy* policy); |
22 | 22 |
23 protected: | 23 protected: |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 // All our dialogs. | 120 // All our dialogs. |
121 std::set<GtkWidget*> dialogs_; | 121 std::set<GtkWidget*> dialogs_; |
122 | 122 |
123 // The set of all parent windows for which we are currently running dialogs. | 123 // The set of all parent windows for which we are currently running dialogs. |
124 std::set<aura::Window*> parents_; | 124 std::set<aura::Window*> parents_; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImplGTK); | 126 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImplGTK); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace libgtk2ui | 129 } // namespace libgtkui |
130 | 130 |
131 #endif // CHROME_BROWSER_UI_LIBGTK2UI_SELECT_FILE_DIALOG_IMPL_GTK2_H_ | 131 #endif // CHROME_BROWSER_UI_LIBGTKUI_SELECT_FILE_DIALOG_IMPL_GTK2_H_ |
OLD | NEW |