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

Side by Side Diff: tracing/tracing/ui/extras/chrome/cc/picture_debugger.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) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 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/base64.html"> 8 <link rel="import" href="/tracing/base/base64.html">
9 <link rel="import" href="/tracing/extras/chrome/cc/picture.html"> 9 <link rel="import" href="/tracing/extras/chrome/cc/picture.html">
10 <link rel="import" href="/tracing/ui/analysis/generic_object_view.html"> 10 <link rel="import" href="/tracing/ui/analysis/generic_object_view.html">
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 onRasterComplete_: function(pictureAsImageData) { 378 onRasterComplete_: function(pictureAsImageData) {
379 this.pictureAsImageData_ = pictureAsImageData; 379 this.pictureAsImageData_ = pictureAsImageData;
380 this.scheduleUpdateContents_(); 380 this.scheduleUpdateContents_();
381 }, 381 },
382 382
383 moveSelectedOpBy: function(increment) { 383 moveSelectedOpBy: function(increment) {
384 if (this.selectedOpIndex === undefined) { 384 if (this.selectedOpIndex === undefined) {
385 this.selectedOpIndex = 0; 385 this.selectedOpIndex = 0;
386 return; 386 return;
387 } 387 }
388 this.selectedOpIndex = tr.b.clamp( 388 this.selectedOpIndex = tr.b.math.clamp(
389 this.selectedOpIndex + increment, 389 this.selectedOpIndex + increment,
390 0, this.numOps); 390 0, this.numOps);
391 }, 391 },
392 392
393 get numOps() { 393 get numOps() {
394 return this.drawOpsView_.numOps; 394 return this.drawOpsView_.numOps;
395 }, 395 },
396 396
397 get selectedOpIndex() { 397 get selectedOpIndex() {
398 return this.drawOpsView_.selectedOpIndex; 398 return this.drawOpsView_.selectedOpIndex;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 y: e.clientY - this.rasterArea_.offsetTop 486 y: e.clientY - this.rasterArea_.offsetTop
487 }; 487 };
488 } 488 }
489 }; 489 };
490 490
491 return { 491 return {
492 PictureDebugger, 492 PictureDebugger,
493 }; 493 };
494 }); 494 });
495 </script> 495 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698