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

Side by Side Diff: Source/devtools/front_end/sources/AdvancedSearchView.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 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.AdvancedSearchView = function() 9 WebInspector.AdvancedSearchView = function()
10 { 10 {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 _searchStarted: function(progressIndicator) 187 _searchStarted: function(progressIndicator)
188 { 188 {
189 this._resetResults(); 189 this._resetResults();
190 this._resetCounters(); 190 this._resetCounters();
191 191
192 this._searchMessageElement.textContent = WebInspector.UIString("Searchin g\u2026"); 192 this._searchMessageElement.textContent = WebInspector.UIString("Searchin g\u2026");
193 progressIndicator.show(this._searchProgressPlaceholderElement); 193 progressIndicator.show(this._searchProgressPlaceholderElement);
194 this._updateSearchResultsMessage(); 194 this._updateSearchResultsMessage();
195 195
196 if (!this._searchingView) 196 if (!this._searchingView)
197 this._searchingView = new WebInspector.EmptyView(WebInspector.UIStri ng("Searching\u2026")); 197 this._searchingView = new WebInspector.EmptyWidget(WebInspector.UISt ring("Searching\u2026"));
198 this._searchingView.show(this._searchResultsElement); 198 this._searchingView.show(this._searchResultsElement);
199 }, 199 },
200 200
201 /** 201 /**
202 * @param {!WebInspector.ProgressIndicator} progressIndicator 202 * @param {!WebInspector.ProgressIndicator} progressIndicator
203 */ 203 */
204 _indexingStarted: function(progressIndicator) 204 _indexingStarted: function(progressIndicator)
205 { 205 {
206 this._searchMessageElement.textContent = WebInspector.UIString("Indexing \u2026"); 206 this._searchMessageElement.textContent = WebInspector.UIString("Indexing \u2026");
207 progressIndicator.show(this._searchProgressPlaceholderElement); 207 progressIndicator.show(this._searchProgressPlaceholderElement);
(...skipping 29 matching lines...) Expand all
237 this._searchMatchesCount = 0; 237 this._searchMatchesCount = 0;
238 this._searchResultsCount = 0; 238 this._searchResultsCount = 0;
239 this._nonEmptySearchResultsCount = 0; 239 this._nonEmptySearchResultsCount = 0;
240 }, 240 },
241 241
242 _nothingFound: function() 242 _nothingFound: function()
243 { 243 {
244 this._resetResults(); 244 this._resetResults();
245 245
246 if (!this._notFoundView) 246 if (!this._notFoundView)
247 this._notFoundView = new WebInspector.EmptyView(WebInspector.UIStrin g("No matches found.")); 247 this._notFoundView = new WebInspector.EmptyWidget(WebInspector.UIStr ing("No matches found."));
248 this._notFoundView.show(this._searchResultsElement); 248 this._notFoundView.show(this._searchResultsElement);
249 this._searchResultsMessageElement.textContent = WebInspector.UIString("N o matches found."); 249 this._searchResultsMessageElement.textContent = WebInspector.UIString("N o matches found.");
250 }, 250 },
251 251
252 /** 252 /**
253 * @param {!WebInspector.FileBasedSearchResult} searchResult 253 * @param {!WebInspector.FileBasedSearchResult} searchResult
254 */ 254 */
255 _addSearchResult: function(searchResult) 255 _addSearchResult: function(searchResult)
256 { 256 {
257 this._searchMatchesCount += searchResult.searchMatches.length; 257 this._searchMatchesCount += searchResult.searchMatches.length;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 performIndexing: function(progress, callback) { }, 411 performIndexing: function(progress, callback) { },
412 412
413 stopSearch: function() { }, 413 stopSearch: function() { },
414 414
415 /** 415 /**
416 * @param {!WebInspector.ProjectSearchConfig} searchConfig 416 * @param {!WebInspector.ProjectSearchConfig} searchConfig
417 * @return {!WebInspector.SearchResultsPane} 417 * @return {!WebInspector.SearchResultsPane}
418 */ 418 */
419 createSearchResultsPane: function(searchConfig) { } 419 createSearchResultsPane: function(searchConfig) { }
420 } 420 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698