1// Copyright 2018 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5export interface ClearableHandler { 6 brokeredClear(): void; 7} 8 9export interface SelectionHandler { 10 clear(): void; 11 select(nodeIds: any, selected: any): void; 12 brokeredSourcePositionSelect(sourcePositions: any, selected: any): void; 13} 14 15export interface NodeSelectionHandler { 16 clear(): void; 17 select(nodeIds: any, selected: any): void; 18 brokeredNodeSelect(nodeIds: any, selected: any): void; 19} 20 21export interface BlockSelectionHandler { 22 clear(): void; 23 select(nodeIds: any, selected: any): void; 24 brokeredBlockSelect(blockIds: any, selected: any): void; 25} 26 27export interface InstructionSelectionHandler { 28 clear(): void; 29 select(instructionIds: any, selected: any): void; 30 brokeredInstructionSelect(instructionIds: any, selected: any): void; 31} 32 33export interface RegisterAllocationSelectionHandler { 34 clear(): void; 35 // These are called instructionIds since the class of the divs is "instruction-id" 36 select(instructionIds: any, selected: any): void; 37 brokeredRegisterAllocationSelect(instructionIds: any, selected: any): void; 38} 39