| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // Use the <code>chrome.signedInDevices</code> API to get a list of devices | 5 // Use the <code>chrome.signedInDevices</code> API to get a list of devices |
| 6 // signed into chrome with the same account as the current profile. | 6 // signed into chrome with the same account as the current profile. |
| 7 namespace signedInDevices { | 7 [use_movable_types=true] namespace signedInDevices { |
| 8 enum OS { | 8 enum OS { |
| 9 win, | 9 win, |
| 10 mac, | 10 mac, |
| 11 linux, | 11 linux, |
| 12 chrome_os, | 12 chrome_os, |
| 13 android, | 13 android, |
| 14 ios, | 14 ios, |
| 15 unknown | 15 unknown |
| 16 }; | 16 }; |
| 17 | 17 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 static void get(optional boolean isLocal, DeviceInfoCallback callback); | 55 static void get(optional boolean isLocal, DeviceInfoCallback callback); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 interface Events { | 58 interface Events { |
| 59 // Fired if the DeviceInfo object of any of the signed in devices | 59 // Fired if the DeviceInfo object of any of the signed in devices |
| 60 // change or a new device is added or a device removed. | 60 // change or a new device is added or a device removed. |
| 61 // |callback|: The callback to be invoked with the array of DeviceInfo | 61 // |callback|: The callback to be invoked with the array of DeviceInfo |
| 62 // objects. | 62 // objects. |
| 63 static void onDeviceInfoChange(DeviceInfo[] devices); | 63 static void onDeviceInfoChange(DeviceInfo[] devices); |
| 64 }; | 64 }; |
| 65 }; | 65 }; |
| OLD | NEW |