Chromium Code Reviews| 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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 605 | 605 |
| 606 switch (uiSourceCode.contentType()) { | 606 switch (uiSourceCode.contentType()) { |
| 607 case WebInspector.resourceTypes.Document: | 607 case WebInspector.resourceTypes.Document: |
| 608 case WebInspector.resourceTypes.Script: | 608 case WebInspector.resourceTypes.Script: |
| 609 WebInspector.JavaScriptOutlineDialog.show(this, uiSourceCode, this.s howSourceLocation.bind(this, uiSourceCode)); | 609 WebInspector.JavaScriptOutlineDialog.show(this, uiSourceCode, this.s howSourceLocation.bind(this, uiSourceCode)); |
| 610 return true; | 610 return true; |
| 611 case WebInspector.resourceTypes.Stylesheet: | 611 case WebInspector.resourceTypes.Stylesheet: |
| 612 WebInspector.StyleSheetOutlineDialog.show(this, uiSourceCode, this.s howSourceLocation.bind(this, uiSourceCode)); | 612 WebInspector.StyleSheetOutlineDialog.show(this, uiSourceCode, this.s howSourceLocation.bind(this, uiSourceCode)); |
| 613 return true; | 613 return true; |
| 614 } | 614 } |
| 615 return false; | 615 return true; |
|
apavlov
2014/07/28 12:37:53
default:
return true;
seems more readable. It
lushnikov
2014/07/28 14:03:09
Done.
| |
| 616 }, | 616 }, |
| 617 | 617 |
| 618 /** | 618 /** |
| 619 * @param {string=} query | 619 * @param {string=} query |
| 620 */ | 620 */ |
| 621 showOpenResourceDialog: function(query) | 621 showOpenResourceDialog: function(query) |
| 622 { | 622 { |
| 623 var uiSourceCodes = this._editorContainer.historyUISourceCodes(); | 623 var uiSourceCodes = this._editorContainer.historyUISourceCodes(); |
| 624 /** @type {!Map.<!WebInspector.UISourceCode, number>} */ | 624 /** @type {!Map.<!WebInspector.UISourceCode, number>} */ |
| 625 var defaultScores = new Map(); | 625 var defaultScores = new Map(); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 770 var currentUISourceCode = sourcesView.currentUISourceCode(); | 770 var currentUISourceCode = sourcesView.currentUISourceCode(); |
| 771 if (!currentUISourceCode) | 771 if (!currentUISourceCode) |
| 772 return true; | 772 return true; |
| 773 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate ._nextFile(currentUISourceCode); | 773 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate ._nextFile(currentUISourceCode); |
| 774 if (!nextUISourceCode) | 774 if (!nextUISourceCode) |
| 775 return true; | 775 return true; |
| 776 sourcesView.showSourceLocation(nextUISourceCode); | 776 sourcesView.showSourceLocation(nextUISourceCode); |
| 777 return true; | 777 return true; |
| 778 } | 778 } |
| 779 } | 779 } |
| OLD | NEW |