chromium/chrome/browser/resources/accessibility/BUILD.gn

# Copyright 2020 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")
import("//ui/webui/resources/tools/build_webui.gni")
import("tools/manifest.gni")
if (is_chromeos_lacros) {
  import("strings/extension_strings.gni")
}

build_webui("build") {
  grd_prefix = "accessibility"

  static_files = [
    "accessibility.css",
    "accessibility.html",
  ]

  non_web_component_files = [ "accessibility.ts" ]

  ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
  ts_deps = [ "//ui/webui/resources/js:build_ts" ]
  webui_context_type = "trusted"
}

accessibility_out_dir = "$root_out_dir/resources/accessibility/"

if (!is_chromeos_lacros) {
  group("reading_mode_gdocs_extension_resources") {
    deps = [
      ":reading_mode_gdocs_helper_manifest",
      "reading_mode_gdocs_helper:build",
    ]
  }

  manifest("reading_mode_gdocs_helper_manifest") {
    input_file = "reading_mode_gdocs_helper_manifest.json.jinja2"
    output_file =
        "$accessibility_out_dir/reading_mode_gdocs_helper_manifest.json"

    # The key is generated from packing a local Chrome extension as a .crx
    # and uniquely maps to the extension ID.
    # Providing the key in manifest.json will keep the extension ID stable.
    key = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDCQ+ePDzpLth/ZnUewmbuutBlIOU7RFD27Cy7Z/hFVAGA4wns+Xzj8SJ4YfcQQ1qIH7XfcPe6L+lT+IF8dMwHd5uXIFQWd8gHxeaQoIJcsPjnNgxbVR+TsAuzrgbCWz+gNz0/dDNjqVs+3Dv1QKGf6XE/+iJ4LfkzahIMtsUFp2UaOy+bYT7eh8FGmO8zuQmjAv5gM2I3K3C/8gUBvwm9yhipv/Dn7OtHLcBNHbCq0fbGIHLythTrhBTT81Z+RLAdQy787rS2gQH3IuFqLxuLfXFNBUI30QBdu2c5bL1PbePP+4w+UY8rBQ4ltqO8RDgIJl6zathCsBNtCLt3Yt5hnAgMBAAECggEAMHmkUwjwO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ezoST94XVa0K3juIY3lBigvC3ZTafEcLbNEfL8eYmcgb4zK85F2biyIw9Hv5fxqOPsMJ6Ltub3FaORlJGzHPz2783ZTirBsBQgSvQCqKtISVZlwrzXtl"
  }
}

if (is_chromeos_lacros) {
  group("extension_resources") {
    deps = [
      ":chromevox_helper_manifest",
      ":embedded_a11y_helper_manifest",
      ":extension_strings",
      "chromevox_helper:build",
      "embedded_a11y_helper:build",
    ]
  }

  manifest("embedded_a11y_helper_manifest") {
    input_file = "embedded_a11y_helper_manifest.json.jinja2"
    output_file = "$accessibility_out_dir/embedded_a11y_helper_manifest.json"

    # The key is generated from packing a local Chrome extension as a .crx
    # and uniquely maps to the extension ID.
    # Providing the key in manifest.json will keep the extension ID stable.
    key = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDGte0H3Gp0HEQdkKbucEndUNKd3BMTzeeX8BV03Ul39LduOlwerEHAQUs1qFXJaG9m0KZ5+KfPdwr/J8OyPpjV0tl4cc8dS6Rz7OL9gP+kUS5M4Yf7Yw7tv0iWEzC6Ro8An7yjCj/fNNJ64K2RUGpTIvY2BJX1tJU6LrO20k9Ns7KPZbjOu+AXO4XOIrkllNpv7Za8kPCvYAJN0g3RRxE957Mu8QI9m4QN3Utj6zCUeYmqXLO3ddNqdnPqDyVMTMMyqtGZhoMRmp46eKqOuCQ3nTmv5tBlY9dfAndXuzohSt8xTucEC/bZCQdm1zV3KhW9pepFyQ93D6Md6mwC+p8BAgMBAAECggEAKRIKA0Ft6UC8XWX78rVXtvwRBBqsAMBimTdAoA5qtHXqgchjKN3OmzeDnXwE+yNwPw5qEjSwLoO6zKEB5DHm8e7qDuhq9/Gd9G3mPqIudF5pFO/aZL2FJOOP06D0xdN2lBjv6rzgFbi7tjUA+tNlnnhP7jtFaWrhGwzzDRrr1DGuMkpn2VYQzzCNR6aT50IOLTqnTIcVehRG79hiDnriE+FnKnlDRABejVLnp/7hLbgwWVPrzbA7qedmwGSyRzLeSc4+68mP6jiqRI0be30ef0BQMHWmM5fmMog+44v6kbFp8aw1ncqrQ8MV0Dk0ZEFoGi4UiOH3LcaVGdxVb3oYHwKBgQDo+c4HrpuiFDYaJt913oH6+4ZGXoFhzNEn+m00vfZ9yWzCmdg2JNby6N3eSmiDGEXdEqC8FcSe5+6TvoiaB9t/5K58DkIda9hu39CsRFx42cHLzl/fhi9ulqRwCtxm7ORAJXKKml1HU4zsdB7DLGOtpnbJD+vOUxXIrjWa7grPawKBgQDaWTny6zDS1rR8KHX38FYZSl/zv4bIuR3YKNOlkW5Bln1lU1QqLocdcIeMauiu5CtRxaBCLX1IPPYaSgVAOtRS2v4RkA73CyukoSJKMpJJ3iYhM5TRwlWNmYk2/xo5JOKIHrDli74ulR4IYhpcgu211ys5FLScRKqyLpcSuPaCQwKBgDrO69n2kmScU3fQfjHDo+3V1fQnYONuDxHXXf+lP/ZKhQCuUux/6h5Q98hn4e/Njb0bOaWgnQw7oXZ77wFqoFatQ/oeo0PH+E8sggEqFGmRFiE7C+phddGlhwadRztX6tniWgJwqsEZbwY03ZsItnScA3oHYc+oG2SXzQI5ulLXAoGABTeomNNh4UfcHDNjTj9h70zFqi9jaxxxSB8Bn60v80VDTc6F7lQaSmvL8WEEmlk9Z8DPKYWovrcmMk6efYBqXmh5NbY5hVGxA0gOZ7N5p2Y1hwmSfsij/rQygSvrVn45I4OIOpPyQW6yvwSJGLjQMU4o7D5AapOBeKyAU6Qzz70CgYBYqsvHr5H26kREs9a0sIk542chuDHsDxtg99r2YplMl+tNygJ3dDOIDNFJGMj3x8LVo5awXxE4vfaNDHl0NfHZJM68bUB09ytLdBlQXCn6ehz8n7oaZ/jhHX7ZYXp/PX/spSFFIHMTM9IX6rzH6OVURMxCLs5u22Ycy+pd9ToCnw=="
  }

  manifest("chromevox_helper_manifest") {
    input_file = "chromevox_helper_manifest.json.jinja2"
    output_file = "$accessibility_out_dir/chromevox_helper_manifest.json"

    # The key is generated from packing a local Chrome extension as a .crx
    # and uniquely maps to the extension ID.
    # Providing the key in manifest.json will keep the extension ID stable.
    key = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDG3J14i99Qtu/QZ5zsJl4Z7EHaG+ndaVIajg91rxleFu3YpuJqS3u3aOE/FCjIOUp6uqn/e5l+8As3RK6NBNiQzGVXZn/5orW/iaRUk2kflUNDCrBjdgvgE5TGgjtfCuHJITc/L184ss2GKBkWrcUWw0ZR9YSTzZ1AeEfFfLT0e0Ic3u4BnM82gAJKpDV6dmvR9rcWs8yhume6kXB7hLMY9pAtBOKlx8vhHo0QAiDHK/9hxDyNIHcgKsCN4jpUn2odIBCA+dfHPlHshztqAW6FkuC91dUP5PH3QS0Z+ZB8uCm0viEXa/twH3KEE+BSkDtThTNX1lDTAT+rilQlSECpAgMBAAECggEADRma6QZD0Ygfj6nHsVnMsKX655CXrR2DSlsJ4y2D/QoDJJbHywtKbNhkoDhmgFwfzyptSPZ+M9nBz2P/oKwNTSqd0W5f51TD5sh9MhIc5nb5fZjeakrsONhpYFNTcG0h1xNQVaH8AprqxZfuISuU1G1MPFlxYKA2p/jUd4rBy+oWBHZrxaThVUdIFENkkDQQsGaCZlegF+B4ma0Mym1i9tqKrCDJuFiCXl6tBQ8iQSW/z7+ekpanVLtAdeb98W/0DDsHB9VFLgfkEynNh8PGro+TrSjmBZRQIxZu9aTFjL1bMbj2pf3oU0r5RqRRRH9Q1w84I9vHxfXkhoqL9yh5gQKBgQDhs+tnYNQAg2ecz9sYvsOA8GQMutfT8HeFslQDsWhs7GDkMbkW5e+HKbONtZKOTlYd6hUh7R0X7aDvaaJWhTfVyesEp65a/V7t5SrrVGE24po+x+VWDT9vgvw3EcGifEgq5kVxvY5Gco2Iw/tEwyQf29ryE7sawcAVhGcEXIO96QKBgQDhjlOtSS3KpKZRQbbBWc6G0cnDpJmyMCr5B9xEz1Fs7OJuI70uRzxkvni/AIhPYCciiAJ04KnDmBReK56600emGm0FoYIZZ1x8gBi3s7VUiervkQL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