| OLD | NEW |
| (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 }; |
| OLD | NEW |