| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 /** | 177 /** |
| 178 * @return {!WebInspector.SearchableView} | 178 * @return {!WebInspector.SearchableView} |
| 179 */ | 179 */ |
| 180 searchableView: function() | 180 searchableView: function() |
| 181 { | 181 { |
| 182 return this._searchableView; | 182 return this._searchableView; |
| 183 }, | 183 }, |
| 184 | 184 |
| 185 /** | 185 /** |
| 186 * @return {!WebInspector.View} | 186 * @return {!WebInspector.Widget} |
| 187 */ | 187 */ |
| 188 visibleView: function() | 188 visibleView: function() |
| 189 { | 189 { |
| 190 return this._editorContainer.visibleView; | 190 return this._editorContainer.visibleView; |
| 191 }, | 191 }, |
| 192 | 192 |
| 193 /** | 193 /** |
| 194 * @return {?WebInspector.SourceFrame} | 194 * @return {?WebInspector.SourceFrame} |
| 195 */ | 195 */ |
| 196 currentSourceFrame: function() | 196 currentSourceFrame: function() |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 this._searchableView.updateSearchMatchesCount(0); | 517 this._searchableView.updateSearchMatchesCount(0); |
| 518 | 518 |
| 519 var sourceFrame = this.currentSourceFrame(); | 519 var sourceFrame = this.currentSourceFrame(); |
| 520 if (!sourceFrame) | 520 if (!sourceFrame) |
| 521 return; | 521 return; |
| 522 | 522 |
| 523 this._searchView = sourceFrame; | 523 this._searchView = sourceFrame; |
| 524 this._searchConfig = searchConfig; | 524 this._searchConfig = searchConfig; |
| 525 | 525 |
| 526 /** | 526 /** |
| 527 * @param {!WebInspector.View} view | 527 * @param {!WebInspector.Widget} view |
| 528 * @param {number} searchMatches | 528 * @param {number} searchMatches |
| 529 * @this {WebInspector.SourcesView} | 529 * @this {WebInspector.SourcesView} |
| 530 */ | 530 */ |
| 531 function finishedCallback(view, searchMatches) | 531 function finishedCallback(view, searchMatches) |
| 532 { | 532 { |
| 533 if (!searchMatches) | 533 if (!searchMatches) |
| 534 return; | 534 return; |
| 535 | 535 |
| 536 this._searchableView.updateSearchMatchesCount(searchMatches); | 536 this._searchableView.updateSearchMatchesCount(searchMatches); |
| 537 } | 537 } |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView); | 816 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView); |
| 817 var currentUISourceCode = sourcesView.currentUISourceCode(); | 817 var currentUISourceCode = sourcesView.currentUISourceCode(); |
| 818 if (!currentUISourceCode) | 818 if (!currentUISourceCode) |
| 819 return; | 819 return; |
| 820 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate
._nextFile(currentUISourceCode); | 820 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate
._nextFile(currentUISourceCode); |
| 821 if (!nextUISourceCode) | 821 if (!nextUISourceCode) |
| 822 return; | 822 return; |
| 823 sourcesView.showSourceLocation(nextUISourceCode); | 823 sourcesView.showSourceLocation(nextUISourceCode); |
| 824 } | 824 } |
| 825 } | 825 } |
| OLD | NEW |