| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @implements {WebInspector.TabbedEditorContainerDelegate} | 7 * @implements {WebInspector.TabbedEditorContainerDelegate} |
| 8 * @implements {WebInspector.Searchable} | 8 * @implements {WebInspector.Searchable} |
| 9 * @implements {WebInspector.Replaceable} | 9 * @implements {WebInspector.Replaceable} |
| 10 * @extends {WebInspector.VBox} | 10 * @extends {WebInspector.VBox} |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 { | 263 { |
| 264 var project = event.data; | 264 var project = event.data; |
| 265 var uiSourceCodes = project.uiSourceCodes(); | 265 var uiSourceCodes = project.uiSourceCodes(); |
| 266 this._removeUISourceCodes(uiSourceCodes); | 266 this._removeUISourceCodes(uiSourceCodes); |
| 267 }, | 267 }, |
| 268 | 268 |
| 269 _updateScriptViewToolbarItems: function() | 269 _updateScriptViewToolbarItems: function() |
| 270 { | 270 { |
| 271 this._scriptViewToolbar.removeToolbarItems(); | 271 this._scriptViewToolbar.removeToolbarItems(); |
| 272 var view = this.visibleView() | 272 var view = this.visibleView() |
| 273 if (view instanceof WebInspector.View) { | 273 if (view instanceof WebInspector.SimpleView) { |
| 274 for (var item of (/** @type {?WebInspector.View} */(view)).toolbarIt
ems()) | 274 for (var item of (/** @type {?WebInspector.SimpleView} */(view)).syn
cToolbarItems()) |
| 275 this._scriptViewToolbar.appendToolbarItem(item); | 275 this._scriptViewToolbar.appendToolbarItem(item); |
| 276 } | 276 } |
| 277 }, | 277 }, |
| 278 | 278 |
| 279 /** | 279 /** |
| 280 * @param {!WebInspector.UISourceCode} uiSourceCode | 280 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 281 * @param {number=} lineNumber 0-based | 281 * @param {number=} lineNumber 0-based |
| 282 * @param {number=} columnNumber | 282 * @param {number=} columnNumber |
| 283 * @param {boolean=} omitFocus | 283 * @param {boolean=} omitFocus |
| 284 * @param {boolean=} omitHighlight | 284 * @param {boolean=} omitHighlight |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 */ | 775 */ |
| 776 handleAction: function(context, actionId) | 776 handleAction: function(context, actionId) |
| 777 { | 777 { |
| 778 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView); | 778 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView); |
| 779 if (!sourcesView) | 779 if (!sourcesView) |
| 780 return false; | 780 return false; |
| 781 sourcesView._editorContainer.closeAllFiles(); | 781 sourcesView._editorContainer.closeAllFiles(); |
| 782 return true; | 782 return true; |
| 783 } | 783 } |
| 784 } | 784 } |
| OLD | NEW |