summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/public/mojom/manifest/display_mode.mojom
blob: a6362525acffdf1c3ddab3a18188c41e724ddc98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2017 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;

// This enum should be synced with
// chrome/android/java/src/org/chromium/chrome/browser/webapps/WebDisplayMode.java
// and chrome/browser/web_applications/proto/web_app.proto
// and components/sync/protocol/web_app_specifics.proto
// and tools/metrics/histograms/enum.xml

enum DisplayMode {
  kUndefined, // Used for override setting (ie. not set).

  // The standard display modes that are accepted in the "display" field of the
  // web app manifest: https://www.w3.org/TR/appmanifest/#dom-displaymodetype.
  kBrowser,
  kMinimalUi,
  kStandalone,
  kFullscreen,

  // TODO(crbug.com/937121): This is a non-standard value intended for use in
  // the "display_override" field of the web app manifest:
  // https://github.com/WICG/window-controls-overlay/blob/master/explainer.md.
  kWindowControlsOverlay,

  // This is a non-standard value intended for use in the "display_override"
  // field of the web app manifest: https://github.com/w3c/manifest/issues/737
  kTabbed,

  /**
   * This enum is persisted to logs, and therefore is append-only and should not be reordered.
   */
};