Chromium Code Reviews| Index: public/platform/modules/presentation/WebPresentationClient.h |
| diff --git a/public/platform/modules/presentation/WebPresentationClient.h b/public/platform/modules/presentation/WebPresentationClient.h |
| index e09436322a0c58fd706935829288182c088c2fad..31942ce9509cc1661ff750003c185d7d8659a221 100644 |
| --- a/public/platform/modules/presentation/WebPresentationClient.h |
| +++ b/public/platform/modules/presentation/WebPresentationClient.h |
| @@ -5,9 +5,18 @@ |
| #ifndef WebPresentationClient_h |
| #define WebPresentationClient_h |
| +#include "public/platform/WebCallbacks.h" |
| + |
| namespace blink { |
| class WebPresentationController; |
| +class WebPresentationSessionClient; |
| +class WebString; |
| + |
| +struct WebPresentationError; |
| + |
| +typedef WebCallbacks<WebPresentationSessionClient, WebPresentationError> |
| + WebPresentationSessionClientCallbacks; |
| // The implementation the embedder has to provide for the Presentation API to work. |
| class WebPresentationClient { |
| @@ -20,6 +29,12 @@ public: |
| // Called when the frame attaches the first event listener to or removes the |
| // last event listener from the |availablechange| event. |
| virtual void updateAvailableChangeWatched(bool watched) = 0; |
| + |
| + // Called when the frame request to start a new session. |
| + virtual void startSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0; |
|
mlamouri (slow - plz ping)
2015/02/23 13:46:11
Could you specify in the comment that the ownershi
whywhat
2015/02/25 14:11:06
Done.
|
| + |
| + // Called when the frame request to start a new session. |
| + virtual void joinSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0; |
|
mlamouri (slow - plz ping)
2015/02/23 13:46:11
ditto
whywhat
2015/02/25 14:11:06
Done.
|
| }; |
| } // namespace blink |