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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 this._executionContextComparator = WebInspector.ExecutionContext.comparator; | 46 this._executionContextComparator = WebInspector.ExecutionContext.comparator; |
47 | 47 |
48 if (WebInspector.moduleSetting("customFormatters").get()) | 48 if (WebInspector.moduleSetting("customFormatters").get()) |
49 this._agent.setCustomObjectFormatterEnabled(true); | 49 this._agent.setCustomObjectFormatterEnabled(true); |
50 | 50 |
51 WebInspector.moduleSetting("customFormatters").addChangeListener(this._custo
mFormattersStateChanged.bind(this)); | 51 WebInspector.moduleSetting("customFormatters").addChangeListener(this._custo
mFormattersStateChanged.bind(this)); |
52 } | 52 } |
53 | 53 |
54 /** @enum {symbol} */ | 54 /** @enum {symbol} */ |
55 WebInspector.RuntimeModel.Events = { | 55 WebInspector.RuntimeModel.Events = { |
56 ExecutionContextCreated: ("ExecutionContextCreated"), | 56 ExecutionContextCreated: Symbol("ExecutionContextCreated"), |
57 ExecutionContextDestroyed: ("ExecutionContextDestroyed"), | 57 ExecutionContextDestroyed: Symbol("ExecutionContextDestroyed"), |
58 ExecutionContextChanged: ("ExecutionContextChanged"), | 58 ExecutionContextChanged: Symbol("ExecutionContextChanged"), |
59 ExecutionContextOrderChanged: ("ExecutionContextOrderChanged") | 59 ExecutionContextOrderChanged: Symbol("ExecutionContextOrderChanged") |
60 } | 60 } |
61 | 61 |
62 WebInspector.RuntimeModel._privateScript = "private script"; | 62 WebInspector.RuntimeModel._privateScript = "private script"; |
63 | 63 |
64 WebInspector.RuntimeModel.prototype = { | 64 WebInspector.RuntimeModel.prototype = { |
65 | 65 |
66 /** | 66 /** |
67 * @return {!Array.<!WebInspector.ExecutionContext>} | 67 * @return {!Array.<!WebInspector.ExecutionContext>} |
68 */ | 68 */ |
69 executionContexts: function() | 69 executionContexts: function() |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 /** | 1012 /** |
1013 * @return {boolean} | 1013 * @return {boolean} |
1014 */ | 1014 */ |
1015 isNormalListenerType: function() | 1015 isNormalListenerType: function() |
1016 { | 1016 { |
1017 return this._listenerType === "normal"; | 1017 return this._listenerType === "normal"; |
1018 }, | 1018 }, |
1019 | 1019 |
1020 __proto__: WebInspector.SDKObject.prototype | 1020 __proto__: WebInspector.SDKObject.prototype |
1021 } | 1021 } |
OLD | NEW |