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..ce0c5404771a15dc38a2b8c56aa6f748f611b4e5 |
| --- /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/gfx/geometry/mojo/geometry.mojom"; |
| +import "url/mojo/url.mojom"; |
| + |
| +enum DisplayMode { |
| + UNDEFINED, // User for override setting (ie. not set). |
| + BROWSER, |
| + MINIMAL_UI, |
| + STANDALONE, |
| + FULLSCREEN, |
| +}; |
| + |
| +enum ScreenOrientationLockType { |
|
dcheng
2016/06/07 22:00:52
These enums have to match things in (not obviously
Sam McNally
2016/06/08 10:28:07
Done.
|
| + 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<gfx.mojom.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; |
| + string? gcm_sender_id; |
| +}; |