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

Side by Side Diff: Source/devtools/front_end/RuntimeModel.js

Issue 16143005: monitor console command implemented. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | no next file » | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 function receivedPropertyNames(propertyNames) 259 function receivedPropertyNames(propertyNames)
260 { 260 {
261 RuntimeAgent.releaseObjectGroup("completion"); 261 RuntimeAgent.releaseObjectGroup("completion");
262 if (!propertyNames) { 262 if (!propertyNames) {
263 completionsReadyCallback([]); 263 completionsReadyCallback([]);
264 return; 264 return;
265 } 265 }
266 var includeCommandLineAPI = (!dotNotation && !bracketNotation); 266 var includeCommandLineAPI = (!dotNotation && !bracketNotation);
267 if (includeCommandLineAPI) { 267 if (includeCommandLineAPI) {
268 const commandLineAPI = ["dir", "dirxml", "keys", "values", "prof ile", "profileEnd", "monitorEvents", "unmonitorEvents", "inspect", "copy", "clea r", 268 const commandLineAPI = ["dir", "dirxml", "keys", "values", "prof ile", "profileEnd", "monitorEvents", "unmonitorEvents", "inspect", "copy", "clea r",
269 "getEventListeners", "table", "$", "$$", "$x"]; 269 "getEventListeners", "debug", "undebug", "monitor", "unmonit or", "table", "$", "$$", "$x"];
270 for (var i = 0; i < commandLineAPI.length; ++i) 270 for (var i = 0; i < commandLineAPI.length; ++i)
271 propertyNames[commandLineAPI[i]] = true; 271 propertyNames[commandLineAPI[i]] = true;
272 } 272 }
273 this._reportCompletions(completionsReadyCallback, dotNotation, brack etNotation, expressionString, prefix, Object.keys(propertyNames)); 273 this._reportCompletions(completionsReadyCallback, dotNotation, brack etNotation, expressionString, prefix, Object.keys(propertyNames));
274 } 274 }
275 }, 275 },
276 276
277 /** 277 /**
278 * @param {function(!Array.<string>, number=)} completionsReadyCallback 278 * @param {function(!Array.<string>, number=)} completionsReadyCallback
279 * @param {boolean} dotNotation 279 * @param {boolean} dotNotation
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 if (subtitle) { 448 if (subtitle) {
449 if (!name) 449 if (!name)
450 return subtitle; 450 return subtitle;
451 return name + "( " + subtitle + " )"; 451 return name + "( " + subtitle + " )";
452 } 452 }
453 return "<iframe>"; 453 return "<iframe>";
454 }, 454 },
455 455
456 __proto__: WebInspector.Object.prototype 456 __proto__: WebInspector.Object.prototype
457 } 457 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698