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

Unified Diff: tracing/tracing/ui/base/camera_test.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/ui/base/camera.html ('k') | tracing/tracing/ui/base/chart_base_2d.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/camera_test.html
diff --git a/tracing/tracing/ui/base/camera_test.html b/tracing/tracing/ui/base/camera_test.html
index 1908781b10de3ff5b4efc87704c750d33603234e..b7c6d632a9990315ea8af53bce3e00d94d413fbe 100644
--- a/tracing/tracing/ui/base/camera_test.html
+++ b/tracing/tracing/ui/base/camera_test.html
@@ -4,9 +4,9 @@ Copyright (c) 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<link rel="import" href="/tracing/base/bbox2.html">
-<link rel="import" href="/tracing/base/quad.html">
-<link rel="import" href="/tracing/base/rect.html">
+<link rel="import" href="/tracing/base/math/bbox2.html">
+<link rel="import" href="/tracing/base/math/quad.html">
+<link rel="import" href="/tracing/base/math/rect.html">
<link rel="import" href="/tracing/ui/base/quad_stack_view.html">
<script>
'use strict';
@@ -14,14 +14,14 @@ found in the LICENSE file.
tr.b.unittest.testSuite(function() {
function createQuads() {
var quads = [
- tr.b.Quad.fromXYWH(-500, -500, 30, 30), // 4 corners
- tr.b.Quad.fromXYWH(-500, 470, 30, 30),
- tr.b.Quad.fromXYWH(470, -500, 30, 30),
- tr.b.Quad.fromXYWH(470, 470, 30, 30),
- tr.b.Quad.fromXYWH(-250, -250, 250, 250), // crosshairs
- tr.b.Quad.fromXYWH(0, -250, 250, 250), // crosshairs
- tr.b.Quad.fromXYWH(-250, 0, 250, 250), // crosshairs
- tr.b.Quad.fromXYWH(0, 0, 250, 250) // crosshairs
+ tr.b.math.Quad.fromXYWH(-500, -500, 30, 30), // 4 corners
+ tr.b.math.Quad.fromXYWH(-500, 470, 30, 30),
+ tr.b.math.Quad.fromXYWH(470, -500, 30, 30),
+ tr.b.math.Quad.fromXYWH(470, 470, 30, 30),
+ tr.b.math.Quad.fromXYWH(-250, -250, 250, 250), // crosshairs
+ tr.b.math.Quad.fromXYWH(0, -250, 250, 250), // crosshairs
+ tr.b.math.Quad.fromXYWH(-250, 0, 250, 250), // crosshairs
+ tr.b.math.Quad.fromXYWH(0, 0, 250, 250) // crosshairs
];
quads[0].stackingGroupId = 0;
quads[1].stackingGroupId = 0;
@@ -40,7 +40,7 @@ tr.b.unittest.testSuite(function() {
// simulate the constraints of the layer-tree-view
view.style.height = '400px';
view.style.width = '800px';
- view.deviceRect = tr.b.Rect.fromXYWH(-250, -250, 500, 500);
+ view.deviceRect = tr.b.math.Rect.fromXYWH(-250, -250, 500, 500);
view.quads = quads;
testFramework.addHTMLOutput(view);
« no previous file with comments | « tracing/tracing/ui/base/camera.html ('k') | tracing/tracing/ui/base/chart_base_2d.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698