Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: mojo/services/device_info/interfaces/device_info.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 [ServiceName="mojo::DeviceInfo"] 10 [ServiceName="mojo::DeviceInfo"]
11 interface DeviceInfo { 11 interface DeviceInfo {
12 // The device type this service is running on. It can be a function of things 12 // The device type this service is running on. It can be a function of things
13 // like whether there's an attached screen and its size, etc. 13 // like whether there's an attached screen and its size, etc.
14 enum DeviceType { 14 enum DeviceType {
15 UNKNOWN, 15 UNKNOWN,
16 HEADLESS, // No attached display. Useful in tests. 16 HEADLESS, // No attached display. Useful in tests.
17 WATCH, // Display smaller than 3.5". 17 WATCH, // Display smaller than 3.5".
18 PHONE, // Display smaller than 6.5" and larger than 3.5". 18 PHONE, // Display smaller than 6.5" and larger than 3.5".
19 TABLET, // Display smaller than 10.5" and larger than 6.5". 19 TABLET, // Display smaller than 10.5" and larger than 6.5".
20 20
21 // Anything with a display larger than 10.5" with an attached keyboard. 21 // Anything with a display larger than 10.5" with an attached keyboard.
22 DESKTOP, 22 DESKTOP,
23 23
24 // Anything with a display larger than 10.5" without an attached keyboard. 24 // Anything with a display larger than 10.5" without an attached keyboard.
25 TV, 25 TV,
26 }; 26 };
27 GetDeviceType() => (DeviceType device_type); 27 GetDeviceType() => (DeviceType device_type);
28 }; 28 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698