Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: remoting/host/capturer.h

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment for CaptureCursor Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/capturer.h
diff --git a/remoting/host/capturer.h b/remoting/host/capturer.h
index 5379e7ddc0285ee7683df3c0c3cfeac824b16670..33db5dc469fdfc90b3333f1f504df96d23a2c662 100644
--- a/remoting/host/capturer.h
+++ b/remoting/host/capturer.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "remoting/base/capture_data.h"
+#include "remoting/base/cursor_shape_data.h"
Sergey Ulanov 2012/05/15 23:51:34 Can you forward-declare CursorShapeData?
Sergey Ulanov 2012/05/15 23:51:34 This file seems to be missing from this CL
garykac 2012/05/22 00:42:03 Done.
garykac 2012/05/22 00:42:03 Done. (for CaptureData as well)
#include "third_party/skia/include/core/SkRegion.h"
namespace remoting {
@@ -49,6 +50,10 @@ class Capturer {
typedef base::Callback<void(scoped_refptr<CaptureData>)>
CaptureCompletedCallback;
+ // CursorShapeChangedCallback is called when the cursor shape has changed.
+ typedef base::Callback<void(scoped_refptr<CursorShapeData>)>
+ CursorShapeChangedCallback;
+
virtual ~Capturer() {};
// Create platform-specific capturer.
@@ -74,6 +79,10 @@ class Capturer {
// Called at the end of a capturing session.
virtual void Stop() = 0;
+ // Set callback to be called when the cursor shape changes.
+ virtual void SetCursorShapeChangedCallback(
+ const CursorShapeChangedCallback& callback) = 0;
+
// Called when the screen configuration is changed.
virtual void ScreenConfigurationChanged() = 0;

Powered by Google App Engine
This is Rietveld 408576698