OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 this._traceLogPlayer = /** @type {!WebInspector.CanvasTraceLogPlayerProxy} *
/ (profile.traceLogPlayer()); | 43 this._traceLogPlayer = /** @type {!WebInspector.CanvasTraceLogPlayerProxy} *
/ (profile.traceLogPlayer()); |
44 this._linkifier = new WebInspector.Linkifier(); | 44 this._linkifier = new WebInspector.Linkifier(); |
45 | 45 |
46 this._replayInfoSplitView = new WebInspector.SplitView(true, true, "canvasPr
ofileViewReplaySplitViewState", 0.34); | 46 this._replayInfoSplitView = new WebInspector.SplitView(true, true, "canvasPr
ofileViewReplaySplitViewState", 0.34); |
47 this._replayInfoSplitView.show(this.element); | 47 this._replayInfoSplitView.show(this.element); |
48 | 48 |
49 this._imageSplitView = new WebInspector.SplitView(false, true, "canvasProfil
eViewSplitViewState", 300); | 49 this._imageSplitView = new WebInspector.SplitView(false, true, "canvasProfil
eViewSplitViewState", 300); |
50 this._imageSplitView.show(this._replayInfoSplitView.mainElement()); | 50 this._imageSplitView.show(this._replayInfoSplitView.mainElement()); |
51 | 51 |
52 var replayImageContainerView = new WebInspector.VBox(); | 52 var replayImageContainerView = new WebInspector.VBox(); |
53 replayImageContainerView.setMinimumSize(50, 28); | 53 replayImageContainerView.setConstraints(50, 28); |
54 replayImageContainerView.show(this._imageSplitView.mainElement()); | 54 replayImageContainerView.show(this._imageSplitView.mainElement()); |
55 | 55 |
56 var replayImageContainer = replayImageContainerView.element; | 56 var replayImageContainer = replayImageContainerView.element; |
57 replayImageContainer.id = "canvas-replay-image-container"; | 57 replayImageContainer.id = "canvas-replay-image-container"; |
58 this._replayImageElement = replayImageContainer.createChild("img", "canvas-r
eplay-image"); | 58 this._replayImageElement = replayImageContainer.createChild("img", "canvas-r
eplay-image"); |
59 this._debugInfoElement = replayImageContainer.createChild("div", "canvas-deb
ug-info hidden"); | 59 this._debugInfoElement = replayImageContainer.createChild("div", "canvas-deb
ug-info hidden"); |
60 this._spinnerIcon = replayImageContainer.createChild("div", "spinner-icon sm
all hidden"); | 60 this._spinnerIcon = replayImageContainer.createChild("div", "spinner-icon sm
all hidden"); |
61 | 61 |
62 var replayLogContainerView = new WebInspector.VBox(); | 62 var replayLogContainerView = new WebInspector.VBox(); |
63 replayLogContainerView.setMinimumSize(22, 22); | 63 replayLogContainerView.setConstraints(22, 22); |
64 replayLogContainerView.show(this._imageSplitView.sidebarElement()); | 64 replayLogContainerView.show(this._imageSplitView.sidebarElement()); |
65 | 65 |
66 var replayLogContainer = replayLogContainerView.element; | 66 var replayLogContainer = replayLogContainerView.element; |
67 var controlsContainer = replayLogContainer.createChild("div", "status-bar"); | 67 var controlsContainer = replayLogContainer.createChild("div", "status-bar"); |
68 var logGridContainer = replayLogContainer.createChild("div", "canvas-replay-
log"); | 68 var logGridContainer = replayLogContainer.createChild("div", "canvas-replay-
log"); |
69 | 69 |
70 this._createControlButton(controlsContainer, "canvas-replay-first-step", Web
Inspector.UIString("First call."), this._onReplayFirstStepClick.bind(this)); | 70 this._createControlButton(controlsContainer, "canvas-replay-first-step", Web
Inspector.UIString("First call."), this._onReplayFirstStepClick.bind(this)); |
71 this._createControlButton(controlsContainer, "canvas-replay-prev-step", WebI
nspector.UIString("Previous call."), this._onReplayStepClick.bind(this, false)); | 71 this._createControlButton(controlsContainer, "canvas-replay-prev-step", WebI
nspector.UIString("Previous call."), this._onReplayStepClick.bind(this, false)); |
72 this._createControlButton(controlsContainer, "canvas-replay-next-step", WebI
nspector.UIString("Next call."), this._onReplayStepClick.bind(this, true)); | 72 this._createControlButton(controlsContainer, "canvas-replay-next-step", WebI
nspector.UIString("Next call."), this._onReplayStepClick.bind(this, true)); |
73 this._createControlButton(controlsContainer, "canvas-replay-prev-draw", WebI
nspector.UIString("Previous drawing call."), this._onReplayDrawingCallClick.bind
(this, false)); | 73 this._createControlButton(controlsContainer, "canvas-replay-prev-draw", WebI
nspector.UIString("Previous drawing call."), this._onReplayDrawingCallClick.bind
(this, false)); |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1254 }, | 1254 }, |
1255 | 1255 |
1256 clearResourceStates: function() | 1256 clearResourceStates: function() |
1257 { | 1257 { |
1258 this._currentResourceStates = {}; | 1258 this._currentResourceStates = {}; |
1259 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve
nts.CanvasReplayStateChanged); | 1259 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve
nts.CanvasReplayStateChanged); |
1260 }, | 1260 }, |
1261 | 1261 |
1262 __proto__: WebInspector.Object.prototype | 1262 __proto__: WebInspector.Object.prototype |
1263 } | 1263 } |
OLD | NEW |