1/* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17import {Timestamp} from 'common/time'; 18 19export class ViewerEvents { 20 static HighlightedNodeChange = 'HighlightedNodeChange'; 21 static HighlightedIdChange = 'HighlightedIdChange'; 22 23 static HierarchyPinnedChange = 'HierarchyPinnedChange'; 24 static HierarchyUserOptionsChange = 'HierarchyUserOptionsChange'; 25 static HierarchyFilterChange = 'HierarchyFilterChange'; 26 static RectShowStateChange = 'RectShowStateChange'; 27 28 static PropertiesUserOptionsChange = 'PropertiesUserOptionsChange'; 29 static PropertiesFilterChange = 'PropertiesFilterChange'; 30 static HighlightedPropertyChange = 'HighlightedPropertyChange'; 31 32 static RectGroupIdChange = 'RectGroupIdChange'; 33 static RectsUserOptionsChange = 'RectsUserOptionsChange'; 34 35 static AdditionalPropertySelected = 'AdditionalPropertySelected'; 36 static RectsDblClick = 'RectsDblClick'; 37 static MiniRectsDblClick = 'MiniRectsDblClick'; 38 39 static TimestampClick = 'TimestampClick'; 40 41 static LogLevelsFilterChanged = 'LogLevelsFilterChanged'; 42 static TagsFilterChanged = 'TagsFilterChanged'; 43 static SourceFilesFilterChanged = 'SourceFilesFilterChanged'; 44 static SearchStringFilterChanged = 'SearchStringFilterChanged'; 45 46 static VSyncIdFilterChanged = 'VSyncIdFilterChanged'; 47 static PidFilterChanged = 'PidFilterChanged'; 48 static UidFilterChanged = 'UidFilterChanged'; 49 static TypeFilterChanged = 'TypeFilterChanged'; 50 static LayerIdFilterChanged = 'LayerIdFilterChanged'; 51 static WhatFilterChanged = 'WhatFilterChanged'; 52 53 static LogClicked = 'LogClicked'; 54 55 static LogChangedByKeyPress = 'LogChangedByKeyPress'; 56 static TransactionIdFilterChanged = 'TransactionIdFilterChanged'; 57 static TransitionSelected = 'TransitionSelected'; 58} 59 60export class RectDblClickDetail { 61 constructor(public clickedRectId: string) {} 62} 63 64export class TimestampClickDetail { 65 constructor(public timestamp?: Timestamp, public index?: number) {} 66} 67