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

Side by Side Diff: ui/shell_dialogs/select_file_dialog_win.cc

Issue 14061025: ui: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/shell_dialogs/select_file_dialog.cc ('k') | ui/surface/accelerated_surface_win.cc » ('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) 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
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
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
OLDNEW
« no previous file with comments | « ui/shell_dialogs/select_file_dialog.cc ('k') | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698