| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 } | 1181 } |
| 1182 | 1182 |
| 1183 /** | 1183 /** |
| 1184 * @return {!Object.<string, !WebInspector.TimelineCategory>} | 1184 * @return {!Object.<string, !WebInspector.TimelineCategory>} |
| 1185 */ | 1185 */ |
| 1186 WebInspector.TimelineUIUtils.categories = function() | 1186 WebInspector.TimelineUIUtils.categories = function() |
| 1187 { | 1187 { |
| 1188 if (WebInspector.TimelineUIUtils._categories) | 1188 if (WebInspector.TimelineUIUtils._categories) |
| 1189 return WebInspector.TimelineUIUtils._categories; | 1189 return WebInspector.TimelineUIUtils._categories; |
| 1190 WebInspector.TimelineUIUtils._categories = { | 1190 WebInspector.TimelineUIUtils._categories = { |
| 1191 loading: new WebInspector.TimelineCategory("loading", WebInspector.UIStr
ing("Loading"), 0, "hsl(214, 53%, 58%)", "hsl(214, 67%, 90%)", "hsl(214, 67%, 74
%)", "hsl(214, 67%, 66%)"), | 1191 loading: new WebInspector.TimelineCategory("loading", WebInspector.UIStr
ing("Loading"), true, "hsl(214, 53%, 58%)", "hsl(214, 67%, 90%)", "hsl(214, 67%,
74%)", "hsl(214, 67%, 66%)"), |
| 1192 scripting: new WebInspector.TimelineCategory("scripting", WebInspector.U
IString("Scripting"), 1, "hsl(43, 90%, 45%)", "hsl(43, 83%, 90%)", "hsl(43, 83%,
72%)", "hsl(43, 83%, 64%) "), | 1192 scripting: new WebInspector.TimelineCategory("scripting", WebInspector.U
IString("Scripting"), true, "hsl(43, 90%, 45%)", "hsl(43, 83%, 90%)", "hsl(43, 8
3%, 72%)", "hsl(43, 83%, 64%) "), |
| 1193 rendering: new WebInspector.TimelineCategory("rendering", WebInspector.U
IString("Rendering"), 2, "hsl(256, 50%, 60%)", "hsl(256, 67%, 90%)", "hsl(256, 6
7%, 76%)", "hsl(256, 67%, 70%)"), | 1193 rendering: new WebInspector.TimelineCategory("rendering", WebInspector.U
IString("Rendering"), true, "hsl(256, 50%, 60%)", "hsl(256, 67%, 90%)", "hsl(256
, 67%, 76%)", "hsl(256, 67%, 70%)"), |
| 1194 painting: new WebInspector.TimelineCategory("painting", WebInspector.UIS
tring("Painting"), 2, "hsl(109, 33%, 47%)", "hsl(109, 33%, 90%)", "hsl(109, 33%,
64%)", "hsl(109, 33%, 55%)"), | 1194 painting: new WebInspector.TimelineCategory("painting", WebInspector.UIS
tring("Painting"), true, "hsl(109, 33%, 47%)", "hsl(109, 33%, 90%)", "hsl(109, 3
3%, 64%)", "hsl(109, 33%, 55%)"), |
| 1195 gpu: new WebInspector.TimelineCategory("gpu", WebInspector.UIString("GPU
"), -1, "hsl(240, 24%, 45%)", "hsl(240, 24%, 90%)", "hsl(240, 24%, 73%)", "hsl(2
40, 24%, 66%)"), | 1195 gpu: new WebInspector.TimelineCategory("gpu", WebInspector.UIString("GPU
"), false, "hsl(240, 24%, 45%)", "hsl(240, 24%, 90%)", "hsl(240, 24%, 73%)", "hs
l(240, 24%, 66%)"), |
| 1196 other: new WebInspector.TimelineCategory("other", WebInspector.UIString(
"Other"), -1, "hsl(0, 0%, 73%)", "hsl(0, 0%, 90%)", "hsl(0, 0%, 87%)", "hsl(0, 0
%, 79%)"), | 1196 other: new WebInspector.TimelineCategory("other", WebInspector.UIString(
"Other"), false, "hsl(0, 0%, 73%)", "hsl(0, 0%, 90%)", "hsl(0, 0%, 87%)", "hsl(0
, 0%, 79%)"), |
| 1197 idle: new WebInspector.TimelineCategory("idle", WebInspector.UIString("I
dle"), -1, "hsl(0, 0%, 87%)", "hsl(0, 100%, 100%)", "hsl(0, 100%, 100%)", "hsl(0
, 100%, 100%)") | 1197 idle: new WebInspector.TimelineCategory("idle", WebInspector.UIString("I
dle"), false, "hsl(0, 0%, 87%)", "hsl(0, 100%, 100%)", "hsl(0, 100%, 100%)", "hs
l(0, 100%, 100%)") |
| 1198 }; | 1198 }; |
| 1199 return WebInspector.TimelineUIUtils._categories; | 1199 return WebInspector.TimelineUIUtils._categories; |
| 1200 }; | 1200 }; |
| 1201 | 1201 |
| 1202 /** | 1202 /** |
| 1203 * @param {!WebInspector.TimelineModel} model | 1203 * @param {!WebInspector.TimelineModel} model |
| 1204 * @param {!{name: string, tasks: !Array.<!WebInspector.TimelineModel.Record>, f
irstTaskIndex: number, lastTaskIndex: number}} info | 1204 * @param {!{name: string, tasks: !Array.<!WebInspector.TimelineModel.Record>, f
irstTaskIndex: number, lastTaskIndex: number}} info |
| 1205 * @return {!Element} | 1205 * @return {!Element} |
| 1206 */ | 1206 */ |
| 1207 WebInspector.TimelineUIUtils.generateMainThreadBarPopupContent = function(model,
info) | 1207 WebInspector.TimelineUIUtils.generateMainThreadBarPopupContent = function(model,
info) |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 WebInspector.TimelineUIUtils.quadHeight = function(quad) | 1380 WebInspector.TimelineUIUtils.quadHeight = function(quad) |
| 1381 { | 1381 { |
| 1382 return Math.round(Math.sqrt(Math.pow(quad[0] - quad[6], 2) + Math.pow(quad[1
] - quad[7], 2))); | 1382 return Math.round(Math.sqrt(Math.pow(quad[0] - quad[6], 2) + Math.pow(quad[1
] - quad[7], 2))); |
| 1383 } | 1383 } |
| 1384 | 1384 |
| 1385 /** | 1385 /** |
| 1386 * @constructor | 1386 * @constructor |
| 1387 * @extends {WebInspector.Object} | 1387 * @extends {WebInspector.Object} |
| 1388 * @param {string} name | 1388 * @param {string} name |
| 1389 * @param {string} title | 1389 * @param {string} title |
| 1390 * @param {number} overviewStripGroupIndex | 1390 * @param {boolean} visible |
| 1391 * @param {string} borderColor | 1391 * @param {string} borderColor |
| 1392 * @param {string} backgroundColor | 1392 * @param {string} backgroundColor |
| 1393 * @param {string} fillColorStop0 | 1393 * @param {string} fillColorStop0 |
| 1394 * @param {string} fillColorStop1 | 1394 * @param {string} fillColorStop1 |
| 1395 */ | 1395 */ |
| 1396 WebInspector.TimelineCategory = function(name, title, overviewStripGroupIndex, b
orderColor, backgroundColor, fillColorStop0, fillColorStop1) | 1396 WebInspector.TimelineCategory = function(name, title, visible, borderColor, back
groundColor, fillColorStop0, fillColorStop1) |
| 1397 { | 1397 { |
| 1398 this.name = name; | 1398 this.name = name; |
| 1399 this.title = title; | 1399 this.title = title; |
| 1400 this.overviewStripGroupIndex = overviewStripGroupIndex; | 1400 this.visible = visible; |
| 1401 this.borderColor = borderColor; | 1401 this.borderColor = borderColor; |
| 1402 this.backgroundColor = backgroundColor; | 1402 this.backgroundColor = backgroundColor; |
| 1403 this.fillColorStop0 = fillColorStop0; | 1403 this.fillColorStop0 = fillColorStop0; |
| 1404 this.fillColorStop1 = fillColorStop1; | 1404 this.fillColorStop1 = fillColorStop1; |
| 1405 this.hidden = false; | 1405 this.hidden = false; |
| 1406 } | 1406 } |
| 1407 | 1407 |
| 1408 WebInspector.TimelineCategory.Events = { | 1408 WebInspector.TimelineCategory.Events = { |
| 1409 VisibilityChanged: "VisibilityChanged" | 1409 VisibilityChanged: "VisibilityChanged" |
| 1410 }; | 1410 }; |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 return; | 1665 return; |
| 1666 | 1666 |
| 1667 var stackTraceElement = parentElement.createChild("div", "timeline-detai
ls-view-row-value timeline-details-view-row-stack-trace monospace"); | 1667 var stackTraceElement = parentElement.createChild("div", "timeline-detai
ls-view-row-value timeline-details-view-row-stack-trace monospace"); |
| 1668 | 1668 |
| 1669 var callFrameElem = WebInspector.DOMPresentationUtils.buildStackTracePre
viewContents(this._target, this._linkifier, stackTrace); | 1669 var callFrameElem = WebInspector.DOMPresentationUtils.buildStackTracePre
viewContents(this._target, this._linkifier, stackTrace); |
| 1670 | 1670 |
| 1671 stackTraceElement.appendChild(callFrameElem); | 1671 stackTraceElement.appendChild(callFrameElem); |
| 1672 } | 1672 } |
| 1673 | 1673 |
| 1674 } | 1674 } |
| OLD | NEW |