Index: Source/modules/presentation/PresentationController.cpp |
diff --git a/Source/modules/presentation/PresentationController.cpp b/Source/modules/presentation/PresentationController.cpp |
index f3b84a851d2e7ff9ebbf9450b42bd90eadd44cde..6492c29b5099cf7a509bdc7b10bbd89571a61218 100644 |
--- a/Source/modules/presentation/PresentationController.cpp |
+++ b/Source/modules/presentation/PresentationController.cpp |
@@ -49,6 +49,11 @@ void PresentationController::provideTo(LocalFrame& frame, WebPresentationClient* |
WillBeHeapSupplement<LocalFrame>::provideTo(frame, PresentationController::supplementName(), PresentationController::create(frame, client)); |
} |
+WebPresentationClient* PresentationController::client() |
+{ |
+ return m_client; |
+} |
+ |
DEFINE_TRACE(PresentationController) |
{ |
visitor->trace(m_presentation); |
@@ -58,21 +63,11 @@ DEFINE_TRACE(PresentationController) |
void PresentationController::didChangeAvailability(bool available) |
{ |
- if (m_presentation) |
- m_presentation->didChangeAvailability(available); |
} |
bool PresentationController::isAvailableChangeWatched() const |
{ |
- if (!m_presentation) |
- return false; |
- return m_presentation->isAvailableChangeWatched(); |
-} |
- |
-void PresentationController::updateAvailableChangeWatched(bool watched) |
-{ |
- if (m_client) |
- m_client->updateAvailableChangeWatched(watched); |
+ return false; |
} |
void PresentationController::didStartDefaultSession(WebPresentationSessionClient* sessionClient) |
@@ -148,6 +143,13 @@ void PresentationController::closeSession(const String& url, const String& prese |
m_client->closeSession(url, presentationId); |
} |
+void PresentationController::getAvailability(const String& presentationUrl, WebPresentationAvailabilityCallbacks* callbacks) |
+{ |
+ if (!m_client) |
+ return; |
+ m_client->getAvailability(presentationUrl, callbacks); |
+} |
+ |
void PresentationController::setPresentation(Presentation* presentation) |
{ |
m_presentation = presentation; |