Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 return { | 172 return { |
| 173 id: script.id, | 173 id: script.id, |
| 174 name: script.nameOrSourceURL(), | 174 name: script.nameOrSourceURL(), |
| 175 sourceURL: script.source_url, | 175 sourceURL: script.source_url, |
| 176 sourceMappingURL: script.source_mapping_url, | 176 sourceMappingURL: script.source_mapping_url, |
| 177 source: script.source, | 177 source: script.source, |
| 178 startLine: script.line_offset, | 178 startLine: script.line_offset, |
| 179 startColumn: script.column_offset, | 179 startColumn: script.column_offset, |
| 180 endLine: endLine, | 180 endLine: endLine, |
| 181 endColumn: endColumn, | 181 endColumn: endColumn, |
| 182 isContentScript: !!script.context_data && script.context_data.indexOf("[ injected,") === 0, | 182 isContentScript: !!script.context_data && script.context_data.indexOf(", injected") !== -1, |
|
yurys
2015/08/28 20:23:47
Maybe endsWith ?
kozy
2015/08/28 20:24:08
Done.
| |
| 183 isInternalScript: script.is_debugger_script | 183 isInternalScript: script.is_debugger_script |
| 184 }; | 184 }; |
| 185 } | 185 } |
| 186 | 186 |
| 187 DebuggerScript.setBreakpoint = function(execState, info) | 187 DebuggerScript.setBreakpoint = function(execState, info) |
| 188 { | 188 { |
| 189 var positionAlignment = info.interstatementLocation ? Debug.BreakPositionAli gnment.BreakPosition : Debug.BreakPositionAlignment.Statement; | 189 var positionAlignment = info.interstatementLocation ? Debug.BreakPositionAli gnment.BreakPosition : Debug.BreakPositionAlignment.Statement; |
| 190 var breakId = Debug.setScriptBreakPointById(info.sourceID, info.lineNumber, info.columnNumber, info.condition, undefined, positionAlignment); | 190 var breakId = Debug.setScriptBreakPointById(info.sourceID, info.lineNumber, info.columnNumber, info.condition, undefined, positionAlignment); |
| 191 | 191 |
| 192 var locations = Debug.findBreakPointActualLocations(breakId); | 192 var locations = Debug.findBreakPointActualLocations(breakId); |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 585 "parentPromise": eventData.parentPromise().value(), | 585 "parentPromise": eventData.parentPromise().value(), |
| 586 "status": eventData.status() | 586 "status": eventData.status() |
| 587 }; | 587 }; |
| 588 } | 588 } |
| 589 | 589 |
| 590 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it. | 590 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it. |
| 591 ToggleMirrorCache(false); | 591 ToggleMirrorCache(false); |
| 592 | 592 |
| 593 return DebuggerScript; | 593 return DebuggerScript; |
| 594 })(); | 594 })(); |
| OLD | NEW |