| 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo; | 6 module mojo; |
| 7 | 7 |
| 8 // A service to expose device specific information. | 8 // A service to expose device specific information. |
| 9 // All operations are stateless. | 9 // All operations are stateless. |
| 10 interface DeviceInfo { | 10 interface DeviceInfo { |
| 11 // The device type this service is running on. It can be a function of things | 11 // The device type this service is running on. It can be a function of things |
| 12 // like whether there's an attached screen and its size, etc. | 12 // like whether there's an attached screen and its size, etc. |
| 13 enum DeviceType { | 13 enum DeviceType { |
| 14 UNKNOWN, | 14 UNKNOWN, |
| 15 HEADLESS, // No attached display. Useful in tests. | 15 HEADLESS, // No attached display. Useful in tests. |
| 16 WATCH, // Display smaller than 3.5". | 16 WATCH, // Display smaller than 3.5". |
| 17 PHONE, // Display smaller than 6.5" and larger than 3.5". | 17 PHONE, // Display smaller than 6.5" and larger than 3.5". |
| 18 TABLET, // Display smaller than 10.5" and larger than 6.5". | 18 TABLET, // Display smaller than 10.5" and larger than 6.5". |
| 19 | 19 |
| 20 // Anything with a display larger than 10.5" with an attached keyboard. | 20 // Anything with a display larger than 10.5" with an attached keyboard. |
| 21 DESKTOP, | 21 DESKTOP, |
| 22 | 22 |
| 23 // Anything with a display larger than 10.5" without an attached keyboard. | 23 // Anything with a display larger than 10.5" without an attached keyboard. |
| 24 TV, | 24 TV, |
| 25 }; | 25 }; |
| 26 GetDeviceType() => (DeviceType device_type); | 26 GetDeviceType() => (DeviceType device_type); |
| 27 }; | 27 }; |
| OLD | NEW |