| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "remoting/host/mouse_cursor_monitor_proxy.h" | 5 #include "remoting/host/mouse_cursor_monitor_proxy.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ptr_util.h" |
| 11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 13 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 14 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
| 15 #include "remoting/host/mouse_cursor_monitor_proxy.h" | 16 #include "remoting/host/mouse_cursor_monitor_proxy.h" |
| 16 #include "remoting/protocol/protocol_mock_objects.h" | 17 #include "remoting/protocol/protocol_mock_objects.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" | 20 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" |
| 20 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 21 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 base::MakeUnique<ThreadCheckMouseCursorMonitor>( | 129 base::MakeUnique<ThreadCheckMouseCursorMonitor>( |
| 129 capture_thread_.task_runner())); | 130 capture_thread_.task_runner())); |
| 130 proxy_->Init(this, webrtc::MouseCursorMonitor::SHAPE_ONLY); | 131 proxy_->Init(this, webrtc::MouseCursorMonitor::SHAPE_ONLY); |
| 131 proxy_->Capture(); | 132 proxy_->Capture(); |
| 132 | 133 |
| 133 // |run_loop_| will be stopped when the first cursor is received. | 134 // |run_loop_| will be stopped when the first cursor is received. |
| 134 run_loop_.Run(); | 135 run_loop_.Run(); |
| 135 } | 136 } |
| 136 | 137 |
| 137 } // namespace remoting | 138 } // namespace remoting |
| OLD | NEW |