| 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 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 // The delegate Blink provides to WebPresentationClient in order to get updates. | 10 // The delegate Blink provides to WebPresentationClient in order to get updates. |
| 11 class WebPresentationController { | 11 class WebPresentationController { |
| 12 public: | 12 public: |
| 13 virtual ~WebPresentationController() { } | 13 virtual ~WebPresentationController() { } |
| 14 | 14 |
| 15 // Called when the presentation screen availability changes. | 15 // Called when the presentation screen availability changes. |
| 16 // May not be called if there's no registered listener for the event. | 16 // May not be called if there's no registered listener for the event. |
| 17 virtual void didChangeAvailability(bool available) = 0; | 17 virtual void didChangeAvailability(bool available) = 0; |
| 18 | 18 |
| 19 // Indicates if the frame has listeners to the |availablechange| event. | 19 // Indicates if the frame has listeners to the |availablechange| event. |
| 20 virtual bool isAvailableChangeWatched() const = 0; | 20 virtual bool isAvailableChangeWatched() const = 0; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace blink | 23 } // namespace blink |
| 24 | 24 |
| 25 #endif // WebPresentationController_h | 25 #endif // WebPresentationController_h |
| OLD | NEW |