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

Side by Side Diff: tracing/tracing/model/model.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) 2012 The Chromium Authors. All rights reserved. 3 Copyright (c) 2012 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/base.html"> 8 <link rel="import" href="/tracing/base/base.html">
9 <link rel="import" href="/tracing/base/event.html"> 9 <link rel="import" href="/tracing/base/event.html">
10 <link rel="import" href="/tracing/base/interval_tree.html"> 10 <link rel="import" href="/tracing/base/interval_tree.html">
11 <link rel="import" href="/tracing/base/quad.html"> 11 <link rel="import" href="/tracing/base/math/quad.html">
12 <link rel="import" href="/tracing/base/range.html"> 12 <link rel="import" href="/tracing/base/math/range.html">
13 <link rel="import" href="/tracing/base/task.html"> 13 <link rel="import" href="/tracing/base/task.html">
14 <link rel="import" href="/tracing/base/time_display_modes.html"> 14 <link rel="import" href="/tracing/base/time_display_modes.html">
15 <link rel="import" href="/tracing/base/unit.html"> 15 <link rel="import" href="/tracing/base/unit.html">
16 <link rel="import" href="/tracing/core/auditor.html"> 16 <link rel="import" href="/tracing/core/auditor.html">
17 <link rel="import" href="/tracing/core/filter.html"> 17 <link rel="import" href="/tracing/core/filter.html">
18 <link rel="import" href="/tracing/model/alert.html"> 18 <link rel="import" href="/tracing/model/alert.html">
19 <link rel="import" href="/tracing/model/clock_sync_manager.html"> 19 <link rel="import" href="/tracing/model/clock_sync_manager.html">
20 <link rel="import" href="/tracing/model/constants.html"> 20 <link rel="import" href="/tracing/model/constants.html">
21 <link rel="import" href="/tracing/model/device.html"> 21 <link rel="import" href="/tracing/model/device.html">
22 <link rel="import" href="/tracing/model/flow_event.html"> 22 <link rel="import" href="/tracing/model/flow_event.html">
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 pidRef: pidRef, 610 pidRef: pidRef,
611 scopedId: scopedId, 611 scopedId: scopedId,
612 ts: ts}); 612 ts: ts});
613 } 613 }
614 function iterObjectFieldsRecursively(object) { 614 function iterObjectFieldsRecursively(object) {
615 if (!(object instanceof Object)) 615 if (!(object instanceof Object))
616 return; 616 return;
617 617
618 if ((object instanceof tr.model.ObjectSnapshot) || 618 if ((object instanceof tr.model.ObjectSnapshot) ||
619 (object instanceof Float32Array) || 619 (object instanceof Float32Array) ||
620 (object instanceof tr.b.Quad)) 620 (object instanceof tr.b.math.Quad))
621 return; 621 return;
622 622
623 if (object instanceof Array) { 623 if (object instanceof Array) {
624 for (var i = 0; i < object.length; i++) { 624 for (var i = 0; i < object.length; i++) {
625 handleField(object, i, object[i]); 625 handleField(object, i, object[i]);
626 iterObjectFieldsRecursively(object[i]); 626 iterObjectFieldsRecursively(object[i]);
627 } 627 }
628 return; 628 return;
629 } 629 }
630 630
631 for (var key in object) { 631 for (var key in object) {
632 var value = object[key]; 632 var value = object[key];
633 handleField(object, key, value); 633 handleField(object, key, value);
634 iterObjectFieldsRecursively(value); 634 iterObjectFieldsRecursively(value);
635 } 635 }
636 } 636 }
637 637
638 iterObjectFieldsRecursively(item.args); 638 iterObjectFieldsRecursively(item.args);
639 iterObjectFieldsRecursively(item.contexts); 639 iterObjectFieldsRecursively(item.contexts);
640 } 640 }
641 }; 641 };
642 642
643 return { 643 return {
644 Model, 644 Model,
645 }; 645 };
646 }); 646 });
647 </script> 647 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/model/helpers/chrome_renderer_helper.html ('k') | tracing/tracing/model/object_collection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698