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

Unified Diff: Source/modules/presentation/PresentationController.cpp

Issue 940503002: [PresentationAPI] Added plumbing for start/joinSession from JS to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Full change Created 5 years, 10 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: Source/modules/presentation/PresentationController.cpp
diff --git a/Source/modules/presentation/PresentationController.cpp b/Source/modules/presentation/PresentationController.cpp
index 5465efa84fb3c9727818a280134328be062e6675..3b0c26cc2850685fde0b097d2223cd9fd8df2522 100644
--- a/Source/modules/presentation/PresentationController.cpp
+++ b/Source/modules/presentation/PresentationController.cpp
@@ -74,6 +74,24 @@ void PresentationController::updateAvailableChangeWatched(bool watched)
m_client->updateAvailableChangeWatched(watched);
}
+void PresentationController::startSession(const String& presentationUrl, const String& presentationId, WebPresentationSessionClientCallbacks* callbacks)
+{
+ if (!m_client) {
+ delete callbacks;
+ return;
+ }
+ m_client->startSession(presentationUrl, presentationId, callbacks);
+}
+
+void PresentationController::joinSession(const String& presentationUrl, const String& presentationId, WebPresentationSessionClientCallbacks* callbacks)
+{
+ if (!m_client) {
+ delete callbacks;
+ return;
+ }
+ m_client->joinSession(presentationUrl, presentationId, callbacks);
+}
+
void PresentationController::setPresentation(Presentation* presentation)
{
m_presentation = presentation;
« no previous file with comments | « Source/modules/presentation/PresentationController.h ('k') | Source/modules/presentation/PresentationError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698