Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / trace_viewer / tracing / trace_model / flow_event.html
1 <!DOCTYPE html>
2 <!--
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.
6 -->
7
8 <link rel="import" href="/tracing/trace_model/timed_event.html">
9
10 <script>
11 'use strict';
12
13 /**
14  * @fileoverview Provides the Flow class.
15  */
16 tv.exportTo('tracing.trace_model', function() {
17   /**
18    * A Flow represents an interval of time plus parameters associated
19    * with that interval.
20    *
21    * @constructor
22    */
23   function FlowEvent(category, id, title, colorId, start, args) {
24     tracing.trace_model.TimedEvent.call(this, start);
25
26     this.category = category || '';
27     this.title = title;
28     this.colorId = colorId;
29     this.start = start;
30     this.args = args;
31
32     this.id = id;
33
34     this.nextFlowEvent_ = undefined;
35     this.previousFlowEvent_ = undefined;
36   }
37
38   FlowEvent.prototype = {
39     __proto__: tracing.trace_model.TimedEvent.prototype,
40
41     set nextFlowEvent(nextFlowEvent) {
42       this.nextFlowEvent_ = nextFlowEvent;
43     },
44
45     set previousFlowEvent(prev) {
46       this.previousFlowEvent_ = prev;
47     },
48
49     get nextFlowEvent() {
50       return this.nextFlowEvent_;
51     },
52
53     get previousFlowEvent() {
54       return this.previousFlowEvent_;
55     }
56   };
57
58   return {
59     FlowEvent: FlowEvent
60   };
61 });
62 </script>
63