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

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: Use ClientStub instead of CursorShapeStub 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..0eaf1b41b91ae044f4677b894900d9b72e262ecf 100644
--- a/remoting/host/capturer.h
+++ b/remoting/host/capturer.h
@@ -7,11 +7,17 @@
#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 {
+namespace protocol {
+class CursorShapeInfo;
+}
+
+class CaptureData;
+
// A class to perform the task of capturing the image of a window.
// The capture action is asynchronous to allow maximum throughput.
//
@@ -49,6 +55,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_ptr<protocol::CursorShapeInfo>)>
+ CursorShapeChangedCallback;
+
virtual ~Capturer() {};
// Create platform-specific capturer.
@@ -69,7 +79,8 @@ class Capturer {
#endif // defined(OS_LINUX)
// Called at the beginning of a capturing session.
- virtual void Start() = 0;
+ virtual void Start(
+ const CursorShapeChangedCallback& callback) = 0;
// Called at the end of a capturing session.
virtual void Stop() = 0;

Powered by Google App Engine
This is Rietveld 408576698