OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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 #ifndef REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_ | |
6 #define REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_ | |
7 | |
8 #include <string> | |
9 | |
10 namespace remoting { | |
11 | |
12 // Type is used to define shape of the mouse cursor. | |
Wez
2012/12/11 05:23:18
nit: Clarify that this is used to return cursor sh
Sergey Ulanov
2012/12/12 18:31:12
Done.
| |
13 struct MouseCursorShape { | |
14 MouseCursorShape(); | |
15 ~MouseCursorShape(); | |
16 | |
17 // Width, height (in screen pixels) of the cursor. | |
18 int width; | |
19 int height; | |
Wez
2012/12/11 05:23:18
nit: Use SkISize here.
Sergey Ulanov
2012/12/12 18:31:12
Done.
| |
20 | |
21 // X,Y coordinates (relative to upper-left corner) of the cursor hotspot. | |
22 int hotspot_x; | |
23 int hotspot_y; | |
Wez
2012/12/11 05:23:18
nit: Use SkIPoint here.
Sergey Ulanov
2012/12/12 18:31:12
Done.
| |
24 | |
25 // Cursor pixmap data in 32-bit BGRA format. | |
26 std::string data; | |
alexeypa (please no reviews)
2012/12/12 19:53:10
nit: std::vector<uint8> is more appropriate here.
| |
27 }; | |
28 | |
29 } // namespace remoting | |
30 | |
31 #endif // REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_ | |
OLD | NEW |