Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Side by Side Diff: tracing/tracing/model/helpers/chrome_model_helper.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 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/base/guid.html"> 8 <link rel="import" href="/tracing/base/guid.html">
9 <link rel="import" href="/tracing/base/iteration_helpers.html"> 9 <link rel="import" href="/tracing/base/iteration_helpers.html">
10 <link rel="import" href="/tracing/model/helpers/chrome_browser_helper.html"> 10 <link rel="import" href="/tracing/model/helpers/chrome_browser_helper.html">
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 }, 143 },
144 144
145 /** 145 /**
146 * Returns the minimal bounds that includes all Chrome-related slices, or 146 * Returns the minimal bounds that includes all Chrome-related slices, or
147 * undefined if no such minimal bounds could be established. This relies on 147 * undefined if no such minimal bounds could be established. This relies on
148 * the assumption that all Chrome-relevant traces are bounded by the browser 148 * the assumption that all Chrome-relevant traces are bounded by the browser
149 * process. 149 * process.
150 */ 150 */
151 get chromeBounds() { 151 get chromeBounds() {
152 if (!this.chromeBounds_) { 152 if (!this.chromeBounds_) {
153 this.chromeBounds_ = new tr.b.Range(); 153 this.chromeBounds_ = new tr.b.math.Range();
154 for (var browserHelper of 154 for (var browserHelper of
155 tr.b.dictionaryValues(this.browserHelpers)) { 155 tr.b.dictionaryValues(this.browserHelpers)) {
156 this.chromeBounds_.addRange(browserHelper.process.bounds); 156 this.chromeBounds_.addRange(browserHelper.process.bounds);
157 } 157 }
158 } 158 }
159 159
160 if (this.chromeBounds_.isEmpty) { 160 if (this.chromeBounds_.isEmpty) {
161 return undefined; 161 return undefined;
162 } 162 }
163 163
164 return this.chromeBounds_; 164 return this.chromeBounds_;
165 } 165 }
166 }; 166 };
167 167
168 return { 168 return {
169 ChromeModelHelper, 169 ChromeModelHelper,
170 }; 170 };
171 }); 171 });
172 </script> 172 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698