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

import("//build/config/chromecast_build.gni")
import("//build/config/features.gni")

declare_args() {
  # Whether or not to use external popup menu.
  use_external_popup_menu = is_android || (is_apple && use_blink) || is_ohos

  # Whether to perform critical memory pressure handling when in foreground (if
  # false, critical memory pressure is treated like moderate pressure in foreground).
  allow_critical_memory_pressure_handling_in_foreground =
      is_castos || is_cast_android

  # Whether or not MBI mode (Multiple Blink Isolates) should be enabled,
  # depending on the build argument.
  mbi_mode =
      is_linux || is_chromeos || is_mac || is_win || is_android || is_ohos
}

enable_screen_capture = is_linux || is_chromeos || is_mac || is_win ||
                        is_android || is_fuchsia || is_ohos