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

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: link fixed 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 close: function()
424 {
425 this.forceClose();
426 this.connectionClosed("force close");
427 },
428
429 /**
430 * @protected
431 */
432 forceClose: function()
433 {
434 },
435
423 /** 436 /**
424 * @protected 437 * @protected
425 * @param {string} reason 438 * @param {string} reason
426 */ 439 */
427 connectionClosed: function(reason) 440 connectionClosed: function(reason)
428 { 441 {
429 this._isConnected = false; 442 this._isConnected = false;
430 this._runPendingCallbacks(); 443 this._runPendingCallbacks();
431 this.dispatchEventToListeners(InspectorBackendClass.Connection.Events.Di sconnected, {reason: reason}); 444 this.dispatchEventToListeners(InspectorBackendClass.Connection.Events.Di sconnected, {reason: reason});
432 }, 445 },
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 } 747 }
735 } 748 }
736 749
737 InspectorBackendClass.Options = { 750 InspectorBackendClass.Options = {
738 dumpInspectorTimeStats: false, 751 dumpInspectorTimeStats: false,
739 dumpInspectorProtocolMessages: false, 752 dumpInspectorProtocolMessages: false,
740 suppressRequestErrors: false 753 suppressRequestErrors: false
741 } 754 }
742 755
743 InspectorBackend = new InspectorBackendClass(); 756 InspectorBackend = new InspectorBackendClass();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698