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

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

Issue 2543633009: [Devtools] Template fromTarget() function calls to model (Closed)
Patch Set: fix Created 4 years 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) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 static cancelSearch() { 1100 static cancelSearch() {
1101 for (var domModel of SDK.DOMModel.instances()) 1101 for (var domModel of SDK.DOMModel.instances())
1102 domModel._cancelSearch(); 1102 domModel._cancelSearch();
1103 } 1103 }
1104 1104
1105 /** 1105 /**
1106 * @param {!SDK.Target} target 1106 * @param {!SDK.Target} target
1107 * @return {?SDK.DOMModel} 1107 * @return {?SDK.DOMModel}
1108 */ 1108 */
1109 static fromTarget(target) { 1109 static fromTarget(target) {
1110 return /** @type {?SDK.DOMModel} */ (target.model(SDK.DOMModel)); 1110 return target.model(SDK.DOMModel);
1111 } 1111 }
1112 1112
1113 /** 1113 /**
1114 * @param {!SDK.DOMNode} node 1114 * @param {!SDK.DOMNode} node
1115 */ 1115 */
1116 _scheduleMutationEvent(node) { 1116 _scheduleMutationEvent(node) {
1117 if (!this.hasEventListeners(SDK.DOMModel.Events.DOMMutated)) 1117 if (!this.hasEventListeners(SDK.DOMModel.Events.DOMMutated))
1118 return; 1118 return;
1119 1119
1120 this._lastMutationId = (this._lastMutationId || 0) + 1; 1120 this._lastMutationId = (this._lastMutationId || 0) + 1;
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 /** 2162 /**
2163 * @override 2163 * @override
2164 * @param {!Protocol.Page.FrameId} frameId 2164 * @param {!Protocol.Page.FrameId} frameId
2165 */ 2165 */
2166 highlightFrame(frameId) { 2166 highlightFrame(frameId) {
2167 this._agent.highlightFrame( 2167 this._agent.highlightFrame(
2168 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), 2168 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(),
2169 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); 2169 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA());
2170 } 2170 }
2171 }; 2171 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698