OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module presentation; |
| 6 |
| 7 interface PresentationService { |
| 8 // Returns the last screen availability state if it’s changed since the last |
| 9 // time the method was called. The client has to call this method again when |
| 10 // handling the result (provided via Mojo callback) to get the next update |
| 11 // about the availability status. |
| 12 // May start discovery of the presentation screens. The implementation might |
| 13 // stop discovery once there are no active calls to GetScreenAvailability. |
| 14 // |presentation_url| can be specified to help the implementation to filter |
| 15 // out incompatible screens. |
| 16 GetScreenAvailability(string? presentation_url) => (bool available); |
| 17 |
| 18 // Called when the frame no longer listens to the |
| 19 // |availablechange| event. |
| 20 OnScreenAvailabilityListenerRemoved(); |
| 21 }; |
OLD | NEW |