| Index: Source/modules/presentation/PresentationController.h
|
| diff --git a/Source/modules/presentation/PresentationController.h b/Source/modules/presentation/PresentationController.h
|
| index 3b1ea1f74da7deefaba029a0500fc3c56a1f2261..39e4fd12dbfd4ea2c018e51c881224f26cfbf240 100644
|
| --- a/Source/modules/presentation/PresentationController.h
|
| +++ b/Source/modules/presentation/PresentationController.h
|
| @@ -16,6 +16,7 @@
|
| namespace blink {
|
|
|
| class LocalFrame;
|
| +class WebPresentationAvailabilityCallback;
|
| class WebPresentationSessionClient;
|
| enum class WebPresentationSessionState;
|
|
|
| @@ -38,6 +39,8 @@ public:
|
|
|
| static void provideTo(LocalFrame&, WebPresentationClient*);
|
|
|
| + WebPresentationClient* client();
|
| +
|
| // Implementation of HeapSupplement.
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| @@ -48,10 +51,6 @@ public:
|
| virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresentationSessionState) override;
|
| virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, const WebString&) override;
|
|
|
| - // Called when the first listener was added to or the last listener was removed from the
|
| - // |availablechange| event.
|
| - void updateAvailableChangeWatched(bool watched);
|
| -
|
| // Called when the frame wants to start a new presentation.
|
| void startSession(const String& presentationUrl, const String& presentationId, WebPresentationSessionClientCallbacks*);
|
|
|
| @@ -70,6 +69,9 @@ public:
|
| // Called when the frame wants to close an existing presentation.
|
| void closeSession(const String& url, const String& presentationId);
|
|
|
| + // Called when the frame wants to know the availability of a device to present.
|
| + void getAvailability(const String& presentationUrl, WebPresentationAvailabilityCallbacks*);
|
| +
|
| // Connects the |Presentation| object with this controller.
|
| void setPresentation(Presentation*);
|
|
|
|
|