| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 WebInspector.targetManager.observeTargets(this); | 115 WebInspector.targetManager.observeTargets(this); |
| 116 } | 116 } |
| 117 | 117 |
| 118 WebInspector.SourcesPanel._lastModificationTimeout = 200; | 118 WebInspector.SourcesPanel._lastModificationTimeout = 200; |
| 119 | 119 |
| 120 WebInspector.SourcesPanel.minToolbarWidth = 215; | 120 WebInspector.SourcesPanel.minToolbarWidth = 215; |
| 121 | 121 |
| 122 WebInspector.SourcesPanel.prototype = { | 122 WebInspector.SourcesPanel.prototype = { |
| 123 /** | 123 /** |
| 124 * @override | 124 * @override |
| 125 */ | |
| 126 focus: function() | |
| 127 { | |
| 128 this._sourcesView.focus(); | |
| 129 }, | |
| 130 | |
| 131 /** | |
| 132 * @override | |
| 133 * @param {!WebInspector.Target} target | 125 * @param {!WebInspector.Target} target |
| 134 */ | 126 */ |
| 135 targetAdded: function(target) | 127 targetAdded: function(target) |
| 136 { | 128 { |
| 137 var hasThreads = WebInspector.targetManager.targets(WebInspector.Target.
Capability.JS).length > 1; | 129 var hasThreads = WebInspector.targetManager.targets(WebInspector.Target.
Capability.JS).length > 1; |
| 138 if (hasThreads && !this._threadsSidebarPane) { | 130 if (hasThreads && !this._threadsSidebarPane) { |
| 139 this._threadsSidebarPane = /** @type {!WebInspector.View} */ (WebIns
pector.viewManager.view("sources.threads")); | 131 this._threadsSidebarPane = /** @type {!WebInspector.View} */ (WebIns
pector.viewManager.view("sources.threads")); |
| 140 if (this._sidebarPaneStack) { | 132 if (this._sidebarPaneStack) { |
| 141 this._sidebarPaneStack.showView(this._threadsSidebarPane, this._
splitWidget.isVertical() ? this._watchSidebarPane : this._callstackPane); | 133 this._sidebarPaneStack.showView(this._threadsSidebarPane, this._
splitWidget.isVertical() ? this._watchSidebarPane : this._callstackPane); |
| 142 } | 134 } |
| (...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1375 __proto__: WebInspector.VBox.prototype | 1367 __proto__: WebInspector.VBox.prototype |
| 1376 } | 1368 } |
| 1377 | 1369 |
| 1378 /** | 1370 /** |
| 1379 * @return {boolean} | 1371 * @return {boolean} |
| 1380 */ | 1372 */ |
| 1381 WebInspector.SourcesPanel.WrapperView.isShowing = function() | 1373 WebInspector.SourcesPanel.WrapperView.isShowing = function() |
| 1382 { | 1374 { |
| 1383 return !!WebInspector.SourcesPanel.WrapperView._instance && WebInspector.Sou
rcesPanel.WrapperView._instance.isShowing(); | 1375 return !!WebInspector.SourcesPanel.WrapperView._instance && WebInspector.Sou
rcesPanel.WrapperView._instance.isShowing(); |
| 1384 } | 1376 } |
| OLD | NEW |