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 WebPresentationController_h | 5 #ifndef WebPresentationController_h |
6 #define WebPresentationController_h | 6 #define WebPresentationController_h |
7 | 7 |
8 #include "public/platform/modules/presentation/WebPresentationSessionClient.h" | |
mlamouri (slow - plz ping)
2015/03/23 17:54:16
You should make the enum an enum class so you can
whywhat
2015/03/23 21:12:16
Done.
| |
9 | |
8 namespace blink { | 10 namespace blink { |
9 | 11 |
10 class WebPresentationSessionClient; | |
11 | |
12 // The delegate Blink provides to WebPresentationClient in order to get updates. | 12 // The delegate Blink provides to WebPresentationClient in order to get updates. |
13 class WebPresentationController { | 13 class WebPresentationController { |
14 public: | 14 public: |
15 virtual ~WebPresentationController() { } | 15 virtual ~WebPresentationController() { } |
16 | 16 |
17 // Called when the presentation screen availability changes. | 17 // Called when the presentation screen availability changes. |
18 // May not be called if there's no registered listener for the event. | 18 // May not be called if there's no registered listener for the event. |
19 virtual void didChangeAvailability(bool available) = 0; | 19 virtual void didChangeAvailability(bool available) = 0; |
20 | 20 |
21 // Indicates if the frame has listeners to the |availablechange| event. | 21 // Indicates if the frame has listeners to the |availablechange| event. |
22 virtual bool isAvailableChangeWatched() const = 0; | 22 virtual bool isAvailableChangeWatched() const = 0; |
23 | 23 |
24 // Called when the presentation session is started by the embedder using | 24 // Called when the presentation session is started by the embedder using |
25 // the default presentation URL and id. | 25 // the default presentation URL and id. |
26 virtual void didStartDefaultSession(WebPresentationSessionClient*) = 0; | 26 virtual void didStartDefaultSession(WebPresentationSessionClient*) = 0; |
27 | |
28 // Called when the state of a session changes. | |
29 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent ationSessionClient::SessionState) = 0; | |
Peter Beverloo
2015/03/20 19:07:40
This means that the Chromium patch has to land fir
Peter Beverloo
2015/03/20 19:16:59
Scrap that :-).
whywhat
2015/03/23 21:12:16
Acknowledged.
whywhat
2015/03/23 21:12:16
Acknowledged.
| |
27 }; | 30 }; |
28 | 31 |
29 } // namespace blink | 32 } // namespace blink |
30 | 33 |
31 #endif // WebPresentationController_h | 34 #endif // WebPresentationController_h |
OLD | NEW |