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

Side by Side Diff: remoting/client/plugin/pepper_cursor_setter.cc

Issue 1228333004: Move code that doesn't depend on PPAPI out of remoting/client/plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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/client/plugin/pepper_cursor_setter.h" 5 #include "remoting/client/plugin/pepper_cursor_setter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ppapi/cpp/image_data.h" 8 #include "ppapi/cpp/image_data.h"
9 #include "ppapi/cpp/mouse_cursor.h" 9 #include "ppapi/cpp/mouse_cursor.h"
10 #include "remoting/client/plugin/empty_cursor_filter.h" 10 #include "remoting/client/empty_cursor_filter.h"
11 #include "remoting/proto/control.pb.h" 11 #include "remoting/proto/control.pb.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 PepperCursorSetter::PepperCursorSetter(const pp::InstanceHandle& instance) 15 PepperCursorSetter::PepperCursorSetter(const pp::InstanceHandle& instance)
16 : instance_(instance), delegate_stub_(nullptr) { 16 : instance_(instance), delegate_stub_(nullptr) {
17 } 17 }
18 18
19 PepperCursorSetter::~PepperCursorSetter() {} 19 PepperCursorSetter::~PepperCursorSetter() {}
20 20
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 memcpy(dst_row_data, src_row_data, bytes_per_row); 71 memcpy(dst_row_data, src_row_data, bytes_per_row);
72 src_row_data += size.width(); 72 src_row_data += size.width();
73 dst_row_data += image.stride(); 73 dst_row_data += image.stride();
74 } 74 }
75 75
76 return pp::MouseCursor::SetCursor( 76 return pp::MouseCursor::SetCursor(
77 instance_, PP_MOUSECURSOR_TYPE_CUSTOM, image, hotspot); 77 instance_, PP_MOUSECURSOR_TYPE_CUSTOM, image, hotspot);
78 } 78 }
79 79
80 } // namespace remoting 80 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/normalizing_input_filter_mac_unittest.cc ('k') | remoting/client/plugin/pepper_mouse_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698