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

Side by Side Diff: src/inspector/debugger-script.js

Issue 2622253004: [inspector] introduced debug::SetBreakEventListener,SetExceptionEventListener (Closed)
Patch Set: addressed comments Created 3 years, 11 months 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
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 /** 232 /**
233 * @param {!ExecutionState} execState 233 * @param {!ExecutionState} execState
234 * @param {!{enabled: boolean}} info 234 * @param {!{enabled: boolean}} info
235 */ 235 */
236 DebuggerScript.setBreakpointsActivated = function(execState, info) 236 DebuggerScript.setBreakpointsActivated = function(execState, info)
237 { 237 {
238 Debug.debuggerFlags().breakPointsActive.setValue(info.enabled); 238 Debug.debuggerFlags().breakPointsActive.setValue(info.enabled);
239 } 239 }
240 240
241 /** 241 /**
242 * @param {!BreakEvent} eventData 242 * @param {!Array<!BreakPoint>|undefined} breakpoints
243 */ 243 */
244 DebuggerScript.getBreakpointNumbers = function(eventData) 244 DebuggerScript.getBreakpointNumbers = function(breakpoints)
245 { 245 {
246 var breakpoints = eventData.breakPointsHit();
247 var numbers = []; 246 var numbers = [];
248 if (!breakpoints) 247 if (!breakpoints)
249 return numbers; 248 return numbers;
250 249
251 for (var i = 0; i < breakpoints.length; i++) { 250 for (var i = 0; i < breakpoints.length; i++) {
252 var breakpoint = breakpoints[i]; 251 var breakpoint = breakpoints[i];
253 var scriptBreakPoint = breakpoint.script_break_point(); 252 var scriptBreakPoint = breakpoint.script_break_point();
254 numbers.push(scriptBreakPoint ? scriptBreakPoint.number() : breakpoint.n umber()); 253 numbers.push(scriptBreakPoint ? scriptBreakPoint.number() : breakpoint.n umber());
255 } 254 }
256 return numbers; 255 return numbers;
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 break; 571 break;
573 } 572 }
574 return result; 573 return result;
575 } 574 }
576 575
577 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it. 576 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it.
578 ToggleMirrorCache(false); 577 ToggleMirrorCache(false);
579 578
580 return DebuggerScript; 579 return DebuggerScript;
581 })(); 580 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698