Chromium Code Reviews| Index: content/common/presentation/presentation_service.mojom |
| diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c6c3d76d50e3940ba455a661bc7790cc89d49ef2 |
| --- /dev/null |
| +++ b/content/common/presentation/presentation_service.mojom |
| @@ -0,0 +1,20 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module presentation; |
| + |
| +interface PresentationService { |
| + // Returns the last session state if it’s changed since the last time the |
|
mark a. foltz
2015/01/28 19:37:02
Returns the last screen availability state
whywhat
2015/01/28 20:26:03
Done.
|
| + // method was called. The client has to call this method again when handling |
| + // the callback to get the next updates about the last availability status. |
|
mark a. foltz
2015/01/28 19:37:02
Which callback?
mark a. foltz
2015/01/28 19:37:02
s/updates/update/
s/last//
whywhat
2015/01/28 20:26:03
Done.
whywhat
2015/01/28 20:26:04
Done.
|
| + // May start discovery of the presentation screens. The implementation might |
| + // stop discovery once there are no active calls to GetScreenAvailability. |
| + // |presentation_url| might be specified to help the |
|
mark a. foltz
2015/01/28 19:37:02
s/might/can/
whywhat
2015/01/28 20:26:04
Done.
|
| + // implementation to filter the incompatible screens. |
|
mark a. foltz
2015/01/28 19:37:02
s/the/out/
whywhat
2015/01/28 20:26:03
Done.
|
| + GetScreenAvailability(string? presentation_url) => (bool available); |
| + |
| + // Called when the frame no longer listens to the |
| + // |availablechange| event. |
| + OnScreenAvailabilityListenerRemoved(); |
| +}; |