OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |