| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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.enterprise.deviceAttributes</code> API to read device | 5 // Use the <code>chrome.enterprise.deviceAttributes</code> API to read device |
| 6 // attributes. | 6 // attributes. |
| 7 namespace enterprise.deviceAttributes { | 7 [use_movable_types=true] namespace enterprise.deviceAttributes { |
| 8 callback GetDirectoryDeviceIdCallback = void (DOMString deviceId); | 8 callback GetDirectoryDeviceIdCallback = void (DOMString deviceId); |
| 9 | 9 |
| 10 interface Functions { | 10 interface Functions { |
| 11 // Fetches the value of | 11 // Fetches the value of |
| 12 // <a href="https://developers.google.com/admin-sdk/directory/v1/guides/mana
ge-chrome-devices">the device identifier of the directory API</a>, | 12 // <a href="https://developers.google.com/admin-sdk/directory/v1/guides/mana
ge-chrome-devices">the device identifier of the directory API</a>, |
| 13 // that is generated by the server and identifies the cloud record of the | 13 // that is generated by the server and identifies the cloud record of the |
| 14 // device for querying in the cloud directory API. | 14 // device for querying in the cloud directory API. |
| 15 // |callback| : Called with the device identifier of the directory API when | 15 // |callback| : Called with the device identifier of the directory API when |
| 16 // received. | 16 // received. |
| 17 void getDirectoryDeviceId(GetDirectoryDeviceIdCallback callback); | 17 void getDirectoryDeviceId(GetDirectoryDeviceIdCallback callback); |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 }; | 20 }; |
| OLD | NEW |