Index: Source/modules/presentation/PresentationController.cpp |
diff --git a/Source/modules/presentation/PresentationController.cpp b/Source/modules/presentation/PresentationController.cpp |
index 3b0c26cc2850685fde0b097d2223cd9fd8df2522..95bc91ab58e0ed5618af185d92d6c4a6a4d51549 100644 |
--- a/Source/modules/presentation/PresentationController.cpp |
+++ b/Source/modules/presentation/PresentationController.cpp |
@@ -6,6 +6,7 @@ |
#include "modules/presentation/PresentationController.h" |
#include "core/frame/LocalFrame.h" |
+#include "modules/presentation/PresentationSession.h" |
#include "public/platform/modules/presentation/WebPresentationClient.h" |
namespace blink { |
@@ -74,6 +75,17 @@ void PresentationController::updateAvailableChangeWatched(bool watched) |
m_client->updateAvailableChangeWatched(watched); |
} |
+void PresentationController::didStartDefaultPresentation(WebPresentationSessionClient* sessionClient) |
+{ |
+ if (!m_presentation) { |
+ PresentationSession::dispose(sessionClient); |
+ return; |
+ } |
+ |
+ PresentationSession* session = PresentationSession::take(sessionClient, m_presentation); |
mlamouri (slow - plz ping)
2015/03/06 22:43:42
I like how you are re-using the ::take() and ::dis
whywhat
2015/03/10 13:00:44
Well, once you've gotten used to the ownership tra
|
+ m_presentation->didStartDefaultPresentation(session); |
+} |
+ |
void PresentationController::startSession(const String& presentationUrl, const String& presentationId, WebPresentationSessionClientCallbacks* callbacks) |
{ |
if (!m_client) { |