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

Side by Side Diff: third_party/WebKit/public/platform/modules/manifest/manifest.mojom

Issue 1913043002: Convert ManifestManager IPCs to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
(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/gfx/geometry/mojo/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 {
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.
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<gfx.mojom.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;
53 string? gcm_sender_id;
54 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698