sergeyu@chromium.org | 6c82a7e | 2013-06-04 18:51:23 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_MOUSE_CURSOR_SHAPE_H_ |
| 12 | #define WEBRTC_MODULES_DESKTOP_CAPTURE_MOUSE_CURSOR_SHAPE_H_ |
| 13 | |
| 14 | #include <string> |
| 15 | |
| 16 | #include "webrtc/modules/desktop_capture/desktop_geometry.h" |
| 17 | |
| 18 | namespace webrtc { |
| 19 | |
| 20 | // Type used to return mouse cursor shape from video capturers. |
sergeyu@chromium.org | af54d4b | 2013-10-16 02:42:38 +0000 | [diff] [blame^] | 21 | // |
| 22 | // TODO(sergeyu): Remove this type and use MouseCursor instead. |
sergeyu@chromium.org | 6c82a7e | 2013-06-04 18:51:23 +0000 | [diff] [blame] | 23 | struct MouseCursorShape { |
| 24 | // Size of the cursor in screen pixels. |
| 25 | DesktopSize size; |
| 26 | |
| 27 | // Coordinates of the cursor hotspot relative to upper-left corner. |
| 28 | DesktopVector hotspot; |
| 29 | |
| 30 | // Cursor pixmap data in 32-bit BGRA format. |
| 31 | std::string data; |
| 32 | }; |
| 33 | |
| 34 | } // namespace webrtc |
| 35 | |
| 36 | #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_MOUSE_CURSOR_SHAPE_H_ |