1/* 2 * Copyright (C) 2024 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 */ 16import {Component, Input, ViewChild} from '@angular/core'; 17import {TraceType} from 'trace/trace_type'; 18import {LogComponent} from 'viewers/components/log_component'; 19import {viewerCardStyle} from 'viewers/components/styles/viewer_card.styles'; 20import {UiData} from './ui_data'; 21 22@Component({ 23 selector: 'viewer-jank-cujs', 24 template: ` 25 <div class="card-grid"> 26 <log-view 27 class="log-view" 28 [selectedIndex]="inputData?.selectedIndex" 29 [scrollToIndex]="inputData?.scrollToIndex" 30 [currentIndex]="inputData?.currentIndex" 31 [entries]="inputData?.entries" 32 [headers]="inputData?.headers" 33 [traceType]="${TraceType.CUJS}" 34 [showTraceEntryTimes]="false" 35 [showCurrentTimeButton]="false"> 36 </log-view> 37 </div> 38 `, 39 styles: [viewerCardStyle], 40}) 41export class ViewerJankCujsComponent { 42 @Input() inputData: UiData | undefined; 43 44 @ViewChild(LogComponent) 45 logComponent?: LogComponent; 46} 47