chromium/third_party/blink/public/mojom/frame/lifecycle.mojom

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module blink.mojom;

// The frame visibility status.
enum FrameVisibility {
  // Rendered but not in the current viewport.
  kRenderedOutOfViewport,
  // Rendered in current viewport.
  kRenderedInViewport,
  // Not visible, no layout object created. ie. display: none
  kNotRendered,
};

// The frame lifecycle state.
enum FrameLifecycleState {
  // State is normal running.
  kRunning,
  // Paused state is used for nested event loops. Does not fire
  // frozen, resumed events on the document.
  kPaused,
  // State is frozen, pause all media. Do not resume media
  // when moving to kRunning.
  kFrozen,
  // State is frozen, auto resume media when moving to kRunning.
  kFrozenAutoResumeMedia,
};