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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js b/third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js
index 08416e65dabfc57dc74e0e3a59d254b05194a055..e0bf4d8eff3398052f02c4a6dd8a50e3e620d3a1 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js
@@ -12,7 +12,7 @@ Sources.FileBasedSearchResultsPane = class extends Sources.SearchResultsPane {
super(searchConfig);
this._searchResults = [];
- this._treeOutline = new TreeOutlineInShadow();
+ this._treeOutline = new UI.TreeOutlineInShadow();
this._treeOutline.registerRequiredCSS('sources/fileBasedSearchResultsPane.css');
this.element.appendChild(this._treeOutline.element);
@@ -50,7 +50,7 @@ Sources.FileBasedSearchResultsPane.fileMatchesShownAtOnce = 20;
/**
* @unrestricted
*/
-Sources.FileBasedSearchResultsPane.FileTreeElement = class extends TreeElement {
+Sources.FileBasedSearchResultsPane.FileTreeElement = class extends UI.TreeElement {
/**
* @param {!Workspace.ProjectSearchConfig} searchConfig
* @param {!Sources.FileBasedSearchResult} searchResult
@@ -148,7 +148,7 @@ Sources.FileBasedSearchResultsPane.FileTreeElement = class extends TreeElement {
var contentSpan = this._createContentSpan(lineContent, matchRanges);
anchor.appendChild(contentSpan);
- var searchMatchElement = new TreeElement();
+ var searchMatchElement = new UI.TreeElement();
searchMatchElement.selectable = false;
this.appendChild(searchMatchElement);
searchMatchElement.listItemElement.className = 'search-match source-code';
@@ -162,7 +162,7 @@ Sources.FileBasedSearchResultsPane.FileTreeElement = class extends TreeElement {
_appendShowMoreMatchesElement(startMatchIndex) {
var matchesLeftCount = this._searchResult.searchMatches.length - startMatchIndex;
var showMoreMatchesText = Common.UIString('Show all matches (%d more).', matchesLeftCount);
- this._showMoreMatchesTreeElement = new TreeElement(showMoreMatchesText);
+ this._showMoreMatchesTreeElement = new UI.TreeElement(showMoreMatchesText);
this.appendChild(this._showMoreMatchesTreeElement);
this._showMoreMatchesTreeElement.listItemElement.classList.add('show-more-matches');
this._showMoreMatchesTreeElement.onselect = this._showMoreMatchesElementSelected.bind(this, startMatchIndex);

Powered by Google App Engine
This is Rietveld 408576698