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

Unified Diff: public/platform/modules/presentation/WebPresentationClient.h

Issue 1015903002: [Presentation API] Adds close method to Presentation session. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addresses whywhat's comments Created 5 years, 9 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/modules/presentation/PresentationSession.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/presentation/WebPresentationClient.h
diff --git a/public/platform/modules/presentation/WebPresentationClient.h b/public/platform/modules/presentation/WebPresentationClient.h
index f11b22ff5204ab0f86ee172e6226831e079fc184..d1e3dee953911ac9cde3af981fdeda73cf64d6ba 100644
--- a/public/platform/modules/presentation/WebPresentationClient.h
+++ b/public/platform/modules/presentation/WebPresentationClient.h
@@ -6,6 +6,7 @@
#define WebPresentationClient_h
#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebCommon.h"
namespace blink {
@@ -31,13 +32,21 @@ public:
// last event listener from the |availablechange| event.
virtual void updateAvailableChangeWatched(bool watched) = 0;
- // Called when the frame request to start a new session.
+ // Called when the frame requests to start a new session.
// The ownership of the |callbacks| argument is transferred to the embedder.
virtual void startSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0;
- // Called when the frame request to start a new session.
+ // Called when the frame requests to join an existing session.
// The ownership of the |callbacks| argument is transferred to the embedder.
virtual void joinSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0;
+
+ // Called when the frame requests to close an existing session.
+ virtual void closeSession(const WebString& url, const WebString& presentationId)
+ {
+ // TODO(haibinlu): make it pure virtual once Chromium has the
+ // implementation.
+ BLINK_ASSERT_NOT_REACHED();
+ }
};
} // namespace blink
« no previous file with comments | « Source/modules/presentation/PresentationSession.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698