Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: remoting/client/cursor_shape_stub_proxy.cc

Issue 2187723002: [Remoting Android] Refactor CursorShapeStubProxy from JniDisplayHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's Feedback Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 DCHECK(task_runner_);
Sergey Ulanov 2016/07/27 20:38:01 Don't need this DCHECK. operator-> in scoped_refpt
Yuwei 2016/07/27 21:01:36 Done.
22 task_runner_->PostTask(
23 FROM_HERE, base::Bind(&protocol::CursorShapeStub::SetCursorShape, stub_,
24 cursor_shape));
25 }
26
27 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698