OLD | NEW |
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 #include "win8/test/open_with_dialog_controller.h" | 5 #include "win8/test/open_with_dialog_controller.h" |
6 | 6 |
7 #include <shlobj.h> | 7 #include <shlobj.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/thread_task_runner_handle.h" | |
16 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "base/win/windows_version.h" | 17 #include "base/win/windows_version.h" |
18 #include "win8/test/open_with_dialog_async.h" | 18 #include "win8/test/open_with_dialog_async.h" |
19 #include "win8/test/ui_automation_client.h" | 19 #include "win8/test/ui_automation_client.h" |
20 | 20 |
21 namespace win8 { | 21 namespace win8 { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 const int kControllerTimeoutSeconds = 5; | 25 const int kControllerTimeoutSeconds = 5; |
26 const wchar_t kShellFlyoutClassName[] = L"Shell_Flyout"; | 26 const wchar_t kShellFlyoutClassName[] = L"Shell_Flyout"; |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 base::Bind(&OpenWithDialogController::Begin, base::Unretained(this), | 283 base::Bind(&OpenWithDialogController::Begin, base::Unretained(this), |
284 parent_window, protocol, program, | 284 parent_window, protocol, program, |
285 Bind(&OnMakeDefaultComplete, run_loop.QuitClosure(), | 285 Bind(&OnMakeDefaultComplete, run_loop.QuitClosure(), |
286 &result, choices))); | 286 &result, choices))); |
287 | 287 |
288 run_loop.Run(); | 288 run_loop.Run(); |
289 return result; | 289 return result; |
290 } | 290 } |
291 | 291 |
292 } // namespace win8 | 292 } // namespace win8 |
OLD | NEW |