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 #include "ui/shell_dialogs/select_file_dialog.h" | 5 #include "ui/shell_dialogs/select_file_dialog.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #include <CoreServices/CoreServices.h> | 8 #include <CoreServices/CoreServices.h> |
| 9 #include <stddef.h> |
9 | 10 |
10 #include <map> | 11 #include <map> |
11 #include <set> | 12 #include <set> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
15 #include "base/i18n/case_conversion.h" | 16 #include "base/i18n/case_conversion.h" |
16 #include "base/logging.h" | 17 #include "base/logging.h" |
17 #include "base/mac/bundle_locations.h" | 18 #include "base/mac/bundle_locations.h" |
18 #include "base/mac/foundation_util.h" | 19 #include "base/mac/foundation_util.h" |
19 #include "base/mac/scoped_cftyperef.h" | 20 #include "base/mac/scoped_cftyperef.h" |
20 #import "base/mac/scoped_nsobject.h" | 21 #import "base/mac/scoped_nsobject.h" |
| 22 #include "base/macros.h" |
21 #include "base/strings/sys_string_conversions.h" | 23 #include "base/strings/sys_string_conversions.h" |
22 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
23 #include "base/threading/thread_restrictions.h" | 25 #include "base/threading/thread_restrictions.h" |
24 #import "ui/base/cocoa/nib_loading.h" | 26 #import "ui/base/cocoa/nib_loading.h" |
25 #include "ui/base/l10n/l10n_util_mac.h" | 27 #include "ui/base/l10n/l10n_util_mac.h" |
26 #include "ui/strings/grit/ui_strings.h" | 28 #include "ui/strings/grit/ui_strings.h" |
27 | 29 |
28 namespace { | 30 namespace { |
29 | 31 |
30 const int kFileTypePopupTag = 1234; | 32 const int kFileTypePopupTag = 1234; |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 501 |
500 namespace ui { | 502 namespace ui { |
501 | 503 |
502 SelectFileDialog* CreateMacSelectFileDialog( | 504 SelectFileDialog* CreateMacSelectFileDialog( |
503 SelectFileDialog::Listener* listener, | 505 SelectFileDialog::Listener* listener, |
504 SelectFilePolicy* policy) { | 506 SelectFilePolicy* policy) { |
505 return new SelectFileDialogImpl(listener, policy); | 507 return new SelectFileDialogImpl(listener, policy); |
506 } | 508 } |
507 | 509 |
508 } // namespace ui | 510 } // namespace ui |
OLD | NEW |