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

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
« no previous file with comments | « remoting/client/cursor_shape_stub_proxy.h ('k') | remoting/client/jni/jni_display_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 task_runner_->PostTask(
22 FROM_HERE, base::Bind(&protocol::CursorShapeStub::SetCursorShape, stub_,
23 cursor_shape));
24 }
25
26 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/cursor_shape_stub_proxy.h ('k') | remoting/client/jni/jni_display_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698