| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef MEDIA_VIDEO_CAPTURE_SCREEN_MOUSE_CURSOR_SHAPE_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_SCREEN_MOUSE_CURSOR_SHAPE_H_ |
| 6 #define MEDIA_VIDEO_CAPTURE_SCREEN_MOUSE_CURSOR_SHAPE_H_ | 6 #define MEDIA_VIDEO_CAPTURE_SCREEN_MOUSE_CURSOR_SHAPE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" |
| 10 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
| 11 #include "third_party/skia/include/core/SkPoint.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| 12 #include "third_party/skia/include/core/SkSize.h" | |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 // Type used to return mouse cursor shape from video capturers. | 16 // Type used to return mouse cursor shape from video capturers. |
| 17 struct MEDIA_EXPORT MouseCursorShape { | 17 struct MEDIA_EXPORT MouseCursorShape { |
| 18 MouseCursorShape(); | |
| 19 ~MouseCursorShape(); | |
| 20 | |
| 21 // Size of the cursor in screen pixels. | 18 // Size of the cursor in screen pixels. |
| 22 SkISize size; | 19 webrtc::DesktopSize size; |
| 23 | 20 |
| 24 // Coordinates of the cursor hotspot relative to upper-left corner. | 21 // Coordinates of the cursor hotspot relative to upper-left corner. |
| 25 SkIPoint hotspot; | 22 webrtc::DesktopVector hotspot; |
| 26 | 23 |
| 27 // Cursor pixmap data in 32-bit BGRA format. | 24 // Cursor pixmap data in 32-bit BGRA format. |
| 28 std::string data; | 25 std::string data; |
| 29 }; | 26 }; |
| 30 | 27 |
| 31 } // namespace media | 28 } // namespace media |
| 32 | 29 |
| 33 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_MOUSE_CURSOR_SHAPE_H_ | 30 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_MOUSE_CURSOR_SHAPE_H_ |
| OLD | NEW |