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 "remoting/host/single_window_desktop_environment.h" | 5 #include "remoting/host/single_window_desktop_environment.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
9 #include "remoting/host/single_window_input_injector.h" | 10 #include "remoting/host/single_window_input_injector.h" |
10 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" | 11 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" |
11 #include "third_party/webrtc/modules/desktop_capture/window_capturer.h" | 12 #include "third_party/webrtc/modules/desktop_capture/window_capturer.h" |
12 | 13 |
13 namespace remoting { | 14 namespace remoting { |
14 | 15 |
15 // Enables capturing and streaming of windows. | 16 // Enables capturing and streaming of windows. |
16 class SingleWindowDesktopEnvironment : public BasicDesktopEnvironment { | 17 class SingleWindowDesktopEnvironment : public BasicDesktopEnvironment { |
17 | 18 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 scoped_ptr<SingleWindowDesktopEnvironment> desktop_environment( | 102 scoped_ptr<SingleWindowDesktopEnvironment> desktop_environment( |
102 new SingleWindowDesktopEnvironment(caller_task_runner(), | 103 new SingleWindowDesktopEnvironment(caller_task_runner(), |
103 input_task_runner(), | 104 input_task_runner(), |
104 ui_task_runner(), | 105 ui_task_runner(), |
105 window_id_, | 106 window_id_, |
106 supports_touch_events())); | 107 supports_touch_events())); |
107 return desktop_environment.Pass(); | 108 return desktop_environment.Pass(); |
108 } | 109 } |
109 | 110 |
110 } // namespace remoting | 111 } // namespace remoting |
OLD | NEW |