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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/persistence/PersistenceUtils.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 WebInspector.PersistenceUtils = class {
6 /**
7 * @param {!WebInspector.UISourceCode} uiSourceCode
8 * @return {string}
9 */
10 static tooltipForUISourceCode(uiSourceCode) {
11 var binding = WebInspector.persistence.binding(uiSourceCode);
12 if (!binding)
13 return '';
14 if (uiSourceCode === binding.network)
15 return WebInspector.UIString('Persisted to file system: %s', binding.fileS ystem.url().trimMiddle(150));
16 if (binding.network.contentType().isFromSourceMap())
17 return WebInspector.UIString('Linked to source map: %s', binding.network.u rl().trimMiddle(150));
18 return WebInspector.UIString('Linked to %s', binding.network.url().trimMiddl e(150));
19 }
20 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698