Chromium Code Reviews| Index: third_party/WebKit/public/platform/modules/manifest/manifest.mojom |
| diff --git a/third_party/WebKit/public/platform/modules/manifest/manifest.mojom b/third_party/WebKit/public/platform/modules/manifest/manifest.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5b429c6be9beed3a12fc413d57095635848285c7 |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/modules/manifest/manifest.mojom |
| @@ -0,0 +1,54 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module blink.mojom; |
| + |
| +import "ui/mojo/geometry/geometry.mojom"; |
| +import "url/mojo/url.mojom"; |
| + |
| +enum DisplayMode { |
| + UNDEFINED, // User for override setting (ie. not set). |
| + BROWSER, |
| + MINIMAL_UI, |
| + STANDALONE, |
| + FULLSCREEN, |
| +}; |
| + |
| +enum ScreenOrientationLockType { |
| + DEFAULT = 0, // Equivalent to unlock. |
| + PORTRAIT_PRIMARY, |
| + PORTRAIT_SECONDARY, |
| + LANDSCAPE_PRIMARY, |
| + LANDSCAPE_SECONDARY, |
| + ANY, |
| + LANDSCAPE, |
| + PORTRAIT, |
| + NATURAL, |
| +}; |
| + |
| +struct ManifestIcon { |
| + url.mojom.Url src; |
| + string? type; |
| + array<mojo.Size?> sizes; |
| +}; |
| + |
| +struct RelatedApplication { |
| + string? platform; |
| + url.mojom.Url url; |
| + string? id; |
| +}; |
| + |
| +struct Manifest { |
| + string? name; |
| + string? short_name; |
| + url.mojom.Url? start_url; |
| + DisplayMode display; |
| + ScreenOrientationLockType orientation; |
| + array<ManifestIcon>? icons; |
| + array<RelatedApplication>? related_applications; |
| + bool prefer_related_applications; |
| + int64 theme_color; |
| + 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.
|
| + string? gcm_sender_id; |
| +}; |