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

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

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
Index: Source/modules/presentation/PresentationController.cpp
diff --git a/Source/modules/presentation/PresentationController.cpp b/Source/modules/presentation/PresentationController.cpp
index b5ccfa76bb74b0225a7e1cdb372ea23179f5a159..e16165776cef9fd356f81d69ab16fe8a0e5a526e 100644
--- a/Source/modules/presentation/PresentationController.cpp
+++ b/Source/modules/presentation/PresentationController.cpp
@@ -104,6 +104,13 @@ void PresentationController::joinSession(const String& presentationUrl, const St
m_client->joinSession(presentationUrl, presentationId, callbacks);
}
+void PresentationController::closeSession(const String& url, const String& presentationId)
+{
+ if (!m_client)
+ return;
+ m_client->closeSession(url, presentationId);
+}
+
void PresentationController::setPresentation(Presentation* presentation)
{
m_presentation = presentation;
« no previous file with comments | « Source/modules/presentation/PresentationController.h ('k') | Source/modules/presentation/PresentationSession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698