3 Copyright (c) 2013 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.
8 <link rel="import" href="/tracing/trace_model/timed_event.html">
14 * @fileoverview Provides the Flow class.
16 tv.exportTo('tracing.trace_model', function() {
18 * A Flow represents an interval of time plus parameters associated
23 function FlowEvent(category, id, title, colorId, start, args) {
24 tracing.trace_model.TimedEvent.call(this, start);
26 this.category = category || '';
28 this.colorId = colorId;
34 this.nextFlowEvent_ = undefined;
35 this.previousFlowEvent_ = undefined;
38 FlowEvent.prototype = {
39 __proto__: tracing.trace_model.TimedEvent.prototype,
41 set nextFlowEvent(nextFlowEvent) {
42 this.nextFlowEvent_ = nextFlowEvent;
45 set previousFlowEvent(prev) {
46 this.previousFlowEvent_ = prev;
50 return this.nextFlowEvent_;
53 get previousFlowEvent() {
54 return this.previousFlowEvent_;