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

Unified Diff: ui/aura/mus/capture_synchronizer.h

Issue 2674683002: Revert: Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients (Closed)
Patch Set: 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
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ui/aura/mus/capture_synchronizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/capture_synchronizer.h
diff --git a/ui/aura/mus/capture_synchronizer.h b/ui/aura/mus/capture_synchronizer.h
index 4b300160f296e9d4718a8a587ef042eefaea1eb4..87bce872168d8c50d69ab3361b1d2643d8affb9b 100644
--- a/ui/aura/mus/capture_synchronizer.h
+++ b/ui/aura/mus/capture_synchronizer.h
@@ -28,21 +28,18 @@
// CaptureSynchronizer is resonsible for keeping capture in sync between aura
// and the mus server.
-class AURA_EXPORT CaptureSynchronizer : public WindowObserver,
- public client::CaptureClientObserver {
+class CaptureSynchronizer : public WindowObserver,
+ public client::CaptureClientObserver {
public:
CaptureSynchronizer(CaptureSynchronizerDelegate* delegate,
- ui::mojom::WindowTree* window_tree);
+ ui::mojom::WindowTree* window_tree,
+ client::CaptureClient* capture_client);
~CaptureSynchronizer() override;
WindowMus* capture_window() { return capture_window_; }
// Called when the server side wants to change capture to |window|.
void SetCaptureFromServer(WindowMus* window);
-
- // Called when the |capture_client| has been set or will be unset.
- void AttachToCaptureClient(client::CaptureClient* capture_client);
- void DetachFromCaptureClient(client::CaptureClient* capture_client);
private:
// Internal implementation for capture changes. Adds/removes observer as
@@ -57,6 +54,7 @@
CaptureSynchronizerDelegate* delegate_;
ui::mojom::WindowTree* window_tree_;
+ client::CaptureClient* capture_client_;
// Window that currently has capture.
WindowMus* capture_window_ = nullptr;
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ui/aura/mus/capture_synchronizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698