Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(828)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 this._tabbedPane.addEventListener(WebInspector.TabbedPane.Events.TabClosed, this._onTabClosed, this); 65 this._tabbedPane.addEventListener(WebInspector.TabbedPane.Events.TabClosed, this._onTabClosed, this);
66 this._updateThrottler = new WebInspector.Throttler(100); 66 this._updateThrottler = new WebInspector.Throttler(100);
67 }; 67 };
68 68
69 WebInspector.LayersPanel.DetailsViewTabs = { 69 WebInspector.LayersPanel.DetailsViewTabs = {
70 Details: "details", 70 Details: "details",
71 Profiler: "profiler" 71 Profiler: "profiler"
72 }; 72 };
73 73
74 WebInspector.LayersPanel.prototype = { 74 WebInspector.LayersPanel.prototype = {
75 /**
76 * @override
77 */
75 focus: function() 78 focus: function()
76 { 79 {
77 this._layerTreeOutline.focus(); 80 this._layerTreeOutline.focus();
78 }, 81 },
79 82
83 /**
84 * @override
85 */
80 wasShown: function() 86 wasShown: function()
81 { 87 {
82 WebInspector.Panel.prototype.wasShown.call(this); 88 WebInspector.PanelWithSidebar.prototype.wasShown.call(this);
83 if (this._model) 89 if (this._model)
84 this._model.enable(); 90 this._model.enable();
85 this._layerTreeOutline.focus(); 91 this._layerTreeOutline.focus();
86 }, 92 },
87 93
94 /**
95 * @override
96 */
88 willHide: function() 97 willHide: function()
89 { 98 {
90 if (this._model) 99 if (this._model)
91 this._model.disable(); 100 this._model.disable();
92 WebInspector.Panel.prototype.willHide.call(this); 101 WebInspector.PanelWithSidebar.prototype.willHide.call(this);
93 }, 102 },
94 103
95 /** 104 /**
96 * @override 105 * @override
97 * @param {!WebInspector.Target} target 106 * @param {!WebInspector.Target} target
98 */ 107 */
99 targetAdded: function(target) 108 targetAdded: function(target)
100 { 109 {
101 if (this._model) 110 if (this._model)
102 return; 111 return;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 /** 199 /**
191 * @param {!WebInspector.Event} event 200 * @param {!WebInspector.Event} event
192 */ 201 */
193 _onScaleChanged: function(event) 202 _onScaleChanged: function(event)
194 { 203 {
195 this._paintProfilerView.setScale(/** @type {number} */(event.data)); 204 this._paintProfilerView.setScale(/** @type {number} */(event.data));
196 }, 205 },
197 206
198 __proto__: WebInspector.PanelWithSidebar.prototype 207 __proto__: WebInspector.PanelWithSidebar.prototype
199 }; 208 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698