| 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/ui_automation_client.h" | 5 #include "win8/test/ui_automation_client.h" |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 #include <atlcom.h> | 8 #include <atlcom.h> |
| 9 #include <oleauto.h> | 9 #include <oleauto.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 #include <uiautomation.h> | 11 #include <uiautomation.h> |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 | 14 |
| 15 #include "base/bind.h" | 15 #include "base/bind.h" |
| 16 #include "base/callback.h" | 16 #include "base/callback.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
| 22 #include "base/win/scoped_comptr.h" | 22 #include "base/win/scoped_comptr.h" |
| 23 #include "base/win/scoped_variant.h" | 23 #include "base/win/scoped_variant.h" |
| 24 | 24 |
| 25 namespace win8 { | 25 namespace win8 { |
| 26 namespace internal { | 26 namespace internal { |
| 27 | 27 |
| 28 // The guts of the UI automation client which runs on a dedicated thread in the | 28 // The guts of the UI automation client which runs on a dedicated thread in the |
| 29 // multi-threaded COM apartment. An instance may be constructed on any thread, | 29 // multi-threaded COM apartment. An instance may be constructed on any thread, |
| 30 // but Initialize() must be invoked on a thread in the MTA. | 30 // but Initialize() must be invoked on a thread in the MTA. |
| 31 class UIAutomationClient::Context { | 31 class UIAutomationClient::Context { |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 context_, | 615 context_, |
| 616 base::ThreadTaskRunnerHandle::Get(), | 616 base::ThreadTaskRunnerHandle::Get(), |
| 617 base::string16(class_name), | 617 base::string16(class_name), |
| 618 item_name, | 618 item_name, |
| 619 init_callback, | 619 init_callback, |
| 620 result_callback)); | 620 result_callback)); |
| 621 } | 621 } |
| 622 | 622 |
| 623 } // namespace internal | 623 } // namespace internal |
| 624 } // namespace win8 | 624 } // namespace win8 |
| OLD | NEW |