| # Copyright 2021 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("//chrome/common/features.gni") |
| import("//ui/webui/resources/tools/build_webui.gni") |
| |
| assert(!is_android) |
| |
| build_webui("build") { |
| grd_prefix = "feedback" |
| |
| static_files = [ |
| "css/feedback_shared_styles.css", |
| "css/feedback_shared_vars.css", |
| "css/logs_map_page.css", |
| "feedback.html", |
| "html/autofill_metadata_info.html", |
| "images/2x/button_butter_bar_close_hover.png", |
| "images/2x/button_butter_bar_close.png", |
| "images/2x/button_butter_bar_close_pressed.png", |
| "images/button_butter_bar_close_hover.png", |
| "images/button_butter_bar_close.png", |
| "images/button_butter_bar_close_pressed.png", |
| ] |
| |
| if (is_chromeos_ash) { |
| static_files += [ |
| "css/logs_info.css", |
| "html/assistant_logs_info.html", |
| "html/bluetooth_logs_info.html", |
| ] |
| } |
| |
| web_component_files = [ "app.ts" ] |
| |
| non_web_component_files = [ |
| "js/autofill_metadata.ts", |
| "js/feedback_browser_proxy.ts", |
| "js/feedback_regexes.ts", |
| "js/feedback_util.ts", |
| "js/logs_map_page.ts", |
| "js/questionnaire.ts", |
| "js/take_screenshot.ts", |
| ] |
| |
| css_files = [ |
| "feedback_shared_styles.css", |
| "feedback_shared_vars.css", |
| ] |
| |
| if (is_chromeos_ash) { |
| non_web_component_files += [ "js/jelly_colors.ts" ] |
| } |
| |
| ts_composite = true |
| ts_definitions = [ |
| "//tools/typescript/definitions/feedback_private.d.ts", |
| "//tools/typescript/definitions/chrome_send.d.ts", |
| ] |
| ts_deps = [ |
| "//third_party/polymer/v3_0:library", |
| "//ui/webui/resources/cr_elements:build_ts", |
| "//ui/webui/resources/js:build_ts", |
| ] |
| if (is_chromeos_ash) { |
| ts_deps += |
| [ "//ui/webui/resources/cr_components/color_change_listener:build_ts" ] |
| } |
| } |