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

Unified Diff: tracing/tracing/base/math/range_utils.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/base/math/range_test.html ('k') | tracing/tracing/base/math/range_utils_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/math/range_utils.html
diff --git a/tracing/tracing/base/range_utils.html b/tracing/tracing/base/math/range_utils.html
similarity index 92%
rename from tracing/tracing/base/range_utils.html
rename to tracing/tracing/base/math/range_utils.html
index 06127c057530fa972f17e01957c3fb1cd74175bd..dee618299f7d5a40ed446c63ccd04ac5555f6043 100644
--- a/tracing/tracing/base/range_utils.html
+++ b/tracing/tracing/base/math/range_utils.html
@@ -14,10 +14,10 @@ found in the LICENSE file.
/**
* @fileoverview Provides event merging functionality for grouping/analysis.
*/
-tr.exportTo('tr.b', function() {
+tr.exportTo('tr.b.math', function() {
function convertEventsToRanges(events) {
return events.map(function(event) {
- return tr.b.Range.fromExplicitRange(event.start, event.end);
+ return tr.b.math.Range.fromExplicitRange(event.start, event.end);
});
}
@@ -97,7 +97,7 @@ tr.exportTo('tr.b', function() {
});
if (opt_totalRange &&
(opt_totalRange.min < inRanges[0].min)) {
- emptyRanges.push(tr.b.Range.fromExplicitRange(
+ emptyRanges.push(tr.b.math.Range.fromExplicitRange(
opt_totalRange.min, inRanges[0].min));
}
@@ -110,7 +110,7 @@ tr.exportTo('tr.b', function() {
if (other.min > range.max) {
// |inRanges| is sorted, so |other| is the first range after |range|,
// and there is an empty range between them.
- emptyRanges.push(tr.b.Range.fromExplicitRange(
+ emptyRanges.push(tr.b.math.Range.fromExplicitRange(
range.max, other.min));
return;
}
@@ -124,7 +124,7 @@ tr.exportTo('tr.b', function() {
}
}
if (opt_totalRange && (range.max < opt_totalRange.max)) {
- emptyRanges.push(tr.b.Range.fromExplicitRange(
+ emptyRanges.push(tr.b.math.Range.fromExplicitRange(
range.max, opt_totalRange.max));
}
});
« no previous file with comments | « tracing/tracing/base/math/range_test.html ('k') | tracing/tracing/base/math/range_utils_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698