| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chrome_select_file_dialog_factory_win.h" | 5 #include "chrome/browser/chrome_select_file_dialog_factory_win.h" |
| 6 | 6 |
| 7 #include <Windows.h> | 7 #include <Windows.h> |
| 8 #include <commdlg.h> | 8 #include <commdlg.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
| 15 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
| 16 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
| 17 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
| 18 #include "base/win/metro.h" | 19 #include "base/win/metro.h" |
| 19 #include "chrome/common/chrome_utility_messages.h" | 20 #include "chrome/common/chrome_utility_messages.h" |
| 20 #include "chrome/grit/generated_resources.h" | 21 #include "chrome/grit/generated_resources.h" |
| 21 #include "content/public/browser/utility_process_host.h" | 22 #include "content/public/browser/utility_process_host.h" |
| 22 #include "content/public/browser/utility_process_host_client.h" | 23 #include "content/public/browser/utility_process_host_client.h" |
| 23 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
| 24 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 | 336 |
| 336 ui::SelectFileDialog* ChromeSelectFileDialogFactory::Create( | 337 ui::SelectFileDialog* ChromeSelectFileDialogFactory::Create( |
| 337 ui::SelectFileDialog::Listener* listener, | 338 ui::SelectFileDialog::Listener* listener, |
| 338 ui::SelectFilePolicy* policy) { | 339 ui::SelectFilePolicy* policy) { |
| 339 return ui::CreateWinSelectFileDialog( | 340 return ui::CreateWinSelectFileDialog( |
| 340 listener, | 341 listener, |
| 341 policy, | 342 policy, |
| 342 base::Bind(GetOpenFileNameImpl, blocking_task_runner_), | 343 base::Bind(GetOpenFileNameImpl, blocking_task_runner_), |
| 343 base::Bind(GetSaveFileNameImpl, blocking_task_runner_)); | 344 base::Bind(GetSaveFileNameImpl, blocking_task_runner_)); |
| 344 } | 345 } |
| OLD | NEW |