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

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

Issue 2626013005: Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients. (Closed)
Patch Set: separate out changes for removing GetCaptureClient() 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/mus/mus_client.h
diff --git a/ui/views/mus/mus_client.h b/ui/views/mus/mus_client.h
index 72792a72c520077a42ff6d760307bdc04bb16de2..e799d4734b6a04b9b3bff65e373bacd23afc991d 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);

Powered by Google App Engine
This is Rietveld 408576698