1 <!DOCTYPE html> 2 <!-- 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. 4 Use of this source code is governed by a BSD-style license that can be 5 found in the LICENSE file. 6 --> 7 8 <link rel="import" href="/tracing/base/base.html"> 9 10 <script> 11 'use strict'; 12 13 tr.exportTo('tr.ui.annotations', function() { 14 /** 15 * A base class for all annotation views. 16 * @constructor 17 */ 18 function AnnotationView(viewport, annotation) { 19 } 20 21 AnnotationView.prototype = { 22 draw: function(ctx) { 23 throw new Error('Not implemented'); 24 } 25 }; 26 27 return { 28 AnnotationView: AnnotationView 29 }; 30 }); 31 </script> 32