Chuong Ho | 41b6191 | 2024-11-04 20:08:27 | [diff] [blame] | 1 | # Copyright 2024 The Chromium Authors |
Tao Wu | e3143f7 | 2023-08-11 18:58:51 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Chuong Ho | 03338c1 | 2024-11-04 02:47:23 | [diff] [blame] | 5 | import("//extensions/buildflags/buildflags.gni") |
Michelle | 3ea5c07e | 2023-09-01 05:48:59 | [diff] [blame] | 6 | |
Georg Neis | d557a9c | 2025-01-28 04:22:13 | [diff] [blame] | 7 | assert(is_chromeos) |
Tao Wu | e3143f7 | 2023-08-11 18:58:51 | [diff] [blame] | 8 | |
Tao Wu | a3cf327 | 2023-08-22 16:42:35 | [diff] [blame] | 9 | source_set("utils") { |
| 10 | sources = [ |
| 11 | "utils/focus_search.cc", |
| 12 | "utils/focus_search.h", |
| 13 | "utils/pre_target_handler.cc", |
| 14 | "utils/pre_target_handler.h", |
Andre Le | 307b982 | 2024-01-11 02:05:49 | [diff] [blame] | 15 | "utils/pre_target_handler_view.cc", |
| 16 | "utils/pre_target_handler_view.h", |
Chuong Ho | fb3b118 | 2025-01-09 21:12:31 | [diff] [blame] | 17 | "utils/text_and_image_mode.h", |
Michelle | 9ff330b1 | 2023-09-28 05:47:41 | [diff] [blame] | 18 | "utils/utils.cc", |
Tao Wu | ba18601 | 2023-08-23 23:37:15 | [diff] [blame] | 19 | "utils/utils.h", |
Tao Wu | a3cf327 | 2023-08-22 16:42:35 | [diff] [blame] | 20 | ] |
| 21 | |
| 22 | deps = [ |
| 23 | "//base", |
Chuong Ho | 1e02710 | 2025-01-14 23:06:09 | [diff] [blame] | 24 | "//chromeos/ash/components/editor_menu/public/cpp", |
Curtis McMullan | 7913f63c | 2024-03-04 03:46:54 | [diff] [blame] | 25 | "//chromeos/crosapi/mojom", |
Tao Wu | a3cf327 | 2023-08-22 16:42:35 | [diff] [blame] | 26 | "//ui/aura", |
Michelle | 9ff330b1 | 2023-09-28 05:47:41 | [diff] [blame] | 27 | "//ui/display", |
Tao Wu | a3cf327 | 2023-08-22 16:42:35 | [diff] [blame] | 28 | "//ui/events", |
| 29 | "//ui/gfx", |
| 30 | "//ui/views", |
| 31 | ] |
| 32 | } |
| 33 | |
Tao Wu | e3143f7 | 2023-08-11 18:58:51 | [diff] [blame] | 34 | source_set("editor_menu") { |
| 35 | sources = [ |
Curtis McMullan | 7913f63c | 2024-03-04 03:46:54 | [diff] [blame] | 36 | "editor_manager.h", |
Georg Neis | f7860cc | 2024-10-04 10:14:22 | [diff] [blame] | 37 | "editor_manager_ash.cc", |
| 38 | "editor_manager_ash.h", |
Curtis McMullan | 7913f63c | 2024-03-04 03:46:54 | [diff] [blame] | 39 | "editor_manager_factory.cc", |
| 40 | "editor_manager_factory.h", |
Chuong Ho | fb3b118 | 2025-01-09 21:12:31 | [diff] [blame] | 41 | "editor_menu_card_context.cc", |
| 42 | "editor_menu_card_context.h", |
Tao Wu | e3143f7 | 2023-08-11 18:58:51 | [diff] [blame] | 43 | "editor_menu_controller_impl.cc", |
| 44 | "editor_menu_controller_impl.h", |
Chuong Ho | 58d5fb7d | 2024-11-06 06:26:35 | [diff] [blame] | 45 | "lobster_manager.cc", |
| 46 | "lobster_manager.h", |
Tao Wu | e3143f7 | 2023-08-11 18:58:51 | [diff] [blame] | 47 | ] |
| 48 | |
| 49 | deps = [ |
Michelle | 902adec5 | 2023-09-06 03:44:49 | [diff] [blame] | 50 | ":utils", |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 51 | ":views", |
Chuong Ho | 654bc11 | 2023-10-03 01:55:22 | [diff] [blame] | 52 | "//ash/webui/settings/public/constants:mojom", |
Tao Wu | e3143f7 | 2023-08-11 18:58:51 | [diff] [blame] | 53 | "//base", |
Georg Neis | f7860cc | 2024-10-04 10:14:22 | [diff] [blame] | 54 | "//chrome/browser/ash/input_method", |
Chuong Ho | 58d5fb7d | 2024-11-06 06:26:35 | [diff] [blame] | 55 | "//chrome/browser/ash/lobster", |
Curtis McMullan | b96f4de3 | 2023-10-25 05:24:51 | [diff] [blame] | 56 | "//chrome/browser/profiles:profile", |
Antonio Gomes | d71d00b | 2024-10-24 08:42:36 | [diff] [blame] | 57 | "//chrome/browser/ui/ash/read_write_cards", |
Chuong Ho | 1e02710 | 2025-01-14 23:06:09 | [diff] [blame] | 58 | "//chromeos/ash/components/editor_menu/public/cpp", |
Andre Le | d88d17f | 2024-09-09 22:58:30 | [diff] [blame] | 59 | "//chromeos/components/magic_boost/public/cpp", |
Chuong Ho | 6176718 | 2024-08-30 00:26:50 | [diff] [blame] | 60 | "//chromeos/constants:constants", |
Zac Partridge | 27edcb97 | 2023-09-12 18:09:55 | [diff] [blame] | 61 | "//chromeos/crosapi/mojom", |
Curtis McMullan | 79d96a67 | 2023-10-23 03:42:48 | [diff] [blame] | 62 | "//content/public/browser:browser", |
Tao Wu | e3143f7 | 2023-08-11 18:58:51 | [diff] [blame] | 63 | "//ui/gfx", |
| 64 | "//ui/views", |
| 65 | ] |
Chuong Ho | e4cf0ea | 2024-12-31 03:34:17 | [diff] [blame] | 66 | |
| 67 | if (is_chrome_branded) { |
| 68 | deps += [ |
| 69 | "//chromeos/ash/resources/internal/strings:strings", |
| 70 | "//chromeos/ash/resources/internal/strings:strings_grit", |
| 71 | ] |
| 72 | } |
Tao Wu | e3143f7 | 2023-08-11 18:58:51 | [diff] [blame] | 73 | } |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 74 | |
| 75 | source_set("views") { |
| 76 | sources = [ |
Michelle | 1d640a7 | 2023-12-06 07:44:03 | [diff] [blame] | 77 | "editor_menu_badge_view.cc", |
| 78 | "editor_menu_badge_view.h", |
Tao Wu | 30a5156 | 2023-08-17 17:38:09 | [diff] [blame] | 79 | "editor_menu_chip_view.cc", |
| 80 | "editor_menu_chip_view.h", |
Michelle | cfd8513 | 2023-08-22 05:23:46 | [diff] [blame] | 81 | "editor_menu_promo_card_view.cc", |
| 82 | "editor_menu_promo_card_view.h", |
Chuong Ho | c2b2e501 | 2024-04-10 09:01:26 | [diff] [blame] | 83 | "editor_menu_strings.cc", |
| 84 | "editor_menu_strings.h", |
Tao Wu | b7058a7 | 2023-08-21 23:34:24 | [diff] [blame] | 85 | "editor_menu_textfield_view.cc", |
| 86 | "editor_menu_textfield_view.h", |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 87 | "editor_menu_view.cc", |
| 88 | "editor_menu_view.h", |
Tao Wu | 7b89113 | 2023-08-26 01:03:24 | [diff] [blame] | 89 | "editor_menu_view_delegate.h", |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 90 | ] |
| 91 | |
| 92 | deps = [ |
Tao Wu | ba18601 | 2023-08-23 23:37:15 | [diff] [blame] | 93 | ":utils", |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 94 | "//base", |
Chuong Ho | 03338c1 | 2024-11-04 02:47:23 | [diff] [blame] | 95 | "//build:branding_buildflags", |
Chuong Ho | 1e02710 | 2025-01-14 23:06:09 | [diff] [blame] | 96 | "//chromeos/ash/components/editor_menu/public/cpp", |
Chuong Ho | c2b2e501 | 2024-04-10 09:01:26 | [diff] [blame] | 97 | "//chromeos/constants:constants", |
Michelle | 2f81f01f | 2023-08-22 09:54:40 | [diff] [blame] | 98 | "//chromeos/strings:strings_grit", |
Darren Shen | 221b92e | 2024-04-22 00:27:52 | [diff] [blame] | 99 | "//chromeos/ui/vector_icons", |
Jun Ishiguro | f4de2222 | 2025-05-07 09:24:46 | [diff] [blame] | 100 | "//components/application_locale_storage", |
Tao Wu | 30a5156 | 2023-08-17 17:38:09 | [diff] [blame] | 101 | "//components/vector_icons", |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 102 | "//ui/aura", |
Michelle | 2f81f01f | 2023-08-22 09:54:40 | [diff] [blame] | 103 | "//ui/base", |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 104 | "//ui/gfx", |
| 105 | "//ui/views", |
Joseph Kim | d64a013e | 2024-11-04 05:48:12 | [diff] [blame] | 106 | "//ui/wm", |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 107 | ] |
Chuong Ho | 03338c1 | 2024-11-04 02:47:23 | [diff] [blame] | 108 | |
| 109 | if (is_chrome_branded) { |
| 110 | deps += [ |
| 111 | "//chromeos/ash/resources/internal/strings:strings", |
| 112 | "//chromeos/ash/resources/internal/strings:strings_grit", |
| 113 | ] |
| 114 | } |
Tao Wu | 950e8b0 | 2023-08-17 03:58:03 | [diff] [blame] | 115 | } |