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

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

Issue 1325713004: Devtools: Move custom formatters out of experiments (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@custom-formatters
Patch Set: Created 5 years, 3 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 | « Source/devtools/front_end/main/Main.js ('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 28 matching lines...) Expand all
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698