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

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

Issue 2215153002: [DevTools] Eliminate frameId and isContentScript from js protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: navigation tracker Created 4 years, 4 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) 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 /** 109 /**
110 * @param {!RuntimeAgent.ExecutionContextDescription} context 110 * @param {!RuntimeAgent.ExecutionContextDescription} context
111 */ 111 */
112 _executionContextCreated: function(context) 112 _executionContextCreated: function(context)
113 { 113 {
114 // The private script context should be hidden behind an experiment. 114 // The private script context should be hidden behind an experiment.
115 if (context.name === WebInspector.RuntimeModel._privateScript && !contex t.origin && !Runtime.experiments.isEnabled("privateScriptInspection")) { 115 if (context.name === WebInspector.RuntimeModel._privateScript && !contex t.origin && !Runtime.experiments.isEnabled("privateScriptInspection")) {
116 return; 116 return;
117 } 117 }
118 var executionContext = new WebInspector.ExecutionContext(this.target(), context.id, context.name, context.origin, context.isDefault, context.frameId); 118 var data = context.auxData || { isDefault: true };
119 var executionContext = new WebInspector.ExecutionContext(this.target(), context.id, context.name, context.origin, data["isDefault"], data["frameId"]);
119 this._executionContextById.set(executionContext.id, executionContext); 120 this._executionContextById.set(executionContext.id, executionContext);
120 this.dispatchEventToListeners(WebInspector.RuntimeModel.Events.Execution ContextCreated, executionContext); 121 this.dispatchEventToListeners(WebInspector.RuntimeModel.Events.Execution ContextCreated, executionContext);
121 }, 122 },
122 123
123 /** 124 /**
124 * @param {number} executionContextId 125 * @param {number} executionContextId
125 */ 126 */
126 _executionContextDestroyed: function(executionContextId) 127 _executionContextDestroyed: function(executionContextId)
127 { 128 {
128 var executionContext = this._executionContextById.get(executionContextId ); 129 var executionContext = this._executionContextById.get(executionContextId );
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 /** 1028 /**
1028 * @return {boolean} 1029 * @return {boolean}
1029 */ 1030 */
1030 isNormalListenerType: function() 1031 isNormalListenerType: function()
1031 { 1032 {
1032 return this._listenerType === "normal"; 1033 return this._listenerType === "normal";
1033 }, 1034 },
1034 1035
1035 __proto__: WebInspector.SDKObject.prototype 1036 __proto__: WebInspector.SDKObject.prototype
1036 } 1037 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698