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

Unified Diff: ui/views/mus/mus_client.h

Issue 2626013005: Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients. (Closed)
Patch Set: fix leak in test 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 | « ui/views/mus/desktop_window_tree_host_mus_unittest.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/mus_client.h
diff --git a/ui/views/mus/mus_client.h b/ui/views/mus/mus_client.h
index cccc44b082fcfeb4efd46b6119b25f550e63f1c7..568f7164e28fb91e3c27da198eded209615a2219 100644
--- a/ui/views/mus/mus_client.h
+++ b/ui/views/mus/mus_client.h
@@ -12,6 +12,7 @@
#include <vector>
#include "base/macros.h"
+#include "ui/aura/client/capture_client.h"
#include "ui/aura/mus/window_tree_client_delegate.h"
#include "ui/base/dragdrop/os_exchange_data_provider_factory.h"
#include "ui/views/mus/mus_export.h"
@@ -101,6 +102,14 @@ class VIEWS_MUS_EXPORT MusClient
NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params,
internal::NativeWidgetDelegate* delegate);
+ // Called when the capture client has been set for a window to notify
+ // PointerWatcherEventRouter and CaptureSynchronizer.
+ void OnCaptureClientSet(aura::client::CaptureClient* capture_client);
+
+ // Called when the capture client will be unset for a window to notify
+ // PointerWatcherEventRouter and CaptureSynchronizer.
+ void OnCaptureClientUnset(aura::client::CaptureClient* capture_client);
+
void AddObserver(MusClientObserver* observer);
void RemoveObserver(MusClientObserver* observer);
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus_unittest.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698