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

Unified Diff: public/platform/WebPresentationController.h

Issue 832263007: Added plumbing for the availablechange event from Blink to WebPresentationClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added onClientDestroyed Created 5 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 | « public/platform/WebPresentationClient.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPresentationController.h
diff --git a/public/platform/WebPresentationController.h b/public/platform/WebPresentationController.h
new file mode 100644
index 0000000000000000000000000000000000000000..abfc9c012884c28d38c0c4967d85d1beed943874
--- /dev/null
+++ b/public/platform/WebPresentationController.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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 WebPresentationController_h
+#define WebPresentationController_h
+
+namespace blink {
+
+// The delegate Blink provides to WebPresentationClient in order to get updates.
+class WebPresentationController {
+public:
+ virtual ~WebPresentationController() { }
+
+ // Called when the presentation screen availability changes.
+ // May not be called if there's no registered listener for the event.
+ virtual void didChangeAvailability(bool available) = 0;
+
+ // Indicates if the frame has listeners to the |availablechange| event.
+ virtual bool isAvailableChangeWatched() const = 0;
+
+ // Called when the corresponding WebPresentationClient is destroyed.
+ virtual void onClientDestroyed() = 0;
+};
+
+} // namespace blink
+
+#endif // WebPresentationController_h
« no previous file with comments | « public/platform/WebPresentationClient.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698