2018-09-12 13:45:08 +00:00
|
|
|
# Copyright (c) 2018 GitHub, Inc.
|
|
|
|
# Use of this source code is governed by the MIT license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
chore: bump chromium to 92.0.4475.0 (master) (#28462)
* chore: bump chromium in DEPS to 91.0.4464.0
* chore: rebuild chromium/dcheck.patch with import-patches -3
Mechanical only; no code changes
* chore: remove content_browser_main_loop.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
The function being patched (BrowserMainLoop::MainMessageLoopRun()) no
longer exists.
NB: if removing this introduces regressions the likely fix will be to
add a similar patch for ShellBrowserMainParts::WillRunMainMessageLoop()
which has similar code and was added at the same time this was removed.
* chore: rebuild chromium/put_back_deleted_colors_for_autofill.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/disable_color_correct_rendering.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/eat_allow_disabling_blink_scheduler_throttling_per_renderview.patch with patch
Mechanical only; no code changes
* chore: rebuild chromium/gpu_notify_when_dxdiag_request_fails.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/ui_gtk_public_header.patch manually
no code changes
* chore: rebuild chromium/web_contents.patch with import-patches -3
Mechanical only; no code changes
* chore: remove v8/skip_global_registration_of_shared_arraybuffer_backing_stores.patch
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/2763874
This patch has been merged upstream
* chore: export patches
* chore: update add_trustedauthclient_to_urlloaderfactory.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2757969
Sync with removal of render_frame_id_
* chore: sync chromium/put_back_deleted_colors_for_autofill.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2785841
SkColorFromColorId() no longer takes theme, scheme args
* chore: sync chromium/put_back_deleted_colors_for_autofill.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2772143
Change new calls to GetDarkSchemeColor to fit our patched call signature
* chore: update add_trustedauthclient_to_urlloaderfactory.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2757969
Sync with removal of render_frame_id_ in our mojom
* chore: update chromium/frame_host_manager.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2740008
UrlInfo ctor now takes UrlInfo::OriginIsolationRequest instead of a bool
* chore: update chromium/revert_remove_contentrendererclient_shouldfork.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2755314
Upstream has removed `history_list_length_` which we were comparing to 0
to calculate our `is_initial_navigation` bool when calling ShouldFork().
ShouldFork() is ours and none of the code paths actually use that param,
so this commit removes it altogether.
* chore: update permissions_to_register
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2789074
Replace all uses of APIPermission::ID enum with Mojo type
* refactor: update return type of PreMainMessageLoopRun()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
Used to return void; now returns an int errorcode.
Note: 2725153 also has some nice doc updates about Browser's "stages"
* refactor: sync ElectronBrowserMainParts to MainParts changes
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
RunMainMessageLoopParts has been replaced with WillRunMainMessageLoop
so `BrowserMainLoop::result_code_` is no longer available to us for our
exit_code_ pointer.
This variable held a dual role: (1) of course, hold the exit code, but
also (2) was a nullptr before the message loop was ready, indicating to
anyone calling SetExitCode() that we were still in startup and could
just exit() without any extra steps. exit_code_ still fulfills these two
roles but is now a base::Optional.
* chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
BrowserMainParts::BrowsePreDefaultMainMesssageLoopRun() has been
removed; move that work to the new WillRunMainMessageLoop().
* refactor: stop using CallbackList; it has been removed.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2785973
* refactor: update use of threadpools.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2773408
The upstream code is still in flux (e.g. reverts and re-lands) but the
tl;dr for this commit is (1) include thread_pool.h if you're using it
and (2) don't instantiate pools directly.
* refactor: remove routing_id from CreateLoaderAndStart
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762858
NB: One logic branch in ProxyingURLLoaderFactory::CreateLoaderAndStart
calls std::make_unique<InProgressRequest>, which needs a routing_id.
This PR uses the member field `routing_id_` since there's no longer one
being passed into CreateLoaderAndStart.
* refactor: sync to upstream ParittionOptions churn
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771318
PartitionOptions' enums have changed.
* refactor: update Manifest::Location usage
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771320
tldr: s/Manifest::FOO/ManifestLocation::kFoo/
* chore: bump chromium in DEPS to 91.0.4465.0
* update patches
* refactor: update extensions::Manifest to upstream
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771320
- extensions::Manifest::COMPONENT
+ extensions::mojom::ManifestLocation::kExternalComponent
* refactor: sync with upstream UrlInfo ctor changes
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2740008
UrlInfo ctor now takes UrlInfo::OriginIsolationRequest instead of a bool
* chore: update invocation of convert_protocol_to_json.py
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2792623
python3 is being used in parts of the upstream build, but the copy of
convert_protocol_to_json.py invoked in v8/third_party/inspector_protocol
is not python3-friendly. Node has a py2+3-friendly version of it in its
tools directory, so call it instead.
* chore: use extensions::mojom::APIPermissionID
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791122
tldr:
- extensions::APIPermission::kFoo
+ extensions::mojom::APIPermissionID::kFoo
* chore: Remove support for TLS1.0/1.1 in SSLVersionMin policy
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2765737
Remove TLS v1.0 & 1.1 from our SSLProtocolVersionFromString() function.
This is the same change made upstream at
https://chromium-review.googlesource.com/c/chromium/src/+/2765737/8/chrome/browser/ssl/ssl_config_service_manager_pref.cc
* fixup! chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
* chore: Use IDType for permission change subscriptions.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791431
tldr: {Subscribe,Unsubscribe}PermissionStatusChange's tag type used to
be an int; now it's the new SubscriptionId type (which is an IdType64).
* chore: sync PowerMonitor code to upstream refactor
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2752635
tldr: PowerMonitor has been split into PowerStateObserver,
PowerSuspendObserver, and PowerThermalObserver to reduce number of tasks
posted to consumers who only need notifications for one of those things
instead of all of them.
* chore: use PartitionOptions's new Cookies field
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771318
* Revert "refactor: remove routing_id from CreateLoaderAndStart"
This reverts commit 8c9773b87a3c84f9073a47089eb2b6889d745245.
8c9773b was only a partial fix; reverting to start & try again.
* update patches
* chore: bump chromium in DEPS to 91.0.4466.0
* chore: update chromium/accelerator.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2795472
tldr: sync patch with upstream renamed variable & macro names.
* chore: update chromium/gtk_visibility.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2796200
tldr: no code changes; just updating the diff to apply cleanly.
note: ooh upstream Wayland hacking!
* chore: update chromium/picture-in-picture.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2710023
tldr: no code changes; just updating the diff to apply cleanly.
* chore: update chromium/worker_feat_add_hook_to_notify_script_ready.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2775573
tldr: no code changes; just updating the diff to apply cleanly.
* chore: export_all_patches
* chore: update chromium/feat_add_set_theme_source_to_allow_apps_to.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2796511
tldr: NotifyObservers has been renamed to NotifyOnNativeThemeUpdated,
so update the invocation in our patch.
* chore: update ElectronBrowserClient w/upstream API
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797454
tldr: GetDevToolsManagerDelegate() was returning an owned raw pointer.
Replaced it with CreateDevToolsManagerDelegate() which uses unique_ptr<>.
* chore: handle new content::PermissionType::FILE_HANDLING in toV8()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762201
`file-handling` string confirmed in https://chromium-review.googlesource.com/c/chromium/src/+/2762201/18/chrome/browser/ui/webui/settings/site_settings_helper.cc
* refactor: remove routing_id from CreateLoaderAndStart pt 1
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762858
Part 1: the easiest ones
* 2796724: Support Python3
https://chromium-review.googlesource.com/c/infra/luci/python-adb/+/2796724
* chore: bump chromium in DEPS to 91.0.4468.0
* 2668974: WebShare: Implement SharingServicePicker
https://chromium-review.googlesource.com/c/chromium/src/+/2668974
* 2802766: Apply modernize-make-unique to media/
https://chromium-review.googlesource.com/c/chromium/src/+/2802766
* 2802823: Apply modernize-make-unique to gpu/
https://chromium-review.googlesource.com/c/chromium/src/+/2802823
* 2803041: Apply modernize-make-unique to remaining files
https://chromium-review.googlesource.com/c/chromium/src/+/2803041
* 2798873: Convert GtkKeyBindingsHandler build checks to runtime checks
https://chromium-review.googlesource.com/c/chromium/src/+/2798873
* 2733595: [ch-r] Parse ACCEPT_CH H2/3 frame and restart with new headers if needed
https://chromium-review.googlesource.com/c/chromium/src/+/2733595
* chore: update patch indices
* 2795107: Remove unused PermissionRequest IDs.
https://chromium-review.googlesource.com/c/chromium/src/+/2795107
* chore: bump chromium in DEPS to 91.0.4469.0
* chore: fixup patch indices
* chore: bump chromium in DEPS to 91.0.4469.5
* PiP 1.5: Add microphone, camera, and hang up buttons to the PiP window
https://chromium-review.googlesource.com/c/chromium/src/+/2710023
* fixup! refactor: remove routing_id from CreateLoaderAndStart
* refactor: use URLLoaderNetworkServiceObserver for auth requests from SimpleURLLoader
* fixup! chore: fixup patch indices
* 2724817: Expand scope of wasm-eval to all URLs
https://chromium-review.googlesource.com/c/chromium/src/+/2724817
* Fixup patch after rebase
* chore: bump chromium in DEPS to 91.0.4472.0
* 2797341: [ozone/x11] Enabled the global shortcut listener.
https://chromium-review.googlesource.com/c/chromium/src/+/2797341
* 2805553: Reland Add GTK ColorMixers to ColorPipeline P1
https://chromium-review.googlesource.com/c/chromium/src/+/2805553
* 2804366: PiP 1.5: Label back to tab button with origin and center it
https://chromium-review.googlesource.com/c/chromium/src/+/2804366
* 2784730: Fix crash on AX mode change in NativeViewHost without a Widget
https://chromium-review.googlesource.com/c/chromium/src/+/2784730
* chore: update patch indices
* 2810174: Add PdfAnnotationsEnabled policy.
https://chromium-review.googlesource.com/c/chromium/src/+/2810174
* 2807829: Allow capturers to indicate if they want a WakeLock or not.
https://chromium-review.googlesource.com/c/chromium/src/+/2807829
* chore: bump chromium in DEPS to 92.0.4473.0
* chore: bump chromium in DEPS to 92.0.4474.0
* chore: bump chromium in DEPS to 92.0.4475.0
* chore: update patches
* chore: updates patches
* chore: update is_media_key patch to handle new ozone impl
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797341
* fix: ExecuteJavascript requests now need to be flagged as non-bf-aware
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2787195
* chore: icon_util_x11 is now icon_util_linux
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791362
* build: update sysroots
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2628496
* build: fix missing symbols on linux build
* use_ozone and use_x11 are not exclusive
* new button view to build for pip
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797341
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2804366
* chore: fix broken gtk_util color patch
* chore: remove patch conflict
* build: update linux manifests
* chore: build bttlb on all platforms for pip
* chore: add thread_pool include for views delegate win
* chore: fix lint
* chore: add node patches for V8 changes
* build: add missing base include on windows
* fix: update frame host manager patch for new state transitions
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2714464
* chore: update windows zip manifests
* chore: update mac zip manifests
* chore: fix patch linting
* refactor: implement missing URLLoaderNetworkServiceObserver methods
It is against The Mojo Rules to leave hanging callbacks. These always
have to be called.
Refs: https://github.com/electron/electron/commit/186528aab9f8e29d658f07d220bb7f627980edda
* spec: fix locale test on local linux
* fix: pass the exit code correctly in new PreMainMessageLoopRun
Refs: https://github.com/electron/electron/commit/2622e91c4493ceb032e2f80cb484885bb8f97475
* fix: ensure we early-exit when request_handler_ is not provided
Refs: https://github.com/electron/electron/commit/93077afbfb6db248a0c0cc447d7ad2c9ccfda1d5
* fix: strongly set result_code in the BrowserMainLoop
* fix: invalid usage of non-targetted PostTask
You must always either use a host threadpool or specify a target
thread. In this case we did neither after this refactor.
Refs: https://github.com/electron/electron/pull/28462/commits/4e33ee0ad35a710bd34641cb0376bdee6aea2d1f
* chore: fix gn check
* chore: remove stray .rej files in patch
* chore: add mojo error code to url loader failure
* build: ensure CI is truthy in arm test env
* fix: handle windowCaptureMacV2 being enabled when fetching media source id
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2709931
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: Samuel Attard <sattard@slack-corp.com>
2021-04-15 17:44:35 +00:00
|
|
|
import("//build/config/ozone.gni")
|
2018-10-11 23:53:46 +00:00
|
|
|
import("//build/config/ui.gni")
|
2019-10-31 20:11:51 +00:00
|
|
|
import("//components/spellcheck/spellcheck_build_features.gni")
|
2018-10-03 12:26:42 +00:00
|
|
|
import("//electron/buildflags/buildflags.gni")
|
2018-11-09 03:42:34 +00:00
|
|
|
import("//printing/buildflags/buildflags.gni")
|
2018-10-11 13:52:12 +00:00
|
|
|
import("//third_party/widevine/cdm/widevine.gni")
|
2018-10-03 12:26:42 +00:00
|
|
|
|
2018-10-11 13:52:12 +00:00
|
|
|
# Builds some of the chrome sources that Electron depends on.
|
|
|
|
static_library("chrome") {
|
2018-09-12 13:45:08 +00:00
|
|
|
visibility = [ "//electron:electron_lib" ]
|
|
|
|
sources = [
|
2024-07-17 00:16:25 +00:00
|
|
|
"//ash/style/rounded_rect_cutout_path_builder.cc",
|
|
|
|
"//ash/style/rounded_rect_cutout_path_builder.h",
|
2021-10-28 14:23:05 +00:00
|
|
|
"//chrome/browser/app_mode/app_mode_utils.cc",
|
|
|
|
"//chrome/browser/app_mode/app_mode_utils.h",
|
2021-11-15 23:26:09 +00:00
|
|
|
"//chrome/browser/browser_features.cc",
|
|
|
|
"//chrome/browser/browser_features.h",
|
2018-10-11 13:52:12 +00:00
|
|
|
"//chrome/browser/browser_process.cc",
|
|
|
|
"//chrome/browser/browser_process.h",
|
2018-10-19 13:50:30 +00:00
|
|
|
"//chrome/browser/devtools/devtools_contents_resizing_strategy.cc",
|
|
|
|
"//chrome/browser/devtools/devtools_contents_resizing_strategy.h",
|
|
|
|
"//chrome/browser/devtools/devtools_embedder_message_dispatcher.cc",
|
|
|
|
"//chrome/browser/devtools/devtools_embedder_message_dispatcher.h",
|
2021-07-26 16:02:16 +00:00
|
|
|
"//chrome/browser/devtools/devtools_eye_dropper.cc",
|
|
|
|
"//chrome/browser/devtools/devtools_eye_dropper.h",
|
2018-10-19 13:50:30 +00:00
|
|
|
"//chrome/browser/devtools/devtools_file_system_indexer.cc",
|
|
|
|
"//chrome/browser/devtools/devtools_file_system_indexer.h",
|
2021-10-21 18:51:36 +00:00
|
|
|
"//chrome/browser/devtools/devtools_settings.h",
|
2023-11-28 21:40:12 +00:00
|
|
|
"//chrome/browser/devtools/visual_logging.cc",
|
|
|
|
"//chrome/browser/devtools/visual_logging.h",
|
2018-10-11 05:02:58 +00:00
|
|
|
"//chrome/browser/extensions/global_shortcut_listener.cc",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener.h",
|
2024-04-10 20:06:47 +00:00
|
|
|
"//chrome/browser/file_system_access/file_system_access_features.cc",
|
|
|
|
"//chrome/browser/file_system_access/file_system_access_features.h",
|
2018-10-05 19:12:53 +00:00
|
|
|
"//chrome/browser/icon_loader.cc",
|
|
|
|
"//chrome/browser/icon_loader.h",
|
|
|
|
"//chrome/browser/icon_manager.cc",
|
|
|
|
"//chrome/browser/icon_manager.h",
|
2024-08-13 19:04:43 +00:00
|
|
|
"//chrome/browser/media/webrtc/delegated_source_list_capturer.cc",
|
|
|
|
"//chrome/browser/media/webrtc/delegated_source_list_capturer.h",
|
2023-09-06 01:17:56 +00:00
|
|
|
"//chrome/browser/media/webrtc/desktop_capturer_wrapper.cc",
|
|
|
|
"//chrome/browser/media/webrtc/desktop_capturer_wrapper.h",
|
2023-05-24 19:32:31 +00:00
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list.cc",
|
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list.h",
|
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list_base.cc",
|
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list_base.h",
|
|
|
|
"//chrome/browser/media/webrtc/desktop_media_list_observer.h",
|
|
|
|
"//chrome/browser/media/webrtc/native_desktop_media_list.cc",
|
|
|
|
"//chrome/browser/media/webrtc/native_desktop_media_list.h",
|
2023-09-06 01:17:56 +00:00
|
|
|
"//chrome/browser/media/webrtc/thumbnail_capturer.cc",
|
|
|
|
"//chrome/browser/media/webrtc/thumbnail_capturer.h",
|
2023-05-24 19:32:31 +00:00
|
|
|
"//chrome/browser/media/webrtc/window_icon_util.h",
|
2018-10-04 18:08:56 +00:00
|
|
|
"//chrome/browser/net/chrome_mojo_proxy_resolver_factory.cc",
|
|
|
|
"//chrome/browser/net/chrome_mojo_proxy_resolver_factory.h",
|
|
|
|
"//chrome/browser/net/proxy_config_monitor.cc",
|
|
|
|
"//chrome/browser/net/proxy_config_monitor.h",
|
|
|
|
"//chrome/browser/net/proxy_service_factory.cc",
|
|
|
|
"//chrome/browser/net/proxy_service_factory.h",
|
2023-09-19 17:34:56 +00:00
|
|
|
"//chrome/browser/picture_in_picture/picture_in_picture_bounds_cache.cc",
|
|
|
|
"//chrome/browser/picture_in_picture/picture_in_picture_bounds_cache.h",
|
2023-12-11 20:58:26 +00:00
|
|
|
"//chrome/browser/picture_in_picture/picture_in_picture_occlusion_tracker.cc",
|
|
|
|
"//chrome/browser/picture_in_picture/picture_in_picture_occlusion_tracker.h",
|
|
|
|
"//chrome/browser/picture_in_picture/picture_in_picture_occlusion_tracker_observer.cc",
|
|
|
|
"//chrome/browser/picture_in_picture/picture_in_picture_occlusion_tracker_observer.h",
|
2023-06-08 06:56:31 +00:00
|
|
|
"//chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc",
|
|
|
|
"//chrome/browser/picture_in_picture/picture_in_picture_window_manager.h",
|
2023-12-11 20:58:26 +00:00
|
|
|
"//chrome/browser/picture_in_picture/scoped_picture_in_picture_occlusion_observation.cc",
|
|
|
|
"//chrome/browser/picture_in_picture/scoped_picture_in_picture_occlusion_observation.h",
|
2021-07-26 16:02:16 +00:00
|
|
|
"//chrome/browser/platform_util.cc",
|
|
|
|
"//chrome/browser/platform_util.h",
|
2019-08-26 16:47:32 +00:00
|
|
|
"//chrome/browser/predictors/preconnect_manager.cc",
|
|
|
|
"//chrome/browser/predictors/preconnect_manager.h",
|
2019-11-05 23:41:20 +00:00
|
|
|
"//chrome/browser/predictors/predictors_features.cc",
|
|
|
|
"//chrome/browser/predictors/predictors_features.h",
|
2019-08-26 16:47:32 +00:00
|
|
|
"//chrome/browser/predictors/proxy_lookup_client_impl.cc",
|
|
|
|
"//chrome/browser/predictors/proxy_lookup_client_impl.h",
|
|
|
|
"//chrome/browser/predictors/resolve_host_client_impl.cc",
|
|
|
|
"//chrome/browser/predictors/resolve_host_client_impl.h",
|
2021-09-03 21:16:33 +00:00
|
|
|
"//chrome/browser/process_singleton.h",
|
2022-02-25 18:17:35 +00:00
|
|
|
"//chrome/browser/process_singleton_internal.cc",
|
|
|
|
"//chrome/browser/process_singleton_internal.h",
|
2022-08-22 14:38:45 +00:00
|
|
|
"//chrome/browser/themes/browser_theme_pack.cc",
|
|
|
|
"//chrome/browser/themes/browser_theme_pack.h",
|
|
|
|
"//chrome/browser/themes/custom_theme_supplier.cc",
|
|
|
|
"//chrome/browser/themes/custom_theme_supplier.h",
|
|
|
|
"//chrome/browser/themes/theme_properties.cc",
|
|
|
|
"//chrome/browser/themes/theme_properties.h",
|
|
|
|
"//chrome/browser/ui/color/chrome_color_mixers.cc",
|
|
|
|
"//chrome/browser/ui/color/chrome_color_mixers.h",
|
2021-10-28 14:23:05 +00:00
|
|
|
"//chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.cc",
|
|
|
|
"//chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h",
|
|
|
|
"//chrome/browser/ui/exclusive_access/exclusive_access_controller_base.cc",
|
|
|
|
"//chrome/browser/ui/exclusive_access/exclusive_access_controller_base.h",
|
|
|
|
"//chrome/browser/ui/exclusive_access/exclusive_access_manager.cc",
|
|
|
|
"//chrome/browser/ui/exclusive_access/exclusive_access_manager.h",
|
2024-04-15 22:10:32 +00:00
|
|
|
"//chrome/browser/ui/exclusive_access/exclusive_access_permission_manager.cc",
|
|
|
|
"//chrome/browser/ui/exclusive_access/exclusive_access_permission_manager.h",
|
2021-10-28 14:23:05 +00:00
|
|
|
"//chrome/browser/ui/exclusive_access/fullscreen_controller.cc",
|
|
|
|
"//chrome/browser/ui/exclusive_access/fullscreen_controller.h",
|
|
|
|
"//chrome/browser/ui/exclusive_access/fullscreen_within_tab_helper.cc",
|
|
|
|
"//chrome/browser/ui/exclusive_access/fullscreen_within_tab_helper.h",
|
|
|
|
"//chrome/browser/ui/exclusive_access/keyboard_lock_controller.cc",
|
|
|
|
"//chrome/browser/ui/exclusive_access/keyboard_lock_controller.h",
|
2024-01-31 23:04:13 +00:00
|
|
|
"//chrome/browser/ui/exclusive_access/pointer_lock_controller.cc",
|
|
|
|
"//chrome/browser/ui/exclusive_access/pointer_lock_controller.h",
|
2022-08-22 14:38:45 +00:00
|
|
|
"//chrome/browser/ui/frame/window_frame_util.cc",
|
|
|
|
"//chrome/browser/ui/frame/window_frame_util.h",
|
|
|
|
"//chrome/browser/ui/ui_features.cc",
|
|
|
|
"//chrome/browser/ui/ui_features.h",
|
2024-06-27 12:56:36 +00:00
|
|
|
"//chrome/browser/ui/view_ids.h",
|
2021-07-26 16:02:16 +00:00
|
|
|
"//chrome/browser/ui/views/eye_dropper/eye_dropper.cc",
|
|
|
|
"//chrome/browser/ui/views/eye_dropper/eye_dropper.h",
|
2024-08-22 20:50:23 +00:00
|
|
|
"//chrome/browser/ui/views/overlay/back_to_tab_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/back_to_tab_button.h",
|
2023-06-08 06:56:31 +00:00
|
|
|
"//chrome/browser/ui/views/overlay/back_to_tab_label_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/close_image_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/close_image_button.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/constants.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/hang_up_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/hang_up_button.h",
|
2024-07-02 07:51:33 +00:00
|
|
|
"//chrome/browser/ui/views/overlay/minimize_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/minimize_button.h",
|
2023-06-08 06:56:31 +00:00
|
|
|
"//chrome/browser/ui/views/overlay/overlay_window_image_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/overlay_window_image_button.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/playback_image_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/playback_image_button.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/resize_handle_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/resize_handle_button.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/simple_overlay_window_image_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/simple_overlay_window_image_button.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/skip_ad_label_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/skip_ad_label_button.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/toggle_camera_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/toggle_camera_button.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/toggle_microphone_button.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/toggle_microphone_button.h",
|
|
|
|
"//chrome/browser/ui/views/overlay/video_overlay_window_views.cc",
|
|
|
|
"//chrome/browser/ui/views/overlay/video_overlay_window_views.h",
|
2024-01-31 23:04:13 +00:00
|
|
|
"//chrome/browser/ui/webui/accessibility/accessibility_ui.cc",
|
|
|
|
"//chrome/browser/ui/webui/accessibility/accessibility_ui.h",
|
2018-10-11 13:52:12 +00:00
|
|
|
"//extensions/browser/app_window/size_constraints.cc",
|
|
|
|
"//extensions/browser/app_window/size_constraints.h",
|
2023-01-06 02:35:34 +00:00
|
|
|
"//ui/views/native_window_tracker.h",
|
2018-09-12 13:45:08 +00:00
|
|
|
]
|
2020-07-22 05:34:34 +00:00
|
|
|
|
2021-09-03 21:16:33 +00:00
|
|
|
if (is_posix) {
|
|
|
|
sources += [ "//chrome/browser/process_singleton_posix.cc" ]
|
|
|
|
}
|
|
|
|
|
2020-10-16 01:30:41 +00:00
|
|
|
if (is_win) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_win.cc",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_win.h",
|
|
|
|
"//chrome/browser/icon_loader_win.cc",
|
2021-07-26 16:02:16 +00:00
|
|
|
"//chrome/browser/media/webrtc/window_icon_util_win.cc",
|
2021-09-03 21:16:33 +00:00
|
|
|
"//chrome/browser/process_singleton_win.cc",
|
2021-08-11 18:07:36 +00:00
|
|
|
"//chrome/browser/ui/frame/window_frame_util.h",
|
2020-10-16 01:30:41 +00:00
|
|
|
"//chrome/browser/win/chrome_process_finder.cc",
|
|
|
|
"//chrome/browser/win/chrome_process_finder.h",
|
2024-07-05 09:36:44 +00:00
|
|
|
"//chrome/browser/win/chrome_select_file_dialog_factory.cc",
|
|
|
|
"//chrome/browser/win/chrome_select_file_dialog_factory.h",
|
2022-08-22 14:38:45 +00:00
|
|
|
"//chrome/browser/win/titlebar_config.cc",
|
|
|
|
"//chrome/browser/win/titlebar_config.h",
|
2021-08-11 18:07:36 +00:00
|
|
|
"//chrome/browser/win/titlebar_config.h",
|
2024-07-05 09:36:44 +00:00
|
|
|
"//chrome/browser/win/util_win_service.cc",
|
|
|
|
"//chrome/browser/win/util_win_service.h",
|
2020-10-16 01:30:41 +00:00
|
|
|
"//chrome/child/v8_crashpad_support_win.cc",
|
|
|
|
"//chrome/child/v8_crashpad_support_win.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-07-26 16:02:16 +00:00
|
|
|
if (is_linux) {
|
2021-10-21 18:51:36 +00:00
|
|
|
sources += [ "//chrome/browser/media/webrtc/window_icon_util_ozone.cc" ]
|
2021-07-26 16:02:16 +00:00
|
|
|
}
|
|
|
|
|
2018-10-03 12:26:42 +00:00
|
|
|
public_deps = [
|
2021-01-07 06:40:10 +00:00
|
|
|
"//chrome/browser:dev_ui_browser_resources",
|
2023-06-09 23:08:36 +00:00
|
|
|
"//chrome/browser/resources/accessibility:resources",
|
2022-08-22 14:38:45 +00:00
|
|
|
"//chrome/browser/ui/color:mixers",
|
2018-10-11 13:52:12 +00:00
|
|
|
"//chrome/common",
|
2019-03-05 05:08:55 +00:00
|
|
|
"//chrome/common:version_header",
|
2018-10-11 13:52:12 +00:00
|
|
|
"//components/keyed_service/content",
|
2020-07-16 17:14:54 +00:00
|
|
|
"//components/paint_preview/buildflags",
|
2018-10-04 18:08:56 +00:00
|
|
|
"//components/proxy_config",
|
2021-10-28 14:23:05 +00:00
|
|
|
"//components/services/language_detection/public/mojom",
|
2019-03-05 05:08:55 +00:00
|
|
|
"//content/public/browser",
|
2021-01-07 06:40:10 +00:00
|
|
|
"//services/strings",
|
2019-03-05 05:08:55 +00:00
|
|
|
]
|
2020-07-22 05:34:34 +00:00
|
|
|
|
2023-05-23 19:58:58 +00:00
|
|
|
deps = [
|
2023-06-08 06:56:31 +00:00
|
|
|
"//chrome/app/vector_icons",
|
2023-05-23 19:58:58 +00:00
|
|
|
"//chrome/browser:resource_prefetch_predictor_proto",
|
|
|
|
"//chrome/browser/resource_coordinator:mojo_bindings",
|
2023-07-31 17:47:32 +00:00
|
|
|
"//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
|
2024-04-15 22:10:32 +00:00
|
|
|
"//components/enterprise/buildflags",
|
2024-06-07 21:18:35 +00:00
|
|
|
"//components/enterprise/common/proto:connectors_proto",
|
2024-04-15 22:10:32 +00:00
|
|
|
"//components/safe_browsing/core/browser/db:safebrowsing_proto",
|
2023-06-08 06:56:31 +00:00
|
|
|
"//components/vector_icons:vector_icons",
|
2023-05-24 19:32:31 +00:00
|
|
|
"//ui/snapshot",
|
2023-06-08 06:56:31 +00:00
|
|
|
"//ui/views/controls/webview",
|
2023-05-23 19:58:58 +00:00
|
|
|
]
|
2018-10-03 12:26:42 +00:00
|
|
|
|
2023-10-24 15:24:20 +00:00
|
|
|
if (use_aura) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/platform_util_aura.cc",
|
|
|
|
"//chrome/browser/ui/views/eye_dropper/eye_dropper_aura.cc",
|
|
|
|
"//ui/views/native_window_tracker_aura.cc",
|
|
|
|
"//ui/views/native_window_tracker_aura.h",
|
|
|
|
]
|
|
|
|
deps += [ "//components/eye_dropper" ]
|
|
|
|
}
|
|
|
|
|
2018-10-05 19:12:53 +00:00
|
|
|
if (is_linux) {
|
|
|
|
sources += [ "//chrome/browser/icon_loader_auralinux.cc" ]
|
chore: bump chromium to 92.0.4475.0 (master) (#28462)
* chore: bump chromium in DEPS to 91.0.4464.0
* chore: rebuild chromium/dcheck.patch with import-patches -3
Mechanical only; no code changes
* chore: remove content_browser_main_loop.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
The function being patched (BrowserMainLoop::MainMessageLoopRun()) no
longer exists.
NB: if removing this introduces regressions the likely fix will be to
add a similar patch for ShellBrowserMainParts::WillRunMainMessageLoop()
which has similar code and was added at the same time this was removed.
* chore: rebuild chromium/put_back_deleted_colors_for_autofill.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/disable_color_correct_rendering.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/eat_allow_disabling_blink_scheduler_throttling_per_renderview.patch with patch
Mechanical only; no code changes
* chore: rebuild chromium/gpu_notify_when_dxdiag_request_fails.patch with import-patches -3
Mechanical only; no code changes
* chore: rebuild chromium/ui_gtk_public_header.patch manually
no code changes
* chore: rebuild chromium/web_contents.patch with import-patches -3
Mechanical only; no code changes
* chore: remove v8/skip_global_registration_of_shared_arraybuffer_backing_stores.patch
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/2763874
This patch has been merged upstream
* chore: export patches
* chore: update add_trustedauthclient_to_urlloaderfactory.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2757969
Sync with removal of render_frame_id_
* chore: sync chromium/put_back_deleted_colors_for_autofill.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2785841
SkColorFromColorId() no longer takes theme, scheme args
* chore: sync chromium/put_back_deleted_colors_for_autofill.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2772143
Change new calls to GetDarkSchemeColor to fit our patched call signature
* chore: update add_trustedauthclient_to_urlloaderfactory.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2757969
Sync with removal of render_frame_id_ in our mojom
* chore: update chromium/frame_host_manager.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2740008
UrlInfo ctor now takes UrlInfo::OriginIsolationRequest instead of a bool
* chore: update chromium/revert_remove_contentrendererclient_shouldfork.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2755314
Upstream has removed `history_list_length_` which we were comparing to 0
to calculate our `is_initial_navigation` bool when calling ShouldFork().
ShouldFork() is ours and none of the code paths actually use that param,
so this commit removes it altogether.
* chore: update permissions_to_register
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2789074
Replace all uses of APIPermission::ID enum with Mojo type
* refactor: update return type of PreMainMessageLoopRun()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
Used to return void; now returns an int errorcode.
Note: 2725153 also has some nice doc updates about Browser's "stages"
* refactor: sync ElectronBrowserMainParts to MainParts changes
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
RunMainMessageLoopParts has been replaced with WillRunMainMessageLoop
so `BrowserMainLoop::result_code_` is no longer available to us for our
exit_code_ pointer.
This variable held a dual role: (1) of course, hold the exit code, but
also (2) was a nullptr before the message loop was ready, indicating to
anyone calling SetExitCode() that we were still in startup and could
just exit() without any extra steps. exit_code_ still fulfills these two
roles but is now a base::Optional.
* chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2725153
BrowserMainParts::BrowsePreDefaultMainMesssageLoopRun() has been
removed; move that work to the new WillRunMainMessageLoop().
* refactor: stop using CallbackList; it has been removed.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2785973
* refactor: update use of threadpools.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2773408
The upstream code is still in flux (e.g. reverts and re-lands) but the
tl;dr for this commit is (1) include thread_pool.h if you're using it
and (2) don't instantiate pools directly.
* refactor: remove routing_id from CreateLoaderAndStart
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762858
NB: One logic branch in ProxyingURLLoaderFactory::CreateLoaderAndStart
calls std::make_unique<InProgressRequest>, which needs a routing_id.
This PR uses the member field `routing_id_` since there's no longer one
being passed into CreateLoaderAndStart.
* refactor: sync to upstream ParittionOptions churn
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771318
PartitionOptions' enums have changed.
* refactor: update Manifest::Location usage
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771320
tldr: s/Manifest::FOO/ManifestLocation::kFoo/
* chore: bump chromium in DEPS to 91.0.4465.0
* update patches
* refactor: update extensions::Manifest to upstream
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771320
- extensions::Manifest::COMPONENT
+ extensions::mojom::ManifestLocation::kExternalComponent
* refactor: sync with upstream UrlInfo ctor changes
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2740008
UrlInfo ctor now takes UrlInfo::OriginIsolationRequest instead of a bool
* chore: update invocation of convert_protocol_to_json.py
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2792623
python3 is being used in parts of the upstream build, but the copy of
convert_protocol_to_json.py invoked in v8/third_party/inspector_protocol
is not python3-friendly. Node has a py2+3-friendly version of it in its
tools directory, so call it instead.
* chore: use extensions::mojom::APIPermissionID
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791122
tldr:
- extensions::APIPermission::kFoo
+ extensions::mojom::APIPermissionID::kFoo
* chore: Remove support for TLS1.0/1.1 in SSLVersionMin policy
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2765737
Remove TLS v1.0 & 1.1 from our SSLProtocolVersionFromString() function.
This is the same change made upstream at
https://chromium-review.googlesource.com/c/chromium/src/+/2765737/8/chrome/browser/ssl/ssl_config_service_manager_pref.cc
* fixup! chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
* chore: Use IDType for permission change subscriptions.
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791431
tldr: {Subscribe,Unsubscribe}PermissionStatusChange's tag type used to
be an int; now it's the new SubscriptionId type (which is an IdType64).
* chore: sync PowerMonitor code to upstream refactor
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2752635
tldr: PowerMonitor has been split into PowerStateObserver,
PowerSuspendObserver, and PowerThermalObserver to reduce number of tasks
posted to consumers who only need notifications for one of those things
instead of all of them.
* chore: use PartitionOptions's new Cookies field
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2771318
* Revert "refactor: remove routing_id from CreateLoaderAndStart"
This reverts commit 8c9773b87a3c84f9073a47089eb2b6889d745245.
8c9773b was only a partial fix; reverting to start & try again.
* update patches
* chore: bump chromium in DEPS to 91.0.4466.0
* chore: update chromium/accelerator.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2795472
tldr: sync patch with upstream renamed variable & macro names.
* chore: update chromium/gtk_visibility.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2796200
tldr: no code changes; just updating the diff to apply cleanly.
note: ooh upstream Wayland hacking!
* chore: update chromium/picture-in-picture.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2710023
tldr: no code changes; just updating the diff to apply cleanly.
* chore: update chromium/worker_feat_add_hook_to_notify_script_ready.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2775573
tldr: no code changes; just updating the diff to apply cleanly.
* chore: export_all_patches
* chore: update chromium/feat_add_set_theme_source_to_allow_apps_to.patch
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2796511
tldr: NotifyObservers has been renamed to NotifyOnNativeThemeUpdated,
so update the invocation in our patch.
* chore: update ElectronBrowserClient w/upstream API
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797454
tldr: GetDevToolsManagerDelegate() was returning an owned raw pointer.
Replaced it with CreateDevToolsManagerDelegate() which uses unique_ptr<>.
* chore: handle new content::PermissionType::FILE_HANDLING in toV8()
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762201
`file-handling` string confirmed in https://chromium-review.googlesource.com/c/chromium/src/+/2762201/18/chrome/browser/ui/webui/settings/site_settings_helper.cc
* refactor: remove routing_id from CreateLoaderAndStart pt 1
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2762858
Part 1: the easiest ones
* 2796724: Support Python3
https://chromium-review.googlesource.com/c/infra/luci/python-adb/+/2796724
* chore: bump chromium in DEPS to 91.0.4468.0
* 2668974: WebShare: Implement SharingServicePicker
https://chromium-review.googlesource.com/c/chromium/src/+/2668974
* 2802766: Apply modernize-make-unique to media/
https://chromium-review.googlesource.com/c/chromium/src/+/2802766
* 2802823: Apply modernize-make-unique to gpu/
https://chromium-review.googlesource.com/c/chromium/src/+/2802823
* 2803041: Apply modernize-make-unique to remaining files
https://chromium-review.googlesource.com/c/chromium/src/+/2803041
* 2798873: Convert GtkKeyBindingsHandler build checks to runtime checks
https://chromium-review.googlesource.com/c/chromium/src/+/2798873
* 2733595: [ch-r] Parse ACCEPT_CH H2/3 frame and restart with new headers if needed
https://chromium-review.googlesource.com/c/chromium/src/+/2733595
* chore: update patch indices
* 2795107: Remove unused PermissionRequest IDs.
https://chromium-review.googlesource.com/c/chromium/src/+/2795107
* chore: bump chromium in DEPS to 91.0.4469.0
* chore: fixup patch indices
* chore: bump chromium in DEPS to 91.0.4469.5
* PiP 1.5: Add microphone, camera, and hang up buttons to the PiP window
https://chromium-review.googlesource.com/c/chromium/src/+/2710023
* fixup! refactor: remove routing_id from CreateLoaderAndStart
* refactor: use URLLoaderNetworkServiceObserver for auth requests from SimpleURLLoader
* fixup! chore: fixup patch indices
* 2724817: Expand scope of wasm-eval to all URLs
https://chromium-review.googlesource.com/c/chromium/src/+/2724817
* Fixup patch after rebase
* chore: bump chromium in DEPS to 91.0.4472.0
* 2797341: [ozone/x11] Enabled the global shortcut listener.
https://chromium-review.googlesource.com/c/chromium/src/+/2797341
* 2805553: Reland Add GTK ColorMixers to ColorPipeline P1
https://chromium-review.googlesource.com/c/chromium/src/+/2805553
* 2804366: PiP 1.5: Label back to tab button with origin and center it
https://chromium-review.googlesource.com/c/chromium/src/+/2804366
* 2784730: Fix crash on AX mode change in NativeViewHost without a Widget
https://chromium-review.googlesource.com/c/chromium/src/+/2784730
* chore: update patch indices
* 2810174: Add PdfAnnotationsEnabled policy.
https://chromium-review.googlesource.com/c/chromium/src/+/2810174
* 2807829: Allow capturers to indicate if they want a WakeLock or not.
https://chromium-review.googlesource.com/c/chromium/src/+/2807829
* chore: bump chromium in DEPS to 92.0.4473.0
* chore: bump chromium in DEPS to 92.0.4474.0
* chore: bump chromium in DEPS to 92.0.4475.0
* chore: update patches
* chore: updates patches
* chore: update is_media_key patch to handle new ozone impl
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797341
* fix: ExecuteJavascript requests now need to be flagged as non-bf-aware
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2787195
* chore: icon_util_x11 is now icon_util_linux
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2791362
* build: update sysroots
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2628496
* build: fix missing symbols on linux build
* use_ozone and use_x11 are not exclusive
* new button view to build for pip
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2797341
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2804366
* chore: fix broken gtk_util color patch
* chore: remove patch conflict
* build: update linux manifests
* chore: build bttlb on all platforms for pip
* chore: add thread_pool include for views delegate win
* chore: fix lint
* chore: add node patches for V8 changes
* build: add missing base include on windows
* fix: update frame host manager patch for new state transitions
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2714464
* chore: update windows zip manifests
* chore: update mac zip manifests
* chore: fix patch linting
* refactor: implement missing URLLoaderNetworkServiceObserver methods
It is against The Mojo Rules to leave hanging callbacks. These always
have to be called.
Refs: https://github.com/electron/electron/commit/186528aab9f8e29d658f07d220bb7f627980edda
* spec: fix locale test on local linux
* fix: pass the exit code correctly in new PreMainMessageLoopRun
Refs: https://github.com/electron/electron/commit/2622e91c4493ceb032e2f80cb484885bb8f97475
* fix: ensure we early-exit when request_handler_ is not provided
Refs: https://github.com/electron/electron/commit/93077afbfb6db248a0c0cc447d7ad2c9ccfda1d5
* fix: strongly set result_code in the BrowserMainLoop
* fix: invalid usage of non-targetted PostTask
You must always either use a host threadpool or specify a target
thread. In this case we did neither after this refactor.
Refs: https://github.com/electron/electron/pull/28462/commits/4e33ee0ad35a710bd34641cb0376bdee6aea2d1f
* chore: fix gn check
* chore: remove stray .rej files in patch
* chore: add mojo error code to url loader failure
* build: ensure CI is truthy in arm test env
* fix: handle windowCaptureMacV2 being enabled when fetching media source id
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2709931
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
Co-authored-by: Samuel Attard <sattard@slack-corp.com>
2021-04-15 17:44:35 +00:00
|
|
|
if (use_ozone) {
|
|
|
|
deps += [ "//ui/ozone" ]
|
2020-10-20 18:24:52 +00:00
|
|
|
sources += [
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_ozone.cc",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_ozone.h",
|
|
|
|
]
|
|
|
|
}
|
2018-10-11 05:02:58 +00:00
|
|
|
sources += [
|
2019-10-18 19:57:34 +00:00
|
|
|
"//chrome/browser/ui/views/status_icons/concat_menu_model.cc",
|
|
|
|
"//chrome/browser/ui/views/status_icons/concat_menu_model.h",
|
|
|
|
"//chrome/browser/ui/views/status_icons/status_icon_linux_dbus.cc",
|
|
|
|
"//chrome/browser/ui/views/status_icons/status_icon_linux_dbus.h",
|
|
|
|
]
|
2023-09-27 18:17:40 +00:00
|
|
|
sources += [
|
|
|
|
"//chrome/browser/ui/views/dark_mode_manager_linux.cc",
|
|
|
|
"//chrome/browser/ui/views/dark_mode_manager_linux.h",
|
|
|
|
]
|
2019-10-18 19:57:34 +00:00
|
|
|
public_deps += [
|
|
|
|
"//components/dbus/menu",
|
|
|
|
"//components/dbus/thread_linux",
|
2018-10-11 05:02:58 +00:00
|
|
|
]
|
2018-10-05 19:12:53 +00:00
|
|
|
}
|
|
|
|
|
2020-07-14 01:13:34 +00:00
|
|
|
if (is_win) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/win/icon_reader_service.cc",
|
|
|
|
"//chrome/browser/win/icon_reader_service.h",
|
|
|
|
]
|
2023-09-29 05:26:41 +00:00
|
|
|
public_deps += [
|
2023-10-02 22:01:07 +00:00
|
|
|
"//chrome/browser/web_applications/proto",
|
2023-09-29 05:26:41 +00:00
|
|
|
"//chrome/services/util_win:lib",
|
|
|
|
"//components/webapps/common:mojo_bindings",
|
|
|
|
]
|
2024-07-03 15:15:35 +00:00
|
|
|
deps += [
|
2024-07-05 09:36:44 +00:00
|
|
|
"//chrome/services/util_win/public/mojom",
|
2024-07-03 15:15:35 +00:00
|
|
|
"//components/compose/core/browser:mojo_bindings",
|
|
|
|
"//components/segmentation_platform/public/proto",
|
|
|
|
]
|
2020-07-14 01:13:34 +00:00
|
|
|
}
|
|
|
|
|
2023-06-13 20:23:11 +00:00
|
|
|
if (is_mac) {
|
2023-08-23 13:54:21 +00:00
|
|
|
sources += [
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_mac.h",
|
|
|
|
"//chrome/browser/extensions/global_shortcut_listener_mac.mm",
|
|
|
|
"//chrome/browser/icon_loader_mac.mm",
|
|
|
|
"//chrome/browser/media/webrtc/system_media_capture_permissions_mac.h",
|
|
|
|
"//chrome/browser/media/webrtc/system_media_capture_permissions_mac.mm",
|
|
|
|
"//chrome/browser/media/webrtc/system_media_capture_permissions_stats_mac.h",
|
|
|
|
"//chrome/browser/media/webrtc/system_media_capture_permissions_stats_mac.mm",
|
2024-02-14 04:46:51 +00:00
|
|
|
"//chrome/browser/media/webrtc/thumbnail_capturer_mac.h",
|
|
|
|
"//chrome/browser/media/webrtc/thumbnail_capturer_mac.mm",
|
2023-08-23 13:54:21 +00:00
|
|
|
"//chrome/browser/media/webrtc/window_icon_util_mac.mm",
|
2024-09-26 09:12:12 +00:00
|
|
|
"//chrome/browser/permissions/system/media_authorization_wrapper_mac.h",
|
2023-08-23 13:54:21 +00:00
|
|
|
"//chrome/browser/platform_util_mac.mm",
|
|
|
|
"//chrome/browser/process_singleton_mac.mm",
|
|
|
|
"//chrome/browser/ui/views/eye_dropper/eye_dropper_view_mac.h",
|
|
|
|
"//chrome/browser/ui/views/eye_dropper/eye_dropper_view_mac.mm",
|
|
|
|
]
|
2024-09-26 09:12:12 +00:00
|
|
|
deps += [ ":system_media_capture_permissions_mac_conflict" ]
|
2023-06-13 20:23:11 +00:00
|
|
|
}
|
|
|
|
|
2018-10-11 13:52:12 +00:00
|
|
|
if (enable_widevine) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/renderer/media/chrome_key_systems.cc",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems.h",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems_provider.cc",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems_provider.h",
|
|
|
|
]
|
|
|
|
deps += [ "//components/cdm/renderer" ]
|
|
|
|
}
|
2018-11-09 03:42:34 +00:00
|
|
|
|
2022-10-27 16:37:04 +00:00
|
|
|
if (enable_printing) {
|
2018-11-09 03:42:34 +00:00
|
|
|
sources += [
|
2022-01-10 22:31:39 +00:00
|
|
|
"//chrome/browser/bad_message.cc",
|
|
|
|
"//chrome/browser/bad_message.h",
|
2023-11-28 21:40:12 +00:00
|
|
|
"//chrome/browser/printing/prefs_util.cc",
|
|
|
|
"//chrome/browser/printing/prefs_util.h",
|
2024-04-15 22:10:32 +00:00
|
|
|
"//chrome/browser/printing/print_compositor_util.cc",
|
|
|
|
"//chrome/browser/printing/print_compositor_util.h",
|
2018-11-09 03:42:34 +00:00
|
|
|
"//chrome/browser/printing/print_job.cc",
|
|
|
|
"//chrome/browser/printing/print_job.h",
|
|
|
|
"//chrome/browser/printing/print_job_manager.cc",
|
|
|
|
"//chrome/browser/printing/print_job_manager.h",
|
|
|
|
"//chrome/browser/printing/print_job_worker.cc",
|
|
|
|
"//chrome/browser/printing/print_job_worker.h",
|
2022-01-10 22:31:39 +00:00
|
|
|
"//chrome/browser/printing/print_job_worker_oop.cc",
|
|
|
|
"//chrome/browser/printing/print_job_worker_oop.h",
|
2018-11-09 03:42:34 +00:00
|
|
|
"//chrome/browser/printing/print_view_manager_base.cc",
|
|
|
|
"//chrome/browser/printing/print_view_manager_base.h",
|
|
|
|
"//chrome/browser/printing/printer_query.cc",
|
|
|
|
"//chrome/browser/printing/printer_query.h",
|
2023-01-06 02:35:34 +00:00
|
|
|
"//chrome/browser/printing/printer_query_oop.cc",
|
|
|
|
"//chrome/browser/printing/printer_query_oop.h",
|
2019-10-09 17:59:37 +00:00
|
|
|
"//chrome/browser/printing/printing_service.cc",
|
|
|
|
"//chrome/browser/printing/printing_service.h",
|
2022-09-07 07:46:37 +00:00
|
|
|
"//components/printing/browser/print_to_pdf/pdf_print_job.cc",
|
|
|
|
"//components/printing/browser/print_to_pdf/pdf_print_job.h",
|
2022-10-20 18:30:40 +00:00
|
|
|
"//components/printing/browser/print_to_pdf/pdf_print_result.cc",
|
|
|
|
"//components/printing/browser/print_to_pdf/pdf_print_result.h",
|
2022-05-31 06:21:25 +00:00
|
|
|
"//components/printing/browser/print_to_pdf/pdf_print_utils.cc",
|
|
|
|
"//components/printing/browser/print_to_pdf/pdf_print_utils.h",
|
2018-11-09 03:42:34 +00:00
|
|
|
]
|
2019-08-24 01:14:23 +00:00
|
|
|
|
2021-10-21 18:51:36 +00:00
|
|
|
if (enable_oop_printing) {
|
|
|
|
sources += [
|
2024-04-15 22:10:32 +00:00
|
|
|
"//chrome/browser/printing/oop_features.cc",
|
|
|
|
"//chrome/browser/printing/oop_features.h",
|
2021-10-21 18:51:36 +00:00
|
|
|
"//chrome/browser/printing/print_backend_service_manager.cc",
|
|
|
|
"//chrome/browser/printing/print_backend_service_manager.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2019-03-05 05:08:55 +00:00
|
|
|
public_deps += [
|
2018-11-09 03:42:34 +00:00
|
|
|
"//chrome/services/printing:lib",
|
|
|
|
"//components/printing/browser",
|
|
|
|
"//components/printing/renderer",
|
2020-01-17 18:41:52 +00:00
|
|
|
"//components/services/print_compositor",
|
|
|
|
"//components/services/print_compositor/public/cpp",
|
|
|
|
"//components/services/print_compositor/public/mojom",
|
2021-10-06 02:21:00 +00:00
|
|
|
"//printing/backend",
|
2019-03-05 05:08:55 +00:00
|
|
|
]
|
2019-08-24 01:14:23 +00:00
|
|
|
|
2019-03-05 05:08:55 +00:00
|
|
|
deps += [
|
|
|
|
"//components/printing/common",
|
2018-11-09 03:42:34 +00:00
|
|
|
"//printing",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/printing/pdf_to_emf_converter.cc",
|
|
|
|
"//chrome/browser/printing/pdf_to_emf_converter.h",
|
2022-10-27 16:37:04 +00:00
|
|
|
"//chrome/browser/printing/printer_xml_parser_impl.cc",
|
|
|
|
"//chrome/browser/printing/printer_xml_parser_impl.h",
|
2024-04-15 22:10:32 +00:00
|
|
|
"//chrome/browser/printing/xps_features.cc",
|
|
|
|
"//chrome/browser/printing/xps_features.h",
|
2018-11-09 03:42:34 +00:00
|
|
|
]
|
2022-10-27 16:37:04 +00:00
|
|
|
deps += [ "//printing:printing_base" ]
|
2018-11-09 03:42:34 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-22 10:17:50 +00:00
|
|
|
|
2020-01-15 23:11:51 +00:00
|
|
|
if (enable_electron_extensions) {
|
|
|
|
sources += [
|
2020-02-13 00:39:12 +00:00
|
|
|
"//chrome/browser/extensions/chrome_url_request_util.cc",
|
|
|
|
"//chrome/browser/extensions/chrome_url_request_util.h",
|
|
|
|
"//chrome/browser/plugins/plugin_response_interceptor_url_loader_throttle.cc",
|
|
|
|
"//chrome/browser/plugins/plugin_response_interceptor_url_loader_throttle.h",
|
2022-11-17 19:59:23 +00:00
|
|
|
"//chrome/renderer/extensions/api/extension_hooks_delegate.cc",
|
|
|
|
"//chrome/renderer/extensions/api/extension_hooks_delegate.h",
|
|
|
|
"//chrome/renderer/extensions/api/tabs_hooks_delegate.cc",
|
|
|
|
"//chrome/renderer/extensions/api/tabs_hooks_delegate.h",
|
2020-01-15 23:11:51 +00:00
|
|
|
]
|
2020-04-29 06:16:10 +00:00
|
|
|
|
|
|
|
if (enable_pdf_viewer) {
|
|
|
|
sources += [
|
2022-03-25 01:39:03 +00:00
|
|
|
"//chrome/browser/pdf/chrome_pdf_stream_delegate.cc",
|
|
|
|
"//chrome/browser/pdf/chrome_pdf_stream_delegate.h",
|
2020-04-29 06:16:10 +00:00
|
|
|
"//chrome/browser/pdf/pdf_extension_util.cc",
|
|
|
|
"//chrome/browser/pdf/pdf_extension_util.h",
|
2023-11-28 21:40:12 +00:00
|
|
|
"//chrome/browser/pdf/pdf_viewer_stream_manager.cc",
|
|
|
|
"//chrome/browser/pdf/pdf_viewer_stream_manager.h",
|
2022-03-25 01:39:03 +00:00
|
|
|
"//chrome/browser/plugins/pdf_iframe_navigation_throttle.cc",
|
|
|
|
"//chrome/browser/plugins/pdf_iframe_navigation_throttle.h",
|
2020-04-29 06:16:10 +00:00
|
|
|
]
|
2022-03-30 18:55:38 +00:00
|
|
|
deps += [
|
|
|
|
"//components/pdf/browser",
|
|
|
|
"//components/pdf/renderer",
|
|
|
|
]
|
2020-04-29 06:16:10 +00:00
|
|
|
}
|
2023-10-04 08:40:01 +00:00
|
|
|
} else {
|
|
|
|
# These are required by the webRequest module.
|
|
|
|
sources += [
|
|
|
|
"//extensions/browser/api/declarative_net_request/request_action.cc",
|
|
|
|
"//extensions/browser/api/declarative_net_request/request_action.h",
|
|
|
|
"//extensions/browser/api/web_request/form_data_parser.cc",
|
|
|
|
"//extensions/browser/api/web_request/form_data_parser.h",
|
|
|
|
"//extensions/browser/api/web_request/upload_data_presenter.cc",
|
|
|
|
"//extensions/browser/api/web_request/upload_data_presenter.h",
|
|
|
|
"//extensions/browser/api/web_request/web_request_api_constants.cc",
|
|
|
|
"//extensions/browser/api/web_request/web_request_api_constants.h",
|
|
|
|
"//extensions/browser/api/web_request/web_request_info.cc",
|
|
|
|
"//extensions/browser/api/web_request/web_request_info.h",
|
|
|
|
"//extensions/browser/api/web_request/web_request_resource_type.cc",
|
|
|
|
"//extensions/browser/api/web_request/web_request_resource_type.h",
|
|
|
|
"//extensions/browser/extension_api_frame_id_map.cc",
|
|
|
|
"//extensions/browser/extension_api_frame_id_map.h",
|
|
|
|
"//extensions/browser/extension_navigation_ui_data.cc",
|
|
|
|
"//extensions/browser/extension_navigation_ui_data.h",
|
|
|
|
"//extensions/browser/extensions_browser_client.cc",
|
|
|
|
"//extensions/browser/extensions_browser_client.h",
|
|
|
|
"//extensions/browser/guest_view/web_view/web_view_renderer_state.cc",
|
|
|
|
"//extensions/browser/guest_view/web_view/web_view_renderer_state.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps += [
|
|
|
|
"//extensions/browser/api/declarative_net_request/flat:extension_ruleset",
|
|
|
|
]
|
2020-01-15 23:11:51 +00:00
|
|
|
}
|
2020-10-02 21:50:24 +00:00
|
|
|
|
2020-11-16 17:47:09 +00:00
|
|
|
if (!is_mas_build) {
|
|
|
|
sources += [ "//chrome/browser/hang_monitor/hang_crash_dump.h" ]
|
|
|
|
if (is_mac) {
|
|
|
|
sources += [ "//chrome/browser/hang_monitor/hang_crash_dump_mac.cc" ]
|
|
|
|
} else if (is_win) {
|
|
|
|
sources += [ "//chrome/browser/hang_monitor/hang_crash_dump_win.cc" ]
|
|
|
|
} else {
|
|
|
|
sources += [ "//chrome/browser/hang_monitor/hang_crash_dump.cc" ]
|
|
|
|
}
|
2020-10-02 21:50:24 +00:00
|
|
|
}
|
2018-09-12 13:45:08 +00:00
|
|
|
}
|
2019-10-31 20:11:51 +00:00
|
|
|
|
|
|
|
# This source set is just so we don't have to depend on all of //chrome/browser
|
|
|
|
# You may have to add new files here during the upgrade if //chrome/browser/spellchecker
|
|
|
|
# gets more files
|
|
|
|
source_set("chrome_spellchecker") {
|
2019-11-30 22:17:46 +00:00
|
|
|
sources = []
|
|
|
|
deps = []
|
|
|
|
libs = []
|
2020-10-15 20:41:05 +00:00
|
|
|
public_deps = []
|
2019-10-31 20:11:51 +00:00
|
|
|
|
2019-11-30 22:17:46 +00:00
|
|
|
if (enable_builtin_spellchecker) {
|
2019-10-31 20:11:51 +00:00
|
|
|
sources += [
|
2022-09-07 07:46:37 +00:00
|
|
|
"//chrome/browser/profiles/profile_keyed_service_factory.cc",
|
|
|
|
"//chrome/browser/profiles/profile_keyed_service_factory.h",
|
|
|
|
"//chrome/browser/profiles/profile_selections.cc",
|
|
|
|
"//chrome/browser/profiles/profile_selections.h",
|
2019-11-30 22:17:46 +00:00
|
|
|
"//chrome/browser/spellchecker/spell_check_host_chrome_impl.cc",
|
|
|
|
"//chrome/browser/spellchecker/spell_check_host_chrome_impl.h",
|
2024-01-03 08:52:49 +00:00
|
|
|
"//chrome/browser/spellchecker/spell_check_initialization_host_impl.cc",
|
|
|
|
"//chrome/browser/spellchecker/spell_check_initialization_host_impl.h",
|
2019-11-30 22:17:46 +00:00
|
|
|
"//chrome/browser/spellchecker/spellcheck_custom_dictionary.cc",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_custom_dictionary.h",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_factory.cc",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_factory.h",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_service.cc",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_service.h",
|
2019-10-31 20:11:51 +00:00
|
|
|
]
|
|
|
|
|
2022-07-13 21:26:16 +00:00
|
|
|
if (!is_mac) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_language_blocklist_policy_handler.cc",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_language_blocklist_policy_handler.h",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_language_policy_handler.cc",
|
|
|
|
"//chrome/browser/spellchecker/spellcheck_language_policy_handler.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2019-11-30 22:17:46 +00:00
|
|
|
if (has_spellcheck_panel) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/spellchecker/spell_check_panel_host_impl.cc",
|
|
|
|
"//chrome/browser/spellchecker/spell_check_panel_host_impl.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (use_browser_spellchecker) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/browser/spellchecker/spelling_request.cc",
|
|
|
|
"//chrome/browser/spellchecker/spelling_request.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
deps += [
|
|
|
|
"//base:base_static",
|
|
|
|
"//components/language/core/browser",
|
|
|
|
"//components/spellcheck:buildflags",
|
|
|
|
"//components/sync",
|
2019-10-31 20:11:51 +00:00
|
|
|
]
|
2020-10-15 20:41:05 +00:00
|
|
|
|
|
|
|
public_deps += [ "//chrome/common:constants" ]
|
2019-10-31 20:11:51 +00:00
|
|
|
}
|
|
|
|
|
2020-10-15 20:41:05 +00:00
|
|
|
public_deps += [
|
2019-10-31 20:11:51 +00:00
|
|
|
"//components/spellcheck/browser",
|
|
|
|
"//components/spellcheck/common",
|
|
|
|
"//components/spellcheck/renderer",
|
|
|
|
]
|
|
|
|
}
|
2024-09-26 09:12:12 +00:00
|
|
|
|
|
|
|
# These sources create an object file conflict with one in |:chrome|, so they
|
|
|
|
# must live in a separate target.
|
|
|
|
# Conflicting sources:
|
|
|
|
# //chrome/browser/media/webrtc/system_media_capture_permissions_stats_mac.mm
|
|
|
|
# //chrome/browser/permissions/system/system_media_capture_permissions_mac.mm
|
|
|
|
source_set("system_media_capture_permissions_mac_conflict") {
|
|
|
|
sources = [
|
|
|
|
"//chrome/browser/permissions/system/system_media_capture_permissions_mac.h",
|
|
|
|
"//chrome/browser/permissions/system/system_media_capture_permissions_mac.mm",
|
|
|
|
]
|
|
|
|
deps = [ "//chrome/common" ]
|
|
|
|
}
|