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 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 newScriptFile.checkMapping(); | 1158 newScriptFile.checkMapping(); |
1159 if (newScriptFile.hasSourceMapURL()) { | 1159 if (newScriptFile.hasSourceMapURL()) { |
1160 var sourceMapInfobar = UI.Infobar.create( | 1160 var sourceMapInfobar = UI.Infobar.create( |
1161 UI.Infobar.Type.Info, Common.UIString('Source Map detected.'), | 1161 UI.Infobar.Type.Info, Common.UIString('Source Map detected.'), |
1162 Common.settings.createSetting('sourceMapInfobarDisabled', false)); | 1162 Common.settings.createSetting('sourceMapInfobarDisabled', false)); |
1163 if (sourceMapInfobar) { | 1163 if (sourceMapInfobar) { |
1164 sourceMapInfobar.createDetailsRowMessage(Common.UIString( | 1164 sourceMapInfobar.createDetailsRowMessage(Common.UIString( |
1165 'Associated files should be added to the file tree. You can debug
these resolved source files as regular JavaScript files.')); | 1165 'Associated files should be added to the file tree. You can debug
these resolved source files as regular JavaScript files.')); |
1166 sourceMapInfobar.createDetailsRowMessage(Common.UIString( | 1166 sourceMapInfobar.createDetailsRowMessage(Common.UIString( |
1167 'Associated files are available via file tree or %s.', | 1167 'Associated files are available via file tree or %s.', |
1168 UI.shortcutRegistry.shortcutTitleForAction('sources.go-to-source')
)); | 1168 UI.shortcutRegistry.shortcutTitleForAction('quickOpen.show'))); |
1169 this.attachInfobars([sourceMapInfobar]); | 1169 this.attachInfobars([sourceMapInfobar]); |
1170 } | 1170 } |
1171 } | 1171 } |
1172 } | 1172 } |
1173 } | 1173 } |
1174 | 1174 |
1175 /** | 1175 /** |
1176 * @override | 1176 * @override |
1177 */ | 1177 */ |
1178 onTextEditorContentSet() { | 1178 onTextEditorContentSet() { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 return; | 1441 return; |
1442 this.bookmark.clear(); | 1442 this.bookmark.clear(); |
1443 this.bookmark = null; | 1443 this.bookmark = null; |
1444 } | 1444 } |
1445 }; | 1445 }; |
1446 | 1446 |
1447 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book
mark'); | 1447 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book
mark'); |
1448 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo
l('element'); | 1448 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo
l('element'); |
1449 | 1449 |
1450 Sources.JavaScriptSourceFrame.continueToLocationDecorationSymbol = Symbol('bookm
ark'); | 1450 Sources.JavaScriptSourceFrame.continueToLocationDecorationSymbol = Symbol('bookm
ark'); |
OLD | NEW |