debug-server-next
Version:
Dev server for hippy-core.
36 lines (35 loc) • 831 B
JavaScript
// Copyright 2016 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 { ViewManager } from './ViewManager.js';
import { VBox } from './Widget.js';
export class SimpleView extends VBox {
_title;
constructor(title, isWebComponent) {
super(isWebComponent);
this._title = title;
}
viewId() {
return this._title;
}
title() {
return this._title;
}
isCloseable() {
return false;
}
isTransient() {
return false;
}
toolbarItems() {
return Promise.resolve([]);
}
widget() {
return Promise.resolve(this);
}
revealView() {
return ViewManager.instance().revealView(this);
}
disposeView() {
}
}