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

Unified Diff: ash/display/mirror_window_controller.cc

Issue 2436023003: Adds CaptureClientObserver as a way to track changes in capture (Closed)
Patch Set: fix comments Created 4 years, 2 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
« no previous file with comments | « no previous file | ui/aura/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mirror_window_controller.cc
diff --git a/ash/display/mirror_window_controller.cc b/ash/display/mirror_window_controller.cc
index 84c07ce7107e7546595d3f2fd87fbce3138d459e..8963c4ad1d88d50c76d5297a31a66bbddf21b7da 100644
--- a/ash/display/mirror_window_controller.cc
+++ b/ash/display/mirror_window_controller.cc
@@ -94,21 +94,21 @@ class MirroringScreenPositionClient
DISALLOW_COPY_AND_ASSIGN(MirroringScreenPositionClient);
};
+// A trivial CaptureClient that does nothing. That is, calls to set/release
+// capture are dropped.
class NoneCaptureClient : public aura::client::CaptureClient {
public:
NoneCaptureClient() {}
~NoneCaptureClient() override {}
private:
- // Does a capture on the |window|.
+ // aura::client::CaptureClient:
void SetCapture(aura::Window* window) override {}
-
- // Releases a capture from the |window|.
void ReleaseCapture(aura::Window* window) override {}
-
- // Returns the current capture window.
- aura::Window* GetCaptureWindow() override { return NULL; }
- aura::Window* GetGlobalCaptureWindow() override { return NULL; }
+ aura::Window* GetCaptureWindow() override { return nullptr; }
+ aura::Window* GetGlobalCaptureWindow() override { return nullptr; }
+ void AddObserver(aura::client::CaptureClientObserver* observer) override {}
+ void RemoveObserver(aura::client::CaptureClientObserver* observer) override {}
DISALLOW_COPY_AND_ASSIGN(NoneCaptureClient);
};
« no previous file with comments | « no previous file | ui/aura/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698