META-INF.dirigible.dev-tools.sources.Plugin.js Maven / Gradle / Ivy
// Copyright 2020 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'; // eslint-disable-line no-unused-vars
import * as Workspace from '../workspace/workspace.js'; // eslint-disable-line no-unused-vars
export class Plugin {
/**
* @param {!Workspace.UISourceCode.UISourceCode} uiSourceCode
* @return {boolean}
*/
static accepts(uiSourceCode) {
return false;
}
wasShown() {
}
willHide() {
}
/**
* @return {!Promise>}
*/
async rightToolbarItems() {
return [];
}
/**
* @return {!Array}
*
* TODO(szuend): It is OK to asyncify this function (similar to {rightToolbarItems}),
* but it is currently not strictly necessary.
*/
leftToolbarItems() {
return [];
}
/**
* @param {!UI.ContextMenu.ContextMenu} contextMenu
* @param {number} lineNumber
* @return {!Promise}
*/
populateLineGutterContextMenu(contextMenu, lineNumber) {
return Promise.resolve();
}
/**
* @param {!UI.ContextMenu.ContextMenu} contextMenu
* @param {number} lineNumber
* @param {number} columnNumber
* @return {!Promise}
*/
populateTextAreaContextMenu(contextMenu, lineNumber, columnNumber) {
return Promise.resolve();
}
dispose() {
}
}