678982638eb76e583b4a8c0e52da0bd880299182
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / src / tracing / trace_model / flow_event.js
1 // Copyright (c) 2013 The Chromium 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
5 'use strict';
6
7 tvcm.require('tracing.trace_model.timed_event');
8
9 /**
10  * @fileoverview Provides the Flow class.
11  */
12 tvcm.exportTo('tracing.trace_model', function() {
13   /**
14    * A Flow represents an interval of time plus parameters associated
15    * with that interval.
16    *
17    * @constructor
18    */
19   function FlowEvent(category, id, title, colorId, start, args) {
20     tracing.trace_model.TimedEvent.call(this, start);
21
22     this.category = category || '';
23     this.title = title;
24     this.colorId = colorId;
25     this.start = start;
26     this.args = args;
27
28     this.id = id;
29   }
30
31   FlowEvent.prototype = {
32     __proto__: tracing.trace_model.TimedEvent.prototype
33   };
34
35   return {
36     FlowEvent: FlowEvent
37   };
38 });