summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/webrtc/modules/desktop_capture/mouse_cursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/webrtc/modules/desktop_capture/mouse_cursor.h')
-rw-r--r--chromium/third_party/webrtc/modules/desktop_capture/mouse_cursor.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/chromium/third_party/webrtc/modules/desktop_capture/mouse_cursor.h b/chromium/third_party/webrtc/modules/desktop_capture/mouse_cursor.h
index 4cf770830ce..22887f9ae47 100644
--- a/chromium/third_party/webrtc/modules/desktop_capture/mouse_cursor.h
+++ b/chromium/third_party/webrtc/modules/desktop_capture/mouse_cursor.h
@@ -11,8 +11,8 @@
#ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_MOUSE_CURSOR_H_
#define WEBRTC_MODULES_DESKTOP_CAPTURE_MOUSE_CURSOR_H_
+#include "webrtc/base/constructormagic.h"
#include "webrtc/modules/desktop_capture/desktop_geometry.h"
-#include "webrtc/system_wrappers/interface/constructor_magic.h"
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
namespace webrtc {
@@ -21,13 +21,19 @@ class DesktopFrame;
class MouseCursor {
public:
+ MouseCursor();
+
// Takes ownership of |image|. |hotspot| must be within |image| boundaries.
MouseCursor(DesktopFrame* image, const DesktopVector& hotspot);
+
~MouseCursor();
static MouseCursor* CopyOf(const MouseCursor& cursor);
- const DesktopFrame& image() const { return *image_; }
+ void set_image(DesktopFrame* image) { image_.reset(image); }
+ const DesktopFrame* image() const { return image_.get(); }
+
+ void set_hotspot(const DesktopVector& hotspot ) { hotspot_ = hotspot; }
const DesktopVector& hotspot() const { return hotspot_; }
private: