blob: d619fed9e3fb01dadb9d9387c6490b822607af3c [file] [log] [blame]
// 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 enum is persisted to logs, and therefore is append-only and should not be reordered.
*/
};