| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 * @constructor | 245 * @constructor |
| 246 * @extends {WebInspector.VBox} | 246 * @extends {WebInspector.VBox} |
| 247 */ | 247 */ |
| 248 WebInspector.PaintProfilerCommandLogView = function() | 248 WebInspector.PaintProfilerCommandLogView = function() |
| 249 { | 249 { |
| 250 WebInspector.VBox.call(this); | 250 WebInspector.VBox.call(this); |
| 251 this.setMinimumSize(100, 25); | 251 this.setMinimumSize(100, 25); |
| 252 this.element.classList.add("outline-disclosure", "profiler-log-view", "secti
on"); | 252 this.element.classList.add("outline-disclosure", "profiler-log-view", "secti
on"); |
| 253 var sidebarTreeElement = this.element.createChild("ol", "sidebar-tree proper
ties monospace"); | 253 var sidebarTreeElement = this.element.createChild("ol", "sidebar-tree proper
ties monospace"); |
| 254 sidebarTreeElement.addEventListener("mousemove", this._onMouseMove.bind(this
), false); | 254 sidebarTreeElement.addEventListener("mousemove", this._onMouseMove.bind(this
), false); |
| 255 sidebarTreeElement.addEventListener("mouseout", this._onMouseMove.bind(this)
, false); | 255 sidebarTreeElement.addEventListener("mouseleave", this._onMouseMove.bind(thi
s), false); |
| 256 sidebarTreeElement.addEventListener("contextmenu", this._onContextMenu.bind(
this), true); | 256 sidebarTreeElement.addEventListener("contextmenu", this._onContextMenu.bind(
this), true); |
| 257 this.sidebarTree = new TreeOutline(sidebarTreeElement); | 257 this.sidebarTree = new TreeOutline(sidebarTreeElement); |
| 258 | 258 |
| 259 this._reset(); | 259 this._reset(); |
| 260 } | 260 } |
| 261 | 261 |
| 262 WebInspector.PaintProfilerCommandLogView.prototype = { | 262 WebInspector.PaintProfilerCommandLogView.prototype = { |
| 263 /** | 263 /** |
| 264 * @param {?WebInspector.Target} target | 264 * @param {?WebInspector.Target} target |
| 265 * @param {!Array.<!WebInspector.PaintProfilerLogItem>=} log | 265 * @param {!Array.<!WebInspector.PaintProfilerLogItem>=} log |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 var method = logItem.method.toTitleCase(); | 581 var method = logItem.method.toTitleCase(); |
| 582 | 582 |
| 583 var logItemCategories = WebInspector.PaintProfilerView._initLogItemCategorie
s(); | 583 var logItemCategories = WebInspector.PaintProfilerView._initLogItemCategorie
s(); |
| 584 var result = logItemCategories[method]; | 584 var result = logItemCategories[method]; |
| 585 if (!result) { | 585 if (!result) { |
| 586 result = WebInspector.PaintProfilerView.categories()["misc"]; | 586 result = WebInspector.PaintProfilerView.categories()["misc"]; |
| 587 logItemCategories[method] = result; | 587 logItemCategories[method] = result; |
| 588 } | 588 } |
| 589 return result; | 589 return result; |
| 590 } | 590 } |
| OLD | NEW |