OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/empty_cursor_filter.h" | 5 #include "remoting/client/empty_cursor_filter.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
| 11 #include "build/build_config.h" |
9 #include "remoting/proto/control.pb.h" | 12 #include "remoting/proto/control.pb.h" |
10 | 13 |
11 namespace remoting { | 14 namespace remoting { |
12 | 15 |
13 protocol::CursorShapeInfo EmptyCursorShape() { | 16 protocol::CursorShapeInfo EmptyCursorShape() { |
14 protocol::CursorShapeInfo empty_shape; | 17 protocol::CursorShapeInfo empty_shape; |
15 empty_shape.set_data(std::string()); | 18 empty_shape.set_data(std::string()); |
16 empty_shape.set_width(0); | 19 empty_shape.set_width(0); |
17 empty_shape.set_height(0); | 20 empty_shape.set_height(0); |
18 empty_shape.set_hotspot_x(0); | 21 empty_shape.set_hotspot_x(0); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const uint32_t* src_row_data_end = | 60 const uint32_t* src_row_data_end = |
58 src_row_data + cursor_shape.width() * cursor_shape.height(); | 61 src_row_data + cursor_shape.width() * cursor_shape.height(); |
59 if (IsVisibleRow(src_row_data, src_row_data_end)) { | 62 if (IsVisibleRow(src_row_data, src_row_data_end)) { |
60 cursor_stub_->SetCursorShape(cursor_shape); | 63 cursor_stub_->SetCursorShape(cursor_shape); |
61 return; | 64 return; |
62 } | 65 } |
63 cursor_stub_->SetCursorShape(EmptyCursorShape()); | 66 cursor_stub_->SetCursorShape(EmptyCursorShape()); |
64 } | 67 } |
65 | 68 |
66 } // namespace remoting | 69 } // namespace remoting |
OLD | NEW |