Files
react-native-devtools-frontend/front_end/ui/TargetCrashedScreen.js
T
Simon Zünd 1bc65e62d3 [ts] Remove @ts-nocheck in 'ui' files where its not needed
TBR=jacktfranklin@chromium.org

Bug: chromium:1011811
Change-Id: I6c2480e67a29765a2ef67ae85202532917a4d718
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2351773
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-08-12 08:44:36 +00:00

29 lines
895 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');
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);
}
}