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

Unified Diff: ui/views/widget/desktop_aura/desktop_capture_client.h

Issue 2626013005: Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients. (Closed)
Patch Set: another approach to attach capture client Created 3 years, 11 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: ui/views/widget/desktop_aura/desktop_capture_client.h
diff --git a/ui/views/widget/desktop_aura/desktop_capture_client.h b/ui/views/widget/desktop_aura/desktop_capture_client.h
index f2971279d78e495618afb16e961fe98e9539e9e9..fcc6f71e40160e67f726034e79ed95496ffecaf4 100644
--- a/ui/views/widget/desktop_aura/desktop_capture_client.h
+++ b/ui/views/widget/desktop_aura/desktop_capture_client.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/observer_list.h"
#include "ui/aura/client/capture_client.h"
#include "ui/views/views_export.h"
@@ -54,6 +55,8 @@ class VIEWS_EXPORT DesktopCaptureClient : public aura::client::CaptureClient {
// Set of DesktopCaptureClients.
static CaptureClients* capture_clients_;
+ base::ObserverList<aura::client::CaptureClientObserver> observers_;
+
DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient);
};

Powered by Google App Engine
This is Rietveld 408576698