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

Unified Diff: public/platform/WebPresentationClient.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 | « Source/web/WebLocalFrameImpl.cpp ('k') | public/platform/WebPresentationController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPresentationClient.h
diff --git a/public/platform/WebPresentationClient.h b/public/platform/WebPresentationClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..e09436322a0c58fd706935829288182c088c2fad
--- /dev/null
+++ b/public/platform/WebPresentationClient.h
@@ -0,0 +1,27 @@
+// 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 WebPresentationClient_h
+#define WebPresentationClient_h
+
+namespace blink {
+
+class WebPresentationController;
+
+// The implementation the embedder has to provide for the Presentation API to work.
+class WebPresentationClient {
+public:
+ virtual ~WebPresentationClient() { }
+
+ // Passes the Blink-side delegate to the embedder.
+ virtual void setController(WebPresentationController*) = 0;
+
+ // Called when the frame attaches the first event listener to or removes the
+ // last event listener from the |availablechange| event.
+ virtual void updateAvailableChangeWatched(bool watched) = 0;
+};
+
+} // namespace blink
+
+#endif // WebPresentationClient_h
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | public/platform/WebPresentationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698