OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/input_injector.h" | 5 #include "remoting/host/input_injector.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 // static | 355 // static |
356 scoped_ptr<InputInjector> InputInjector::Create( | 356 scoped_ptr<InputInjector> InputInjector::Create( |
357 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 357 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
358 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | 358 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { |
359 return make_scoped_ptr( | 359 return make_scoped_ptr( |
360 new InputInjectorWin(main_task_runner, ui_task_runner)); | 360 new InputInjectorWin(main_task_runner, ui_task_runner)); |
361 } | 361 } |
362 | 362 |
363 // static | 363 // static |
364 bool InputInjector::SupportsTouchEvents() { | 364 bool InputInjector::SupportsTouchEvents() { |
365 return TouchInjectorWinDelegate::Create(); | 365 return TouchInjectorWinDelegate::Create() != nullptr; |
366 } | 366 } |
367 | 367 |
368 } // namespace remoting | 368 } // namespace remoting |
OLD | NEW |