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

Unified Diff: remoting/host/capturer_mac.cc

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Call SetCursor only for native format images 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_mac.cc
diff --git a/remoting/host/capturer_mac.cc b/remoting/host/capturer_mac.cc
index 19f2e1c0090e5f552046ed13a1c3361f6752eadc..d4622d9dde8f12aff47b4824673147f0f45a6de9 100644
--- a/remoting/host/capturer_mac.cc
+++ b/remoting/host/capturer_mac.cc
@@ -158,7 +158,7 @@ class CapturerMac : public Capturer {
bool Init();
// 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;
@@ -302,7 +302,10 @@ void CapturerMac::ReleaseBuffers() {
}
}
-void CapturerMac::Start() {
+void CapturerMac::Start(
+ const CursorShapeChangedCallback& callback) {
+ cursor_shape_changed_callback_ = callback;
+
// Create a power management assertion that wakes the display and prevents it
// from going to sleep on user idle.
IOPMAssertionCreate(kIOPMAssertionTypeNoDisplaySleep,
@@ -317,6 +320,11 @@ void CapturerMac::Stop() {
}
}
+void CapturerMac::SetCursorShapeChangedCallback(
+ const CursorShapeChangedCallback& callback) {
+ // TODO(garykac) Implement cursor shape for Mac. (crbug.com/116299)
+}
+
void CapturerMac::ScreenConfigurationChanged() {
ReleaseBuffers();
helper_.ClearInvalidRegion();

Powered by Google App Engine
This is Rietveld 408576698