OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google 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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 */ | 1245 */ |
1246 reveal: function(uiLocation) | 1246 reveal: function(uiLocation) |
1247 { | 1247 { |
1248 if (uiLocation instanceof WebInspector.UILocation) | 1248 if (uiLocation instanceof WebInspector.UILocation) |
1249 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorVie
w.panel("sources")).showUILocation(uiLocation); | 1249 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorVie
w.panel("sources")).showUILocation(uiLocation); |
1250 } | 1250 } |
1251 } | 1251 } |
1252 | 1252 |
1253 /** | 1253 /** |
1254 * @constructor | 1254 * @constructor |
| 1255 * @implements {WebInspector.Revealer} |
| 1256 */ |
| 1257 WebInspector.SourcesPanel.UISourceCodeRevealer = function() |
| 1258 { |
| 1259 } |
| 1260 |
| 1261 WebInspector.SourcesPanel.UISourceCodeRevealer.prototype = { |
| 1262 /** |
| 1263 * @param {!Object} uiSourceCode |
| 1264 */ |
| 1265 reveal: function(uiSourceCode) |
| 1266 { |
| 1267 if (uiSourceCode instanceof WebInspector.UISourceCode) |
| 1268 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorVie
w.panel("sources")).showUISourceCode(uiSourceCode); |
| 1269 } |
| 1270 } |
| 1271 |
| 1272 /** |
| 1273 * @constructor |
1255 * @implements {WebInspector.ActionDelegate} | 1274 * @implements {WebInspector.ActionDelegate} |
1256 */ | 1275 */ |
1257 WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate = function() {} | 1276 WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate = function() {} |
1258 | 1277 |
1259 WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate.prototype = { | 1278 WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate.prototype = { |
1260 /** | 1279 /** |
1261 * @return {boolean} | 1280 * @return {boolean} |
1262 */ | 1281 */ |
1263 handleAction: function() | 1282 handleAction: function() |
1264 { | 1283 { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 var disabled = forbidden || (status === "disabled"); | 1362 var disabled = forbidden || (status === "disabled"); |
1344 | 1363 |
1345 this._disableJSInfo.classList.toggle("hidden", !forbidden); | 1364 this._disableJSInfo.classList.toggle("hidden", !forbidden); |
1346 this._disableJSCheckbox.checked = disabled; | 1365 this._disableJSCheckbox.checked = disabled; |
1347 this._disableJSCheckbox.disabled = forbidden; | 1366 this._disableJSCheckbox.disabled = forbidden; |
1348 } | 1367 } |
1349 }, | 1368 }, |
1350 | 1369 |
1351 __proto__: WebInspector.UISettingDelegate.prototype | 1370 __proto__: WebInspector.UISettingDelegate.prototype |
1352 } | 1371 } |
OLD | NEW |