| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 this._tabbedPane = new WebInspector.TabbedPane(); | 57 this._tabbedPane = new WebInspector.TabbedPane(); |
| 58 this._rightSplitWidget.setSidebarWidget(this._tabbedPane); | 58 this._rightSplitWidget.setSidebarWidget(this._tabbedPane); |
| 59 | 59 |
| 60 this._layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHo
st); | 60 this._layerDetailsView = new WebInspector.LayerDetailsView(this._layerViewHo
st); |
| 61 this._tabbedPane.appendTab(WebInspector.LayersPanel.DetailsViewTabs.Details,
WebInspector.UIString("Details"), this._layerDetailsView); | 61 this._tabbedPane.appendTab(WebInspector.LayersPanel.DetailsViewTabs.Details,
WebInspector.UIString("Details"), this._layerDetailsView); |
| 62 | 62 |
| 63 this._paintProfilerView = new WebInspector.LayerPaintProfilerView(this._laye
rs3DView.showImageForLayer.bind(this._layers3DView)); | 63 this._paintProfilerView = new WebInspector.LayerPaintProfilerView(this._laye
rs3DView.showImageForLayer.bind(this._layers3DView)); |
| 64 this._tabbedPane.appendTab(WebInspector.LayersPanel.DetailsViewTabs.Profiler
, WebInspector.UIString("Profiler"), this._paintProfilerView); | 64 this._tabbedPane.appendTab(WebInspector.LayersPanel.DetailsViewTabs.Profiler
, WebInspector.UIString("Profiler"), this._paintProfilerView); |
| 65 this._updateThrottler = new WebInspector.Throttler(100); | 65 this._updateThrottler = new WebInspector.Throttler(100); |
| 66 } | 66 }; |
| 67 | 67 |
| 68 WebInspector.LayersPanel.DetailsViewTabs = { | 68 WebInspector.LayersPanel.DetailsViewTabs = { |
| 69 Details: "details", | 69 Details: "details", |
| 70 Profiler: "profiler" | 70 Profiler: "profiler" |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 WebInspector.LayersPanel.prototype = { | 73 WebInspector.LayersPanel.prototype = { |
| 74 focus: function() | 74 focus: function() |
| 75 { | 75 { |
| 76 this._layerTreeOutline.focus(); | 76 this._layerTreeOutline.focus(); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 /** | 161 /** |
| 162 * @param {!WebInspector.Event} event | 162 * @param {!WebInspector.Event} event |
| 163 */ | 163 */ |
| 164 _onScaleChanged: function(event) | 164 _onScaleChanged: function(event) |
| 165 { | 165 { |
| 166 this._paintProfilerView.setScale(/** @type {number} */(event.data)); | 166 this._paintProfilerView.setScale(/** @type {number} */(event.data)); |
| 167 }, | 167 }, |
| 168 | 168 |
| 169 __proto__: WebInspector.PanelWithSidebar.prototype | 169 __proto__: WebInspector.PanelWithSidebar.prototype |
| 170 } | 170 }; |
| OLD | NEW |