| 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/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 Loading... |
| 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 |
| OLD | NEW |