Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1094 newScriptFile.checkMapping(); | 1094 newScriptFile.checkMapping(); |
| 1095 if (newScriptFile.hasSourceMapURL()) { | 1095 if (newScriptFile.hasSourceMapURL()) { |
| 1096 var sourceMapInfobar = UI.Infobar.create( | 1096 var sourceMapInfobar = UI.Infobar.create( |
| 1097 UI.Infobar.Type.Info, Common.UIString('Source Map detected.'), | 1097 UI.Infobar.Type.Info, Common.UIString('Source Map detected.'), |
| 1098 Common.settings.createSetting('sourceMapInfobarDisabled', false)); | 1098 Common.settings.createSetting('sourceMapInfobarDisabled', false)); |
| 1099 if (sourceMapInfobar) { | 1099 if (sourceMapInfobar) { |
| 1100 sourceMapInfobar.createDetailsRowMessage(Common.UIString( | 1100 sourceMapInfobar.createDetailsRowMessage(Common.UIString( |
| 1101 'Associated files should be added to the file tree. You can debug these resolved source files as regular JavaScript files.')); | 1101 'Associated files should be added to the file tree. You can debug these resolved source files as regular JavaScript files.')); |
| 1102 sourceMapInfobar.createDetailsRowMessage(Common.UIString( | 1102 sourceMapInfobar.createDetailsRowMessage(Common.UIString( |
| 1103 'Associated files are available via file tree or %s.', | 1103 'Associated files are available via file tree or %s.', |
| 1104 UI.shortcutRegistry.shortcutTitleForAction('sources.go-to-source') )); | 1104 UI.shortcutRegistry.shortcutTitleForAction('quickOpen.show'))); |
|
pfeldman
2017/02/07 02:10:03
meh!
| |
| 1105 this.attachInfobars([sourceMapInfobar]); | 1105 this.attachInfobars([sourceMapInfobar]); |
| 1106 } | 1106 } |
| 1107 } | 1107 } |
| 1108 } | 1108 } |
| 1109 } | 1109 } |
| 1110 | 1110 |
| 1111 /** | 1111 /** |
| 1112 * @override | 1112 * @override |
| 1113 */ | 1113 */ |
| 1114 onTextEditorContentSet() { | 1114 onTextEditorContentSet() { |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1375 hide() { | 1375 hide() { |
| 1376 if (!this.bookmark) | 1376 if (!this.bookmark) |
| 1377 return; | 1377 return; |
| 1378 this.bookmark.clear(); | 1378 this.bookmark.clear(); |
| 1379 this.bookmark = null; | 1379 this.bookmark = null; |
| 1380 } | 1380 } |
| 1381 }; | 1381 }; |
| 1382 | 1382 |
| 1383 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark'); | 1383 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark'); |
| 1384 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element'); | 1384 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element'); |
| OLD | NEW |