Chromium Code Reviews| 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 [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.
| |
| 8 interface PresentationService { | |
| 9 /* NavigatorPresentation idl */ | |
| 10 | |
| 11 // Called when a listener is added to navigator.presentation.availablechange. | |
| 12 // Might start device discovery. | |
| 13 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.
| |
| 14 | |
| 15 // Called when a listener is removed from | |
| 16 // navigator.presentation.availablechange. | |
| 17 // Might stop device discovery. | |
| 18 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 :(
| |
| 19 }; | |
| 20 | |
| 21 interface PresentationServiceClient { | |
| 22 // Called when the device availability changes. | |
| 23 // Fires the |availablechange| event. | |
|
Peter Beverloo
2015/01/07 19:41:21
+"in JavaScript."
whywhat
2015/01/08 17:28:53
Done.
| |
| 24 DeviceAvailabilityChanged(bool available); | |
| 25 }; | |
| OLD | NEW |