Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebPresentationClient_h | 5 #ifndef WebPresentationClient_h |
| 6 #define WebPresentationClient_h | 6 #define WebPresentationClient_h |
| 7 | 7 |
| 8 #include "public/platform/WebCallbacks.h" | |
| 9 | |
| 8 namespace blink { | 10 namespace blink { |
| 9 | 11 |
| 10 class WebPresentationController; | 12 class WebPresentationController; |
| 13 class WebPresentationSessionClient; | |
| 14 class WebString; | |
| 15 | |
| 16 struct WebPresentationError; | |
| 17 | |
| 18 typedef WebCallbacks<WebPresentationSessionClient, WebPresentationError> | |
| 19 WebPresentationSessionClientCallbacks; | |
| 11 | 20 |
| 12 // The implementation the embedder has to provide for the Presentation API to wo rk. | 21 // The implementation the embedder has to provide for the Presentation API to wo rk. |
| 13 class WebPresentationClient { | 22 class WebPresentationClient { |
| 14 public: | 23 public: |
| 15 virtual ~WebPresentationClient() { } | 24 virtual ~WebPresentationClient() { } |
| 16 | 25 |
| 17 // Passes the Blink-side delegate to the embedder. | 26 // Passes the Blink-side delegate to the embedder. |
| 18 virtual void setController(WebPresentationController*) = 0; | 27 virtual void setController(WebPresentationController*) = 0; |
| 19 | 28 |
| 20 // Called when the frame attaches the first event listener to or removes the | 29 // Called when the frame attaches the first event listener to or removes the |
| 21 // last event listener from the |availablechange| event. | 30 // last event listener from the |availablechange| event. |
| 22 virtual void updateAvailableChangeWatched(bool watched) = 0; | 31 virtual void updateAvailableChangeWatched(bool watched) = 0; |
| 32 | |
| 33 // Called when the frame request to start a new session. | |
| 34 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.
| |
| 35 | |
| 36 // Called when the frame request to start a new session. | |
| 37 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.
| |
| 23 }; | 38 }; |
| 24 | 39 |
| 25 } // namespace blink | 40 } // namespace blink |
| 26 | 41 |
| 27 #endif // WebPresentationClient_h | 42 #endif // WebPresentationClient_h |
| OLD | NEW |