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

Side by Side Diff: Source/devtools/front_end/EventListenersSidebarPane.js

Issue 206313004: DevTools: Rename WebInspector.DOMAgent into WebInspector.DOMModel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 6 years, 9 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 if (error) 87 if (error)
88 return; 88 return;
89 89
90 var selectedNodeOnly = "selected" === WebInspector.settings.eventLis tenersFilter.get(); 90 var selectedNodeOnly = "selected" === WebInspector.settings.eventLis tenersFilter.get();
91 var sectionNames = []; 91 var sectionNames = [];
92 var sectionMap = {}; 92 var sectionMap = {};
93 for (var i = 0; i < eventListeners.length; ++i) { 93 for (var i = 0; i < eventListeners.length; ++i) {
94 var eventListener = eventListeners[i]; 94 var eventListener = eventListeners[i];
95 if (selectedNodeOnly && (node.id !== eventListener.nodeId)) 95 if (selectedNodeOnly && (node.id !== eventListener.nodeId))
96 continue; 96 continue;
97 eventListener.node = WebInspector.domAgent.nodeForId(eventListen er.nodeId); 97 eventListener.node = WebInspector.domModel.nodeForId(eventListen er.nodeId);
98 delete eventListener.nodeId; // no longer needed 98 delete eventListener.nodeId; // no longer needed
99 if (/^function _inspectorCommandLineAPI_logEvent\(/.test(eventLi stener.handlerBody.toString())) 99 if (/^function _inspectorCommandLineAPI_logEvent\(/.test(eventLi stener.handlerBody.toString()))
100 continue; // ignore event listeners generated by monitorEven t 100 continue; // ignore event listeners generated by monitorEven t
101 var type = eventListener.type; 101 var type = eventListener.type;
102 var section = sectionMap[type]; 102 var section = sectionMap[type];
103 if (!section) { 103 if (!section) {
104 section = new WebInspector.EventListenersSection(type, node. id, self._linkifier); 104 section = new WebInspector.EventListenersSection(type, node. id, self._linkifier);
105 sectionMap[type] = section; 105 sectionMap[type] = section;
106 sectionNames.push(type); 106 sectionNames.push(type);
107 self.sections.push(section); 107 self.sections.push(section);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 var url = this.eventListener.sourceName; 258 var url = this.eventListener.sourceName;
259 var lineNumber = this.eventListener.location.lineNumber; 259 var lineNumber = this.eventListener.location.lineNumber;
260 var columnNumber = 0; 260 var columnNumber = 0;
261 urlElement = linkifier.linkifyLocation(url, lineNumber, columnNumber ); 261 urlElement = linkifier.linkifyLocation(url, lineNumber, columnNumber );
262 } 262 }
263 this.subtitleElement.appendChild(urlElement); 263 this.subtitleElement.appendChild(urlElement);
264 }, 264 },
265 265
266 __proto__: WebInspector.ObjectPropertiesSection.prototype 266 __proto__: WebInspector.ObjectPropertiesSection.prototype
267 } 267 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ElementsTreeOutline.js ('k') | Source/devtools/front_end/ExtensionAuditCategory.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698