| <!DOCTYPE html> |
| <!-- |
| Copyright (c) 2015 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. |
| --> |
| <link rel="import" href="/base/ui/color_scheme.html"> |
| |
| <script> |
| 'use strict'; |
| |
| tv.exportTo('tv.c.trace_model', function() { |
| |
| /** |
| * EventInfo is an annotation added to Events in order to document |
| * what they represent, and override their title/colorId values. |
| * |
| * TODO(ccraik): eventually support more complex structure/paragraphs. |
| * |
| * @constructor |
| */ |
| function EventInfo(title, description, docUrl) { |
| this.title = title; |
| this.description = description; |
| this.docUrl = docUrl; |
| this.colorId = tv.b.ui.getColorIdForGeneralPurposeString(title); |
| } |
| |
| return { |
| EventInfo: EventInfo |
| }; |
| }); |
| </script> |