chromium/third_party/blink/public/mojom/window_features/window_features.mojom

// Copyright 2016 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;

import "ui/gfx/geometry/mojom/geometry.mojom";

struct WindowFeatures {
    gfx.mojom.Rect bounds;

    // Rect cannot differentiate between 0 and unset values.
    // These explicitly define which values were set in |bounds|.
    bool has_x = false;
    bool has_y = false;
    bool has_width = false;
    bool has_height = false;

    bool is_popup = false;

    // Whether the created window is a partitioned popin. If true, `is_popup`
    // must be true.
    // See: https://explainers-by-googlers.github.io/partitioned-popins/
    bool is_partitioned_popin = false;
};