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_input_injector.h" | 5 #include "remoting/host/single_window_input_injector.h" |
6 | 6 |
7 #include <ApplicationServices/ApplicationServices.h> | 7 #include <ApplicationServices/ApplicationServices.h> |
8 #include <Carbon/Carbon.h> | 8 #include <Carbon/Carbon.h> |
9 | 9 |
10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
11 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
| 12 #include "base/macros.h" |
12 #include "remoting/proto/event.pb.h" | 13 #include "remoting/proto/event.pb.h" |
13 #include "third_party/webrtc/modules/desktop_capture/mac/desktop_configuration.h
" | 14 #include "third_party/webrtc/modules/desktop_capture/mac/desktop_configuration.h
" |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 | 17 |
17 using protocol::ClipboardEvent; | 18 using protocol::ClipboardEvent; |
18 using protocol::KeyEvent; | 19 using protocol::KeyEvent; |
19 using protocol::TextEvent; | 20 using protocol::TextEvent; |
20 using protocol::MouseEvent; | 21 using protocol::MouseEvent; |
21 using protocol::TouchEvent; | 22 using protocol::TouchEvent; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 163 |
163 scoped_ptr<InputInjector> SingleWindowInputInjector::CreateForWindow( | 164 scoped_ptr<InputInjector> SingleWindowInputInjector::CreateForWindow( |
164 webrtc::WindowId window_id, | 165 webrtc::WindowId window_id, |
165 scoped_ptr<InputInjector> input_injector) { | 166 scoped_ptr<InputInjector> input_injector) { |
166 scoped_ptr<SingleWindowInputInjectorMac> injector( | 167 scoped_ptr<SingleWindowInputInjectorMac> injector( |
167 new SingleWindowInputInjectorMac(window_id, input_injector.Pass())); | 168 new SingleWindowInputInjectorMac(window_id, input_injector.Pass())); |
168 return injector.Pass(); | 169 return injector.Pass(); |
169 } | 170 } |
170 | 171 |
171 } // namespace remoting | 172 } // namespace remoting |
OLD | NEW |