/******************************************************************************** * Copyright (C) 2019 Ericsson and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available under the following Secondary * Licenses when the conditions for such availability set forth in the Eclipse * Public License v. 2.0 are satisfied: GNU General Public License, version 2 * with the GNU Classpath Exception which is available at * https://www.gnu.org/software/classpath/license.html. * * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 ********************************************************************************/ /// import { Title, Widget } from '@phosphor/widgets'; import { ContributionProvider, Disposable, DisposableCollection, Emitter, Event } from '@gedit/utils'; import { WidgetDecoration } from './widget-decoration'; export declare const TabBarDecorator: unique symbol; export interface TabBarDecorator { /** * The unique identifier of the tab bar decorator. */ readonly id: string; /** * Event that is fired when any of the available tab bar decorators has changes. */ readonly onDidChangeDecorations: Event; /** * Decorate title. * @param {Title} title the title * @returns decoration data. */ decorate(title: Title): WidgetDecoration.Data[]; } export declare class TabBarDecoratorService implements Disposable { protected readonly onDidChangeDecorationsEmitter: Emitter; readonly onDidChangeDecorations: Event; protected readonly toDispose: DisposableCollection; protected readonly contributions: ContributionProvider; protected fireDidChangeDecorations: import("lodash").DebouncedFunc<() => any>; dispose(): void; /** * Assign tabs the decorators provided by all the contributions. * @param {Title} title the title * @returns an array of its decoration data. */ getDecorations(title: Title): WidgetDecoration.Data[]; protected init(): void; } //# sourceMappingURL=tab-bar-decorator.d.ts.map