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

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

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 7 months 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 | Annotate | Revision Log
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 /** 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
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/SourcesPanel.js ('k') | Source/devtools/front_end/sources/StyleSheetOutlineDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698