Chromium Code Reviews| Index: content/common/presentation_service.mojom |
| diff --git a/content/common/presentation_service.mojom b/content/common/presentation_service.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f459280f219b95e85d7c61fca8df8758d952bbf7 |
| --- /dev/null |
| +++ b/content/common/presentation_service.mojom |
| @@ -0,0 +1,25 @@ |
| +// 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; |
| + |
| +[Client=PresentationServiceClient] |
|
mlamouri (slow - plz ping)
2015/01/08 15:08:54
My understanding is that we want to get ride of Cl
whywhat
2015/01/08 17:28:53
Done.
|
| +interface PresentationService { |
| + /* NavigatorPresentation idl */ |
| + |
| + // Called when a listener is added to navigator.presentation.availablechange. |
| + // Might start device discovery. |
| + AddDeviceAvailabilityListener(); |
|
mlamouri (slow - plz ping)
2015/01/08 15:08:54
... instead, you could pass an interface in this m
whywhat
2015/01/08 17:28:53
Done.
|
| + |
| + // Called when a listener is removed from |
| + // navigator.presentation.availablechange. |
| + // Might stop device discovery. |
| + RemoveDeviceAvailabilityListener(); |
|
mlamouri (slow - plz ping)
2015/01/08 15:08:54
... and that one.
whywhat
2015/01/08 17:28:53
Got it. Very convenient :(
|
| +}; |
| + |
| +interface PresentationServiceClient { |
| + // Called when the device availability changes. |
| + // Fires the |availablechange| event. |
|
Peter Beverloo
2015/01/07 19:41:21
+"in JavaScript."
whywhat
2015/01/08 17:28:53
Done.
|
| + DeviceAvailabilityChanged(bool available); |
| +}; |