blob: c3e4c392513e032565c3f71f670824ee7ba5090f [file] [log] [blame]
# Copyright 2022 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/chromeos/ui_mode.gni")
# gn args.
declare_args() {
# Used to enable the Accessibility Service. Override this in
# gn args on supported platforms (see below).
enable_accessibility_service = false
}
# Generated args.
declare_args() {
# Shortcut for only allowing the service to run on Chrome OS Ash, Windows,
# Mac, Fuchsia, and Linux when the buildflag above is enabled.
# This is exposed with the macro ENABLE_ACCESSIBILITY_SERVICE.
enable_accessibility_service_internal =
enable_accessibility_service &&
(is_chromeos_ash || is_linux || is_mac || is_win || is_fuchsia)
# Used to determine if the Accessibility Service should run
# assistive technology features, or if the service is running
# in a browser embedded in an OS that already has those features.
supports_os_accessibility_service = is_fuchsia || is_chromeos_ash
}