OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_ | 5 #ifndef UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_ |
6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_ | 6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 gfx::NativeWindow owning_window, | 56 gfx::NativeWindow owning_window, |
57 void* params) override; | 57 void* params) override; |
58 | 58 |
59 private: | 59 private: |
60 friend class test::SelectFileDialogMacTest; | 60 friend class test::SelectFileDialogMacTest; |
61 | 61 |
62 // Struct to store data associated with a file dialog while it is showing. | 62 // Struct to store data associated with a file dialog while it is showing. |
63 struct DialogData { | 63 struct DialogData { |
64 DialogData(void* params_, | 64 DialogData(void* params_, |
65 base::scoped_nsobject<ExtensionDropdownHandler> handler); | 65 base::scoped_nsobject<ExtensionDropdownHandler> handler); |
| 66 DialogData(const DialogData& other); |
66 | 67 |
67 // |params| user data associated with this file dialog. | 68 // |params| user data associated with this file dialog. |
68 void* params; | 69 void* params; |
69 | 70 |
70 // Extension dropdown handler corresponding to this file dialog. | 71 // Extension dropdown handler corresponding to this file dialog. |
71 base::scoped_nsobject<ExtensionDropdownHandler> extension_dropdown_handler; | 72 base::scoped_nsobject<ExtensionDropdownHandler> extension_dropdown_handler; |
72 | 73 |
73 ~DialogData(); | 74 ~DialogData(); |
74 }; | 75 }; |
75 | 76 |
(...skipping 20 matching lines...) Expand all Loading... |
96 | 97 |
97 bool hasMultipleFileTypeChoices_; | 98 bool hasMultipleFileTypeChoices_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); | 100 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace ui | 103 } // namespace ui |
103 | 104 |
104 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_ | 105 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_ |
105 | 106 |
OLD | NEW |