OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include <remoting/client/cursor_shape_stub_proxy.h> |
| 6 #include "base/bind.h" |
| 7 #include "base/location.h" |
| 8 #include "remoting/proto/control.pb.h" |
| 9 |
| 10 namespace remoting { |
| 11 |
| 12 CursorShapeStubProxy::CursorShapeStubProxy( |
| 13 base::WeakPtr<protocol::CursorShapeStub> stub, |
| 14 scoped_refptr<base::SingleThreadTaskRunner> task_runner) |
| 15 : stub_(stub), task_runner_(task_runner) {} |
| 16 |
| 17 CursorShapeStubProxy::~CursorShapeStubProxy() {} |
| 18 |
| 19 void CursorShapeStubProxy::SetCursorShape( |
| 20 const protocol::CursorShapeInfo& cursor_shape) { |
| 21 task_runner_->PostTask( |
| 22 FROM_HERE, base::Bind(&protocol::CursorShapeStub::SetCursorShape, stub_, |
| 23 cursor_shape)); |
| 24 } |
| 25 |
| 26 } // namespace remoting |
OLD | NEW |