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

Unified Diff: ui/aura/client/capture_client_observer.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/aura/client/capture_client.h ('k') | ui/aura/client/default_capture_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/capture_client_observer.h
diff --git a/ui/aura/client/capture_client_observer.h b/ui/aura/client/capture_client_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..19031f2db3f94a64379b20f5d47eacd3b0113d91
--- /dev/null
+++ b/ui/aura/client/capture_client_observer.h
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_AURA_CLIENT_CAPTURE_CLIENT_OBSERVER_H_
+#define UI_AURA_CLIENT_CAPTURE_CLIENT_OBSERVER_H_
+
+#include "ui/aura/aura_export.h"
+
+namespace aura {
+class Window;
+
+namespace client {
+
+// Used to observe changes in capture.
+class AURA_EXPORT CaptureClientObserver {
+ public:
+ virtual void OnCaptureChanged(Window* lost_capture,
+ Window* gained_capture) = 0;
+
+ protected:
+ virtual ~CaptureClientObserver() {}
+};
+
+} // namespace client
+} // namespace aura
+
+#endif // UI_AURA_CLIENT_CAPTURE_CLIENT_OBSERVER_H_
« no previous file with comments | « ui/aura/client/capture_client.h ('k') | ui/aura/client/default_capture_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698