diff --git a/all_devtools_modules.gni b/all_devtools_modules.gni index 3e65c601362..7464aca5ed4 100644 --- a/all_devtools_modules.gni +++ b/all_devtools_modules.gni @@ -90,12 +90,6 @@ all_devtools_module_sources = [ "media/PlayerPropertiesView.js", "media/TickingFlameChart.js", "media/TickingFlameChartHelpers.js", - "mobile_throttling/MobileThrottlingSelector.js", - "mobile_throttling/NetworkPanelIndicator.js", - "mobile_throttling/NetworkThrottlingSelector.js", - "mobile_throttling/ThrottlingManager.js", - "mobile_throttling/ThrottlingPresets.js", - "mobile_throttling/ThrottlingSettingsTab.js", "network/BinaryResourceView.js", "network/BlockedURLsPane.js", "network/EventSourceMessagesView.js", @@ -443,6 +437,12 @@ all_typescript_module_sources = [ "javascript_metadata/JavaScriptMetadata.js", "javascript_metadata/NativeFunctions.js", "js_main/JsMain.js", + "mobile_throttling/MobileThrottlingSelector.js", + "mobile_throttling/NetworkPanelIndicator.js", + "mobile_throttling/NetworkThrottlingSelector.js", + "mobile_throttling/ThrottlingManager.js", + "mobile_throttling/ThrottlingPresets.js", + "mobile_throttling/ThrottlingSettingsTab.js", "performance_monitor/PerformanceMonitor.js", "persistence/Automapping.js", "persistence/EditFileSystemView.js", diff --git a/devtools_module_entrypoints.gni b/devtools_module_entrypoints.gni index 0c2f6314f94..1c6ad4b3eee 100644 --- a/devtools_module_entrypoints.gni +++ b/devtools_module_entrypoints.gni @@ -64,7 +64,6 @@ devtools_module_entrypoint_sources = [ "media/media-legacy.js", "media/media.js", "mobile_throttling/mobile_throttling-legacy.js", - "mobile_throttling/mobile_throttling.js", "network/network-legacy.js", "network/network.js", "node_main/node_main-legacy.js", @@ -154,6 +153,7 @@ generated_typescript_entrypoint_sources = [ "$resources_out_dir/javascript_metadata/javascript_metadata.js", "$resources_out_dir/js_main/js_main.js", "$resources_out_dir/marked/marked.js", + "$resources_out_dir/mobile_throttling/mobile_throttling.js", "$resources_out_dir/performance_monitor/performance_monitor.js", "$resources_out_dir/persistence/persistence.js", "$resources_out_dir/platform/platform.js", diff --git a/front_end/BUILD.gn b/front_end/BUILD.gn index 0024c55bf22..1e250815114 100644 --- a/front_end/BUILD.gn +++ b/front_end/BUILD.gn @@ -34,6 +34,7 @@ group("front_end") { "issues:bundle", "javascript_metadata:bundle", "js_main:bundle", + "mobile_throttling:bundle", "performance_monitor:bundle", "persistence:bundle", "protocol_client:bundle", diff --git a/front_end/mobile_throttling/BUILD.gn b/front_end/mobile_throttling/BUILD.gn new file mode 100644 index 00000000000..dcc1c80b5dc --- /dev/null +++ b/front_end/mobile_throttling/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright 2020 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("../../scripts/build/ninja/devtools_entrypoint.gni") +import("../../scripts/build/ninja/devtools_module.gni") + +devtools_module("mobile_throttling") { + sources = [ + "MobileThrottlingSelector.js", + "NetworkPanelIndicator.js", + "NetworkThrottlingSelector.js", + "ThrottlingManager.js", + "ThrottlingPresets.js", + "ThrottlingSettingsTab.js", + ] + + deps = [ + "../common:bundle", + "../host:bundle", + "../sdk:bundle", + "../ui:bundle", + ] +} + +devtools_entrypoint("bundle") { + entrypoint = "mobile_throttling.js" + is_legacy_javascript_entrypoint = [ "crbug.com/1011811" ] + + deps = [ ":mobile_throttling" ] +} diff --git a/front_end/mobile_throttling/MobileThrottlingSelector.js b/front_end/mobile_throttling/MobileThrottlingSelector.js index 3e4236020cb..eeae52c9715 100644 --- a/front_end/mobile_throttling/MobileThrottlingSelector.js +++ b/front_end/mobile_throttling/MobileThrottlingSelector.js @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @ts-nocheck +// TODO(crbug.com/1011811): Enable TypeScript compiler checks + import * as Common from '../common/common.js'; import * as SDK from '../sdk/sdk.js'; diff --git a/front_end/mobile_throttling/NetworkPanelIndicator.js b/front_end/mobile_throttling/NetworkPanelIndicator.js index 8504ab03326..4f76d928c57 100644 --- a/front_end/mobile_throttling/NetworkPanelIndicator.js +++ b/front_end/mobile_throttling/NetworkPanelIndicator.js @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @ts-nocheck +// TODO(crbug.com/1011811): Enable TypeScript compiler checks + import * as Common from '../common/common.js'; import * as SDK from '../sdk/sdk.js'; import * as UI from '../ui/ui.js'; diff --git a/front_end/mobile_throttling/NetworkThrottlingSelector.js b/front_end/mobile_throttling/NetworkThrottlingSelector.js index 24f3ee259c4..94fe6508f94 100644 --- a/front_end/mobile_throttling/NetworkThrottlingSelector.js +++ b/front_end/mobile_throttling/NetworkThrottlingSelector.js @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @ts-nocheck +// TODO(crbug.com/1011811): Enable TypeScript compiler checks + import * as Common from '../common/common.js'; import * as SDK from '../sdk/sdk.js'; diff --git a/front_end/mobile_throttling/ThrottlingManager.js b/front_end/mobile_throttling/ThrottlingManager.js index 85e5eaaffa9..05b988f4816 100644 --- a/front_end/mobile_throttling/ThrottlingManager.js +++ b/front_end/mobile_throttling/ThrottlingManager.js @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @ts-nocheck +// TODO(crbug.com/1011811): Enable TypeScript compiler checks + import * as Common from '../common/common.js'; import * as Host from '../host/host.js'; import * as SDK from '../sdk/sdk.js'; diff --git a/front_end/mobile_throttling/ThrottlingPresets.js b/front_end/mobile_throttling/ThrottlingPresets.js index 4ba187deb9c..a7f8513bacc 100644 --- a/front_end/mobile_throttling/ThrottlingPresets.js +++ b/front_end/mobile_throttling/ThrottlingPresets.js @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @ts-nocheck +// TODO(crbug.com/1011811): Enable TypeScript compiler checks + import * as Common from '../common/common.js'; import * as SDK from '../sdk/sdk.js'; diff --git a/front_end/mobile_throttling/ThrottlingSettingsTab.js b/front_end/mobile_throttling/ThrottlingSettingsTab.js index 7afce21fa7c..f017dc5543d 100644 --- a/front_end/mobile_throttling/ThrottlingSettingsTab.js +++ b/front_end/mobile_throttling/ThrottlingSettingsTab.js @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @ts-nocheck +// TODO(crbug.com/1011811): Enable TypeScript compiler checks + import * as Common from '../common/common.js'; import * as SDK from '../sdk/sdk.js'; // eslint-disable-line no-unused-vars import * as UI from '../ui/ui.js'; diff --git a/front_end/mobile_throttling/module.json b/front_end/mobile_throttling/module.json index 6d393a26f85..e892b2d7412 100644 --- a/front_end/mobile_throttling/module.json +++ b/front_end/mobile_throttling/module.json @@ -68,5 +68,6 @@ ], "resources": [ "throttlingSettingsTab.css" - ] -} + ], + "skip_rollup": true +} \ No newline at end of file