Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: ui/shell_dialogs/select_file_dialog_mac.h

Issue 1880313003: Mac File Dialogs: Remove SaveAccessoryView.xib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/shell_dialogs/run_all_unittests.cc ('k') | ui/shell_dialogs/select_file_dialog_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void* params; 69 void* params;
70 70
71 // Extension dropdown handler corresponding to this file dialog. 71 // Extension dropdown handler corresponding to this file dialog.
72 base::scoped_nsobject<ExtensionDropdownHandler> extension_dropdown_handler; 72 base::scoped_nsobject<ExtensionDropdownHandler> extension_dropdown_handler;
73 73
74 ~DialogData(); 74 ~DialogData();
75 }; 75 };
76 76
77 ~SelectFileDialogImpl() override; 77 ~SelectFileDialogImpl() override;
78 78
79 // Returns an autoreleased accessory view for the dialog.
80 static NSView* CreateAccessoryView();
81
79 // Sets the accessory view for the |dialog| and returns the associated 82 // Sets the accessory view for the |dialog| and returns the associated
80 // ExtensionDropdownHandler. 83 // ExtensionDropdownHandler.
81 static base::scoped_nsobject<ExtensionDropdownHandler> SetAccessoryView( 84 static base::scoped_nsobject<ExtensionDropdownHandler> SetAccessoryView(
82 NSSavePanel* dialog, 85 NSSavePanel* dialog,
83 const FileTypeInfo* file_types, 86 const FileTypeInfo* file_types,
84 int file_type_index, 87 int file_type_index,
85 const base::FilePath::StringType& default_extension); 88 const base::FilePath::StringType& default_extension);
86 89
87 bool HasMultipleFileTypeChoicesImpl() override; 90 bool HasMultipleFileTypeChoicesImpl() override;
88 91
89 // The bridge for results from Cocoa to return to us. 92 // The bridge for results from Cocoa to return to us.
90 base::scoped_nsobject<SelectFileDialogBridge> bridge_; 93 base::scoped_nsobject<SelectFileDialogBridge> bridge_;
91 94
92 // The set of all parent windows for which we are currently running dialogs. 95 // The set of all parent windows for which we are currently running dialogs.
93 std::set<NSWindow*> parents_; 96 std::set<NSWindow*> parents_;
94 97
95 // A map from file dialogs to the DialogData associated with them. 98 // A map from file dialogs to the DialogData associated with them.
96 std::map<NSSavePanel*, DialogData> dialog_data_map_; 99 std::map<NSSavePanel*, DialogData> dialog_data_map_;
97 100
98 bool hasMultipleFileTypeChoices_; 101 bool hasMultipleFileTypeChoices_;
99 102
100 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); 103 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl);
101 }; 104 };
102 105
103 } // namespace ui 106 } // namespace ui
104 107
105 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_ 108 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_
106 109
OLDNEW
« no previous file with comments | « ui/shell_dialogs/run_all_unittests.cc ('k') | ui/shell_dialogs/select_file_dialog_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698