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

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

Issue 2482073002: DevTools: introduce beautiful checkmarks in navigator and editor tabs (Closed)
Patch Set: rename icons Created 4 years, 1 month 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/NavigatorView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
index 8f8dd749a6c950ec754ff27d981a765392a29a8c..f2337df78da3be77309eae7b8885f82d112e0ac6 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
@@ -1273,15 +1273,9 @@ WebInspector.NavigatorUISourceCodeTreeNode = class extends WebInspector.Navigato
if (binding && Runtime.experiments.isEnabled('persistence2')) {
var titleElement = createElement('span');
titleElement.textContent = titleText;
- var status = titleElement.createChild('span');
- status.classList.add('mapped-file-bubble');
- status.textContent = '\u25C9';
- if (this._uiSourceCode === binding.network)
- status.title = WebInspector.UIString('Persisted to file system: %s', binding.fileSystem.url().trimMiddle(150));
- else if (binding.network.contentType().isFromSourceMap())
- status.title = WebInspector.UIString('Linked to source map: %s', binding.network.url().trimMiddle(150));
- else
- status.title = WebInspector.UIString('Linked to %s', binding.network.url().trimMiddle(150));
+ var icon = WebInspector.Icon.create('smallicon-checkmark', 'mapped-file-checkmark');
+ icon.title = WebInspector.PersistenceUtils.tooltipForUISourceCode(this._uiSourceCode);
+ titleElement.appendChild(icon);
this._treeElement.title = titleElement;
} else {
this._treeElement.title = titleText;

Powered by Google App Engine
This is Rietveld 408576698