mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 09:47:56 +08:00
For all of these files, there was no occurrence of the word "color" in them. Therefore, most of these files were complete noops. There were two exceptions: some white backgrounds and a box shadow used for image previews in the sources panel. For the latter, a new CSS variable is extracted into themeColors.css R=jacktfranklin@chromium.org Bug: 1152736 Change-Id: I40f2f1e28cc3c7038b831003f1eb32cc923b411a Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2567113 Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
29 lines
926 B
JavaScript
29 lines
926 B
JavaScript
// Copyright 2018 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 * as Common from '../common/common.js';
|
|
import {VBox} from './Widget.js';
|
|
|
|
export class TargetCrashedScreen extends VBox {
|
|
/**
|
|
* @param {function():*} hideCallback
|
|
*/
|
|
constructor(hideCallback) {
|
|
super(true);
|
|
this.registerRequiredCSS('ui/targetCrashedScreen.css', {enableLegacyPatching: false});
|
|
this.contentElement.createChild('div', 'message').textContent =
|
|
Common.UIString.UIString('DevTools was disconnected from the page.');
|
|
this.contentElement.createChild('div', 'message').textContent =
|
|
Common.UIString.UIString('Once page is reloaded, DevTools will automatically reconnect.');
|
|
this._hideCallback = hideCallback;
|
|
}
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
willHide() {
|
|
this._hideCallback.call(null);
|
|
}
|
|
}
|