Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 blink.mojom; | |
| 6 | |
| 7 import "ui/mojo/geometry/geometry.mojom"; | |
| 8 import "url/mojo/url.mojom"; | |
| 9 | |
| 10 enum DisplayMode { | |
| 11 UNDEFINED, // User for override setting (ie. not set). | |
| 12 BROWSER, | |
| 13 MINIMAL_UI, | |
| 14 STANDALONE, | |
| 15 FULLSCREEN, | |
| 16 }; | |
| 17 | |
| 18 enum ScreenOrientationLockType { | |
| 19 DEFAULT = 0, // Equivalent to unlock. | |
| 20 PORTRAIT_PRIMARY, | |
| 21 PORTRAIT_SECONDARY, | |
| 22 LANDSCAPE_PRIMARY, | |
| 23 LANDSCAPE_SECONDARY, | |
| 24 ANY, | |
| 25 LANDSCAPE, | |
| 26 PORTRAIT, | |
| 27 NATURAL, | |
| 28 }; | |
| 29 | |
| 30 struct ManifestIcon { | |
| 31 url.mojom.Url src; | |
| 32 string? type; | |
| 33 array<mojo.Size?> sizes; | |
| 34 }; | |
| 35 | |
| 36 struct RelatedApplication { | |
| 37 string? platform; | |
| 38 url.mojom.Url url; | |
| 39 string? id; | |
| 40 }; | |
| 41 | |
| 42 struct Manifest { | |
| 43 string? name; | |
| 44 string? short_name; | |
| 45 url.mojom.Url? start_url; | |
| 46 DisplayMode display; | |
| 47 ScreenOrientationLockType orientation; | |
| 48 array<ManifestIcon>? icons; | |
| 49 array<RelatedApplication>? related_applications; | |
| 50 bool prefer_related_applications; | |
| 51 int64 theme_color; | |
| 52 int64 background_color; | |
|
mlamouri (slow - plz ping)
2016/04/27 13:38:08
OOC, would int32? work?
Sam McNally
2016/04/28 08:25:28
int32 + a bool would work.
| |
| 53 string? gcm_sender_id; | |
| 54 }; | |
| OLD | NEW |