| 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/input_injector_chromeos.h" | 5 #include "remoting/host/input_injector_chromeos.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 | 110 |
| 111 void InputInjectorChromeos::Core::Start( | 111 void InputInjectorChromeos::Core::Start( |
| 112 scoped_ptr<protocol::ClipboardStub> client_clipboard) { | 112 scoped_ptr<protocol::ClipboardStub> client_clipboard) { |
| 113 ui::OzonePlatform* ozone_platform = ui::OzonePlatform::GetInstance(); | 113 ui::OzonePlatform* ozone_platform = ui::OzonePlatform::GetInstance(); |
| 114 delegate_ = ozone_platform->CreateSystemInputInjector(); | 114 delegate_ = ozone_platform->CreateSystemInputInjector(); |
| 115 DCHECK(delegate_); | 115 DCHECK(delegate_); |
| 116 | 116 |
| 117 // Implemented by remoting::ClipboardAura. | 117 // Implemented by remoting::ClipboardAura. |
| 118 clipboard_ = Clipboard::Create(); | 118 clipboard_ = Clipboard::Create(); |
| 119 clipboard_->Start(client_clipboard.Pass()); | 119 clipboard_->Start(std::move(client_clipboard)); |
| 120 point_transformer_.reset(new PointTransformer()); | 120 point_transformer_.reset(new PointTransformer()); |
| 121 } | 121 } |
| 122 | 122 |
| 123 InputInjectorChromeos::InputInjectorChromeos( | 123 InputInjectorChromeos::InputInjectorChromeos( |
| 124 scoped_refptr<base::SingleThreadTaskRunner> task_runner) | 124 scoped_refptr<base::SingleThreadTaskRunner> task_runner) |
| 125 : input_task_runner_(task_runner) { | 125 : input_task_runner_(task_runner) { |
| 126 core_.reset(new Core()); | 126 core_.reset(new Core()); |
| 127 } | 127 } |
| 128 | 128 |
| 129 InputInjectorChromeos::~InputInjectorChromeos() { | 129 InputInjectorChromeos::~InputInjectorChromeos() { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // browser process. | 173 // browser process. |
| 174 return make_scoped_ptr(new InputInjectorChromeos(ui_task_runner)); | 174 return make_scoped_ptr(new InputInjectorChromeos(ui_task_runner)); |
| 175 } | 175 } |
| 176 | 176 |
| 177 // static | 177 // static |
| 178 bool InputInjector::SupportsTouchEvents() { | 178 bool InputInjector::SupportsTouchEvents() { |
| 179 return false; | 179 return false; |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace remoting | 182 } // namespace remoting |
| OLD | NEW |