| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2016 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <link rel="import" href="/tracing/model/event_container.html"> | 8 <link rel="import" href="/tracing/model/event_container.html"> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 get expectations() { | 37 get expectations() { |
| 38 return this.expectations_; | 38 return this.expectations_; |
| 39 }, | 39 }, |
| 40 | 40 |
| 41 shiftTimestampsForward: function(amount) { | 41 shiftTimestampsForward: function(amount) { |
| 42 }, | 42 }, |
| 43 | 43 |
| 44 addCategoriesToDict: function(categoriesDict) { | 44 addCategoriesToDict: function(categoriesDict) { |
| 45 }, | 45 }, |
| 46 | 46 |
| 47 findTopmostSlicesInThisContainer: function(eventPredicate, callback, | 47 childEvents: function*() { |
| 48 opt_this) { | 48 yield * this.expectations; |
| 49 }, | |
| 50 | |
| 51 childEvents: function*(eventTypePredicate, opt_this) { | |
| 52 if (eventTypePredicate.call(opt_this, tr.model.um.UserExpectation)) | |
| 53 yield * this.expectations; | |
| 54 }, | 49 }, |
| 55 | 50 |
| 56 childEventContainers: function*() { | 51 childEventContainers: function*() { |
| 57 }, | 52 }, |
| 58 | 53 |
| 59 updateBounds: function() { | 54 updateBounds: function() { |
| 60 this.bounds.reset(); | 55 this.bounds.reset(); |
| 61 this.expectations.forEach(function(expectation) { | 56 this.expectations.forEach(function(expectation) { |
| 62 expectation.addBoundsToRange(this.bounds); | 57 expectation.addBoundsToRange(this.bounds); |
| 63 }, this); | 58 }, this); |
| 64 } | 59 } |
| 65 }; | 60 }; |
| 66 | 61 |
| 67 return { | 62 return { |
| 68 UserModel: UserModel | 63 UserModel: UserModel |
| 69 }; | 64 }; |
| 70 }); | 65 }); |
| 71 </script> | 66 </script> |
| 72 | 67 |
| OLD | NEW |