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_win.h" | 5 #include "ui/shell_dialogs/select_file_dialog_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <commdlg.h> | 8 #include <commdlg.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 | 10 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 const std::wstring& default_extension, | 442 const std::wstring& default_extension, |
443 RunState run_state, | 443 RunState run_state, |
444 HWND owner, | 444 HWND owner, |
445 void* params) | 445 void* params) |
446 : type(type), | 446 : type(type), |
447 title(title), | 447 title(title), |
448 default_path(default_path), | 448 default_path(default_path), |
449 file_type_index(file_type_index), | 449 file_type_index(file_type_index), |
450 default_extension(default_extension), | 450 default_extension(default_extension), |
451 run_state(run_state), | 451 run_state(run_state), |
452 ui_proxy(MessageLoopForUI::current()->message_loop_proxy()), | 452 ui_proxy(base::MessageLoopForUI::current()->message_loop_proxy()), |
453 owner(owner), | 453 owner(owner), |
454 params(params) { | 454 params(params) { |
455 if (file_types) | 455 if (file_types) |
456 this->file_types = *file_types; | 456 this->file_types = *file_types; |
457 } | 457 } |
458 SelectFileDialog::Type type; | 458 SelectFileDialog::Type type; |
459 std::wstring title; | 459 std::wstring title; |
460 base::FilePath default_path; | 460 base::FilePath default_path; |
461 FileTypeInfo file_types; | 461 FileTypeInfo file_types; |
462 int file_type_index; | 462 int file_type_index; |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 return return_value; | 920 return return_value; |
921 } | 921 } |
922 | 922 |
923 SelectFileDialog* CreateWinSelectFileDialog( | 923 SelectFileDialog* CreateWinSelectFileDialog( |
924 SelectFileDialog::Listener* listener, | 924 SelectFileDialog::Listener* listener, |
925 SelectFilePolicy* policy) { | 925 SelectFilePolicy* policy) { |
926 return new SelectFileDialogImpl(listener, policy); | 926 return new SelectFileDialogImpl(listener, policy); |
927 } | 927 } |
928 | 928 |
929 } // namespace ui | 929 } // namespace ui |
OLD | NEW |