mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
R=aerotwist@chromium.org Bug: 1131500 Change-Id: Ic61ee8b06fc5c6cfbc41682aebbdc232e91e556e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2476333 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
49 lines
1.6 KiB
JavaScript
49 lines
1.6 KiB
JavaScript
// Copyright 2019 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.
|
|
|
|
// @ts-nocheck
|
|
|
|
import * as HostModule from './host.js';
|
|
|
|
self.Host = self.Host || {};
|
|
Host = Host || {};
|
|
|
|
/** @type {!HostModule.InspectorFrontendHost.InspectorFrontendHostStub} */
|
|
Host.InspectorFrontendHost = HostModule.InspectorFrontendHost.InspectorFrontendHostInstance;
|
|
|
|
Host.isUnderTest = HostModule.InspectorFrontendHost.isUnderTest;
|
|
|
|
Host.InspectorFrontendHostAPI = {};
|
|
|
|
Host.InspectorFrontendHostAPI.Events = HostModule.InspectorFrontendHostAPI.Events;
|
|
|
|
Host.platform = HostModule.Platform.platform;
|
|
Host.isWin = HostModule.Platform.isWin;
|
|
Host.isMac = HostModule.Platform.isMac;
|
|
Host.isCustomDevtoolsFrontend = HostModule.Platform.isCustomDevtoolsFrontend;
|
|
Host.fontFamily = HostModule.Platform.fontFamily;
|
|
|
|
Host.ResourceLoader = HostModule.ResourceLoader.ResourceLoader;
|
|
|
|
/**
|
|
* @param {string} url
|
|
* @param {?Object.<string, string>} headers
|
|
* @param {function(boolean, !Object.<string, string>, string, !HostModule.ResourceLoader.LoadErrorDescription)} callback
|
|
*/
|
|
Host.ResourceLoader.load = HostModule.ResourceLoader.load;
|
|
|
|
Host.ResourceLoader.loadAsStream = HostModule.ResourceLoader.loadAsStream;
|
|
Host.ResourceLoader.setLoadForTest = HostModule.ResourceLoader.setLoadForTest;
|
|
|
|
/** @constructor */
|
|
Host.UserMetrics = HostModule.UserMetrics.UserMetrics;
|
|
|
|
Host.UserMetrics._PanelCodes = HostModule.UserMetrics.PanelCodes;
|
|
|
|
/** @enum {number} */
|
|
Host.UserMetrics.Action = HostModule.UserMetrics.Action;
|
|
|
|
/** @type {!Host.UserMetrics} */
|
|
Host.userMetrics = HostModule.userMetrics;
|