Files
react-native-devtools-frontend/front_end/css_overview/CSSOverviewStartView.js
T
Tim van der Lippe 2e38eeaf9f Remove all comments with only the unrestricted annotation
The unrestricted annotation is Closure-specific and can be removed.
This patch removes all comments with only the unrestricted annotation
in them.

R=szuend@chromium.org

No-Presubmit: True
Bug: 1011811
Change-Id: Iba0723644f53f5307c3077d341271af86becc32a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2569758
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2020-12-02 15:25:32 +00:00

39 lines
1.2 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.
import * as UI from '../ui/ui.js';
import {Events, OverviewController} from './CSSOverviewController.js'; // eslint-disable-line no-unused-vars
export class CSSOverviewStartView extends UI.Widget.Widget {
/**
* @param {!OverviewController} controller
*/
constructor(controller) {
super();
this.registerRequiredCSS('css_overview/cssOverviewStartView.css', {enableLegacyPatching: false});
this._controller = controller;
this._render();
}
_render() {
const startButton = UI.UIUtils.createTextButton(
ls`Capture overview`, () => this._controller.dispatchEventToListeners(Events.RequestOverviewStart), '',
true /* primary */);
this.setDefaultFocusedElement(startButton);
const fragment = UI.Fragment.Fragment.build`
<div class="vbox overview-start-view">
<h1>${ls`CSS Overview`}</h1>
<div>${startButton}</div>
</div>
`;
this.contentElement.appendChild(fragment.element());
this.contentElement.style.overflow = 'auto';
}
}