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

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

Issue 2688243004: [inspector] migrated Debugger.setBreakpointsActive to native (Closed)
Patch Set: revert bigger part :) Created 3 years, 10 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
« no previous file with comments | « src/debug/debug-interface.h ('k') | src/inspector/debugger_script_externs.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 /** 181 /**
182 * @param {!ExecutionState} execState 182 * @param {!ExecutionState} execState
183 */ 183 */
184 DebuggerScript.clearBreakpoints = function(execState) 184 DebuggerScript.clearBreakpoints = function(execState)
185 { 185 {
186 Debug.clearAllBreakPoints(); 186 Debug.clearAllBreakPoints();
187 } 187 }
188 188
189 /** 189 /**
190 * @param {!ExecutionState} execState
191 * @param {!{enabled: boolean}} info
192 */
193 DebuggerScript.setBreakpointsActivated = function(execState, info)
194 {
195 Debug.debuggerFlags().breakPointsActive.setValue(info.enabled);
196 }
197
198 /**
199 * @param {!Array<!BreakPoint>|undefined} breakpoints 190 * @param {!Array<!BreakPoint>|undefined} breakpoints
200 */ 191 */
201 DebuggerScript.getBreakpointNumbers = function(breakpoints) 192 DebuggerScript.getBreakpointNumbers = function(breakpoints)
202 { 193 {
203 var numbers = []; 194 var numbers = [];
204 if (!breakpoints) 195 if (!breakpoints)
205 return numbers; 196 return numbers;
206 197
207 for (var i = 0; i < breakpoints.length; i++) { 198 for (var i = 0; i < breakpoints.length; i++) {
208 var breakpoint = breakpoints[i]; 199 var breakpoint = breakpoints[i];
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 case ScopeType.Global: 489 case ScopeType.Global:
499 case ScopeType.With: 490 case ScopeType.With:
500 result = scopeObject; 491 result = scopeObject;
501 break; 492 break;
502 } 493 }
503 return result; 494 return result;
504 } 495 }
505 496
506 return DebuggerScript; 497 return DebuggerScript;
507 })(); 498 })();
OLDNEW
« no previous file with comments | « src/debug/debug-interface.h ('k') | src/inspector/debugger_script_externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698