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 * @implements {Sources.TabbedEditorContainerDelegate} | 5 * @implements {Sources.TabbedEditorContainerDelegate} |
6 * @implements {UI.Searchable} | 6 * @implements {UI.Searchable} |
7 * @implements {UI.Replaceable} | 7 * @implements {UI.Replaceable} |
8 * @unrestricted | 8 * @unrestricted |
9 */ | 9 */ |
10 Sources.SourcesView = class extends UI.VBox { | 10 Sources.SourcesView = class extends UI.VBox { |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 this._searchableView.refreshSearch(); | 476 this._searchableView.refreshSearch(); |
477 this._updateScriptViewToolbarItems(); | 477 this._updateScriptViewToolbarItems(); |
478 | 478 |
479 this.dispatchEventToListeners(Sources.SourcesView.Events.EditorSelected, thi
s._editorContainer.currentFile()); | 479 this.dispatchEventToListeners(Sources.SourcesView.Events.EditorSelected, thi
s._editorContainer.currentFile()); |
480 } | 480 } |
481 | 481 |
482 /** | 482 /** |
483 * @param {!Common.Event} event | 483 * @param {!Common.Event} event |
484 */ | 484 */ |
485 _uiSourceCodeTitleChanged(event) { | 485 _uiSourceCodeTitleChanged(event) { |
486 this._recreateSourceFrameIfNeeded(/** @type {!Workspace.UISourceCode} */ (ev
ent.target)); | 486 this._recreateSourceFrameIfNeeded(/** @type {!Workspace.UISourceCode} */ (ev
ent.data)); |
487 } | 487 } |
488 | 488 |
489 /** | 489 /** |
490 * @override | 490 * @override |
491 */ | 491 */ |
492 searchCanceled() { | 492 searchCanceled() { |
493 if (this._searchView) | 493 if (this._searchView) |
494 this._searchView.searchCanceled(); | 494 this._searchView.searchCanceled(); |
495 | 495 |
496 delete this._searchView; | 496 delete this._searchView; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 * @return {boolean} | 778 * @return {boolean} |
779 */ | 779 */ |
780 handleAction(context, actionId) { | 780 handleAction(context, actionId) { |
781 var sourcesView = UI.context.flavor(Sources.SourcesView); | 781 var sourcesView = UI.context.flavor(Sources.SourcesView); |
782 if (!sourcesView) | 782 if (!sourcesView) |
783 return false; | 783 return false; |
784 sourcesView._editorContainer.closeAllFiles(); | 784 sourcesView._editorContainer.closeAllFiles(); |
785 return true; | 785 return true; |
786 } | 786 } |
787 }; | 787 }; |
OLD | NEW |