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

Unified Diff: remoting/host/capturer_win.cc

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_win.cc
diff --git a/remoting/host/capturer_win.cc b/remoting/host/capturer_win.cc
index e9b65264b0becc874c0b5ddf30ef0fe1ff2f14f4..b2936f634c47705b1ff938fe5b32d049f3372f13 100644
--- a/remoting/host/capturer_win.cc
+++ b/remoting/host/capturer_win.cc
@@ -39,7 +39,7 @@ class CapturerGdi : public Capturer {
virtual ~CapturerGdi();
// Capturer interface.
- virtual void Start() OVERRIDE;
+ virtual void Start(const CursorShapeChangedCallback& callback) OVERRIDE;
virtual void Stop() OVERRIDE;
virtual void ScreenConfigurationChanged() OVERRIDE;
virtual media::VideoFrame::Format pixel_format() const OVERRIDE;
@@ -214,7 +214,10 @@ void CapturerGdi::ReleaseBuffers() {
}
}
-void CapturerGdi::Start() {
+void CapturerGdi::Start(
+ const CursorShapeChangedCallback& callback) {
+ cursor_shape_changed_callback_ = callback;
+
// Load dwmapi.dll dynamically since it is not available on XP.
if (dwmapi_library_ == NULL) {
std::string error;
@@ -243,6 +246,12 @@ void CapturerGdi::Stop() {
}
}
+void CapturerGdi::SetCursorShapeChangedCallback(
+ const CursorShapeChangedCallback& callback) {
+ // TODO(garykac) Implement this. Although as with the screen config changes,
+ // we'll need to poll to look for cursor shape changes. (crbug.com/116299)
+}
+
void CapturerGdi::ScreenConfigurationChanged() {
// We poll for screen configuration changes, so ignore notifications.
}

Powered by Google App Engine
This is Rietveld 408576698