Index: remoting/capturer/mouse_cursor_shape.h |
diff --git a/remoting/capturer/mouse_cursor_shape.h b/remoting/capturer/mouse_cursor_shape.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..213993bfe65ea902d5a74b580f7de40a757f0e19 |
--- /dev/null |
+++ b/remoting/capturer/mouse_cursor_shape.h |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_ |
+#define REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_ |
+ |
+#include <string> |
+ |
+namespace remoting { |
+ |
+// 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.
|
+struct MouseCursorShape { |
+ MouseCursorShape(); |
+ ~MouseCursorShape(); |
+ |
+ // Width, height (in screen pixels) of the cursor. |
+ int width; |
+ int height; |
Wez
2012/12/11 05:23:18
nit: Use SkISize here.
Sergey Ulanov
2012/12/12 18:31:12
Done.
|
+ |
+ // X,Y coordinates (relative to upper-left corner) of the cursor hotspot. |
+ int hotspot_x; |
+ int hotspot_y; |
Wez
2012/12/11 05:23:18
nit: Use SkIPoint here.
Sergey Ulanov
2012/12/12 18:31:12
Done.
|
+ |
+ // Cursor pixmap data in 32-bit BGRA format. |
+ std::string data; |
alexeypa (please no reviews)
2012/12/12 19:53:10
nit: std::vector<uint8> is more appropriate here.
|
+}; |
+ |
+} // namespace remoting |
+ |
+#endif // REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_ |