chromium/chrome/browser/resources/chromeos/cloud_upload/BUILD.gn

# 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("//ui/webui/resources/tools/build_webui.gni")

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

  static_files = [
    "animations/move_confirmation_drive.json",
    "animations/move_confirmation_onedrive.json",
    "icons/check.svg",
    "icons/chevron.svg",
    "icons/docs.svg",
    "icons/download.svg",
    "icons/error.svg",
    "icons/list_check.svg",
    "icons/office.svg",
    "icons/pause.svg",
    "icons/play.svg",
    "icons/sheets.svg",
    "icons/slides.svg",
    "images/connect_one_drive_app_icon.svg",
    "images/connect_one_drive.svg",
    "images/install_office_pwa_app_icon.svg",
    "images/install_office_pwa.svg",
    "images/install_onedrive_alone.svg",
    "images/one_drive_success.svg",
    "images/onedrive_app_icon.svg",
    "images/welcome.svg",
    "main.html",
  ]
  web_component_files = [
    "base_setup_page.ts",
    "connect_onedrive.ts",
    "file_handler_card.ts",
    "file_handler_page.ts",
    "move_confirmation_page.ts",
    "office_pwa_install_page.ts",
    "office_setup_complete_page.ts",
    "setup_cancel_dialog.ts",
    "sign_in_page.ts",
    "welcome_page.ts",
  ]
  non_web_component_files = [
    "cloud_upload_browser_proxy.ts",
    "cloud_upload_dialog.ts",
    "main.ts",
  ]
  mojo_files = [ "$root_gen_dir/chrome/browser/ui/webui/ash/cloud_upload/cloud_upload.mojom-webui.ts" ]
  mojo_files_deps = [
    "//chrome/browser/ui/webui/ash/cloud_upload:mojo_bindings_ts__generator",
  ]
  ts_composite = true

  webui_context_type = "trusted"

  html_to_wrapper_template = "native"

  ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
  ts_deps = [
    "//ash/webui/common/resources:build_ts",
    "//ash/webui/common/resources/cr_elements:build_ts",
    "//third_party/cros-components:cros_components_ts",
    "//ui/webui/resources/cr_components/color_change_listener:build_ts",
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]
  webui_context_type = "trusted"
}