Migrate `front_end/screencast` to `devtools_entrypoint`
Bug: 1101738
Change-Id: I06405e2056875072e248acb601772ae416e6c4fa
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2323633
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Auto-Submit: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
diff --git a/all_devtools_modules.gni b/all_devtools_modules.gni
index 73f0d7a..d02cebe 100644
--- a/all_devtools_modules.gni
+++ b/all_devtools_modules.gni
@@ -194,9 +194,6 @@
"resources/ServiceWorkerCacheViews.js",
"resources/ServiceWorkersView.js",
"resources/StorageItemsView.js",
- "screencast/InputModel.js",
- "screencast/ScreencastApp.js",
- "screencast/ScreencastView.js",
"security/SecurityModel.js",
"security/SecurityPanel.js",
"snippets/ScriptSnippetFileSystem.js",
@@ -468,6 +465,9 @@
"protocol_client/InspectorBackend.js",
"protocol_client/NodeURL.js",
"root/Runtime.js",
+ "screencast/InputModel.js",
+ "screencast/ScreencastApp.js",
+ "screencast/ScreencastView.js",
"sdk/CPUProfileDataModel.js",
"sdk/CPUProfilerModel.js",
"sdk/CSSFontFace.js",
diff --git a/devtools_module_entrypoints.gni b/devtools_module_entrypoints.gni
index 8c3aeed..2e6b143 100644
--- a/devtools_module_entrypoints.gni
+++ b/devtools_module_entrypoints.gni
@@ -88,7 +88,6 @@
"root.js",
"root/root-legacy.js",
"screencast/screencast-legacy.js",
- "screencast/screencast.js",
"sdk/sdk-legacy.js",
"search/search-legacy.js",
"security/security-legacy.js",
@@ -160,6 +159,7 @@
"$resources_out_dir/platform/platform.js",
"$resources_out_dir/protocol_client/protocol_client.js",
"$resources_out_dir/root/root.js",
+ "$resources_out_dir/screencast/screencast.js",
"$resources_out_dir/sdk/sdk.js",
"$resources_out_dir/search/search.js",
"$resources_out_dir/services/services.js",
diff --git a/front_end/BUILD.gn b/front_end/BUILD.gn
index 964866f..3590a40 100644
--- a/front_end/BUILD.gn
+++ b/front_end/BUILD.gn
@@ -36,6 +36,7 @@
"performance_monitor:bundle",
"persistence:bundle",
"protocol_client:bundle",
+ "screencast:bundle",
"sdk:bundle",
"search:bundle",
"services:bundle",
diff --git a/front_end/screencast/BUILD.gn b/front_end/screencast/BUILD.gn
new file mode 100644
index 0000000..a02adae
--- /dev/null
+++ b/front_end/screencast/BUILD.gn
@@ -0,0 +1,28 @@
+# 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("screencast") {
+ sources = [
+ "InputModel.js",
+ "ScreencastApp.js",
+ "ScreencastView.js",
+ ]
+
+ deps = [
+ "../common:bundle",
+ "../host:bundle",
+ "../sdk:bundle",
+ "../ui:bundle",
+ ]
+}
+
+devtools_entrypoint("bundle") {
+ entrypoint = "screencast.js"
+ is_legacy_javascript_entrypoint = [ "crbug.com/1011811" ]
+
+ deps = [ ":screencast" ]
+}
diff --git a/front_end/screencast/InputModel.js b/front_end/screencast/InputModel.js
index fec6c91..10ed2e0 100644
--- a/front_end/screencast/InputModel.js
+++ b/front_end/screencast/InputModel.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 SDK from '../sdk/sdk.js';
export class InputModel extends SDK.SDKModel.SDKModel {
diff --git a/front_end/screencast/ScreencastApp.js b/front_end/screencast/ScreencastApp.js
index 30f6590..64d098f 100644
--- a/front_end/screencast/ScreencastApp.js
+++ b/front_end/screencast/ScreencastApp.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/screencast/ScreencastView.js b/front_end/screencast/ScreencastView.js
index 45fb672..af97a75 100644
--- a/front_end/screencast/ScreencastView.js
+++ b/front_end/screencast/ScreencastView.js
@@ -28,6 +28,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// @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/screencast/module.json b/front_end/screencast/module.json
index 2edc93d..359fa06 100644
--- a/front_end/screencast/module.json
+++ b/front_end/screencast/module.json
@@ -31,5 +31,6 @@
],
"resources": [
"screencastView.css"
- ]
-}
+ ],
+ "skip_rollup": true
+}
\ No newline at end of file