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

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: Remove extra LOGs 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..bf944fb7f1fd91cd2189b366b2f63112f576b7a3 100644
--- a/remoting/host/capturer.h
+++ b/remoting/host/capturer.h
@@ -7,11 +7,14 @@
#include "base/basictypes.h"
#include "base/callback.h"
-#include "remoting/base/capture_data.h"
+#include "media/base/video_frame.h"
#include "third_party/skia/include/core/SkRegion.h"
namespace remoting {
+class CaptureData;
+class CursorShapeData;
+
// A class to perform the task of capturing the image of a window.
// The capture action is asynchronous to allow maximum throughput.
//
@@ -49,6 +52,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;
Wez 2012/05/23 00:01:57 If you have Capturers generate protocol::CursorSha
garykac 2012/05/26 01:58:01 Changed to protocol::CursorShapeInfo and removed s
+
virtual ~Capturer() {};
// Create platform-specific capturer.
@@ -74,6 +81,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