chrome-devtools-frontend
Version:
Chrome DevTools UI
36 lines (23 loc) • 990 B
text/typescript
// Copyright 2014 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 type * as Common from '../../core/common/common.js';
import type * as Workspace from '../../models/workspace/workspace.js';
export interface SearchResult {
label(): string;
description(): string;
matchesCount(): number;
matchLabel(index: number): string;
matchLineContent(index: number): string;
matchRevealable(index: number): Object;
matchColumn(index: number): number|undefined;
matchLength(index: number): number|undefined;
}
export interface SearchScope {
performSearch(
searchConfig: Workspace.SearchConfig.SearchConfig, progress: Common.Progress.Progress,
searchResultCallback: (arg0: SearchResult) => void,
searchFinishedCallback: (arg0: boolean) => void): void|Promise<void>;
performIndexing(progress: Common.Progress.Progress): void;
stopSearch(): void;
}