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 namespace blink { | 8 namespace blink { |
9 | 9 |
10 class WebPresentationController; | 10 class WebPresentationController; |
11 | 11 |
12 // The implementation the embedder has to provide for the Presentation API to wo
rk. | 12 // The implementation the embedder has to provide for the Presentation API to wo
rk. |
13 class WebPresentationClient { | 13 class WebPresentationClient { |
14 public: | 14 public: |
15 virtual ~WebPresentationClient() { } | 15 virtual ~WebPresentationClient() { } |
16 | 16 |
17 // Passes the Blink-side delegate to the embedder. | 17 // Passes the Blink-side delegate to the embedder. |
18 virtual void setController(WebPresentationController*) = 0; | 18 virtual void setController(WebPresentationController*) = 0; |
19 | 19 |
20 // Called when the frame attaches the first event listener to or removes the | 20 // Called when the frame attaches the first event listener to or removes the |
21 // last event listener from the |availablechange| event. | 21 // last event listener from the |availablechange| event. |
22 virtual void updateAvailableChangeWatched(bool watched) = 0; | 22 virtual void updateAvailableChangeWatched(bool watched) = 0; |
23 }; | 23 }; |
24 | 24 |
25 } // namespace blink | 25 } // namespace blink |
26 | 26 |
27 #endif // WebPresentationClient_h | 27 #endif // WebPresentationClient_h |
OLD | NEW |