OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 this._agent = target.runtimeAgent(); | 40 this._agent = target.runtimeAgent(); |
41 this.target().registerRuntimeDispatcher(new WebInspector.RuntimeDispatcher(t
his)); | 41 this.target().registerRuntimeDispatcher(new WebInspector.RuntimeDispatcher(t
his)); |
42 if (target.hasJSContext()) | 42 if (target.hasJSContext()) |
43 this._agent.enable(); | 43 this._agent.enable(); |
44 /** | 44 /** |
45 * @type {!Object.<number, !WebInspector.ExecutionContext>} | 45 * @type {!Object.<number, !WebInspector.ExecutionContext>} |
46 */ | 46 */ |
47 this._executionContextById = {}; | 47 this._executionContextById = {}; |
48 | 48 |
49 if (!Runtime.experiments.isEnabled("customObjectFormatters")) | |
50 return; | |
51 | |
52 if (WebInspector.moduleSetting("customFormatters").get()) | 49 if (WebInspector.moduleSetting("customFormatters").get()) |
53 this._agent.setCustomObjectFormatterEnabled(true); | 50 this._agent.setCustomObjectFormatterEnabled(true); |
54 | 51 |
55 WebInspector.moduleSetting("customFormatters").addChangeListener(this._custo
mFormattersStateChanged.bind(this)); | 52 WebInspector.moduleSetting("customFormatters").addChangeListener(this._custo
mFormattersStateChanged.bind(this)); |
56 } | 53 } |
57 | 54 |
58 WebInspector.RuntimeModel.Events = { | 55 WebInspector.RuntimeModel.Events = { |
59 ExecutionContextCreated: "ExecutionContextCreated", | 56 ExecutionContextCreated: "ExecutionContextCreated", |
60 ExecutionContextDestroyed: "ExecutionContextDestroyed", | 57 ExecutionContextDestroyed: "ExecutionContextDestroyed", |
61 } | 58 } |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 /** | 542 /** |
546 * @return {string} | 543 * @return {string} |
547 */ | 544 */ |
548 sourceURL: function() | 545 sourceURL: function() |
549 { | 546 { |
550 return this._sourceURL; | 547 return this._sourceURL; |
551 }, | 548 }, |
552 | 549 |
553 __proto__: WebInspector.SDKObject.prototype | 550 __proto__: WebInspector.SDKObject.prototype |
554 } | 551 } |
OLD | NEW |