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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js

Issue 2562453003: [DevTools] Remove Common.Event.target field. (Closed)
Patch Set: works Created 4 years 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 // 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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698