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

Unified Diff: ui/wm/core/capture_controller.h

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 | « ui/views/widget/desktop_aura/desktop_capture_client.cc ('k') | ui/wm/core/capture_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/capture_controller.h
diff --git a/ui/wm/core/capture_controller.h b/ui/wm/core/capture_controller.h
index bad56e61a9a2a4c96d962268f77cc2e1b1b06d5f..6c1ef145391a207576a552d8f168ff2b274fde4f 100644
--- a/ui/wm/core/capture_controller.h
+++ b/ui/wm/core/capture_controller.h
@@ -7,8 +7,8 @@
#include <map>
-#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/observer_list.h"
#include "ui/aura/client/capture_client.h"
#include "ui/aura/window_observer.h"
#include "ui/wm/wm_export.h"
@@ -39,6 +39,8 @@ class WM_EXPORT CaptureController : public aura::client::CaptureClient {
void ReleaseCapture(aura::Window* window) override;
aura::Window* GetCaptureWindow() override;
aura::Window* GetGlobalCaptureWindow() override;
+ void AddObserver(aura::client::CaptureClientObserver* observer) override;
+ void RemoveObserver(aura::client::CaptureClientObserver* observer) override;
private:
friend class ScopedCaptureClient;
@@ -58,6 +60,8 @@ class WM_EXPORT CaptureController : public aura::client::CaptureClient {
// The delegates notified when capture changes.
std::map<aura::Window*, aura::client::CaptureDelegate*> delegates_;
+ base::ObserverList<aura::client::CaptureClientObserver> observers_;
+
DISALLOW_COPY_AND_ASSIGN(CaptureController);
};
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_capture_client.cc ('k') | ui/wm/core/capture_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698