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" | 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "public/platform/WebCommon.h" | |
|
mlamouri (slow - plz ping)
2015/03/06 22:43:42
You probably don't need to add that.
whywhat
2015/03/10 13:00:44
Done.
| |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 class WebPresentationController; | 13 class WebPresentationController; |
| 13 class WebPresentationSessionClient; | 14 class WebPresentationSessionClient; |
| 14 class WebString; | 15 class WebString; |
| 15 struct WebPresentationError; | 16 struct WebPresentationError; |
| 16 | 17 |
| 17 // If session was created, callback's onSuccess() is invoked with the informatio n about the | 18 // If session was created, callback's onSuccess() is invoked with the informatio n about the |
| 18 // presentation session created by the embedder. Otherwise, onError() is invoked with the error code | 19 // presentation session created by the embedder. Otherwise, onError() is invoked with the error code |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 36 virtual void startSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0; | 37 virtual void startSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0; |
| 37 | 38 |
| 38 // Called when the frame request to start a new session. | 39 // Called when the frame request to start a new session. |
| 39 // The ownership of the |callbacks| argument is transferred to the embedder. | 40 // The ownership of the |callbacks| argument is transferred to the embedder. |
| 40 virtual void joinSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0; | 41 virtual void joinSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace blink | 44 } // namespace blink |
| 44 | 45 |
| 45 #endif // WebPresentationClient_h | 46 #endif // WebPresentationClient_h |
| OLD | NEW |