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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/InspectorBackend.js

Issue 2421913003: DevTools: allow reattaching main target live. (Closed)
Patch Set: same Created 4 years, 2 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) 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 for (var id = 0; id < scripts.length; ++id) 413 for (var id = 0; id < scripts.length; ++id)
414 scripts[id].call(this); 414 scripts[id].call(this);
415 } 415 }
416 }, 416 },
417 417
418 _dumpProtocolMessage: function(message) 418 _dumpProtocolMessage: function(message)
419 { 419 {
420 console.log(message); 420 console.log(message);
421 }, 421 },
422 422
423
dgozman 2016/10/15 00:26:26 extra blank line
424 close: function()
425 {
426 this.forceClose();
427 this.connectionClosed("force close");
428 },
429
430 /**
431 * @protected
432 */
433 forceClose: function()
434 {
435 },
436
423 /** 437 /**
424 * @protected 438 * @protected
425 * @param {string} reason 439 * @param {string} reason
426 */ 440 */
427 connectionClosed: function(reason) 441 connectionClosed: function(reason)
428 { 442 {
429 this._isConnected = false; 443 this._isConnected = false;
430 this._runPendingCallbacks(); 444 this._runPendingCallbacks();
431 this.dispatchEventToListeners(InspectorBackendClass.Connection.Events.Di sconnected, {reason: reason}); 445 this.dispatchEventToListeners(InspectorBackendClass.Connection.Events.Di sconnected, {reason: reason});
432 }, 446 },
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 } 748 }
735 } 749 }
736 750
737 InspectorBackendClass.Options = { 751 InspectorBackendClass.Options = {
738 dumpInspectorTimeStats: false, 752 dumpInspectorTimeStats: false,
739 dumpInspectorProtocolMessages: false, 753 dumpInspectorProtocolMessages: false,
740 suppressRequestErrors: false 754 suppressRequestErrors: false
741 } 755 }
742 756
743 InspectorBackend = new InspectorBackendClass(); 757 InspectorBackend = new InspectorBackendClass();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698