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

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

Issue 2022673002: DevTools: Fix Maximum call stack size exceeded error while retrieving CPU profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function(window) { 5 (function(window) {
6 6
7 // DevToolsAPI ---------------------------------------------------------------- 7 // DevToolsAPI ----------------------------------------------------------------
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 /** 133 /**
134 * @param {!Array.<!Adb.Device>} devices 134 * @param {!Array.<!Adb.Device>} devices
135 */ 135 */
136 devicesUpdated: function(devices) 136 devicesUpdated: function(devices)
137 { 137 {
138 this._dispatchOnInspectorFrontendAPI("devicesUpdated", [devices]); 138 this._dispatchOnInspectorFrontendAPI("devicesUpdated", [devices]);
139 }, 139 },
140 140
141 /** 141 /**
142 * @param {string} message 142 * @param {!Object|string} message
143 */ 143 */
144 dispatchMessage: function(message) 144 dispatchMessage: function(message)
145 { 145 {
146 this._dispatchOnInspectorFrontendAPI("dispatchMessage", [message]); 146 this._dispatchOnInspectorFrontendAPI("dispatchMessage", [message]);
147 }, 147 },
148 148
149 /** 149 /**
150 * @param {string} messageChunk 150 * @param {string} messageChunk
151 * @param {number} messageSize 151 * @param {number} messageSize
152 */ 152 */
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 1052
1053 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { 1053 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) {
1054 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; 1054 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle;
1055 DOMTokenList.prototype.toggle = function(token, force) 1055 DOMTokenList.prototype.toggle = function(token, force)
1056 { 1056 {
1057 if (arguments.length === 1) 1057 if (arguments.length === 1)
1058 force = !this.contains(token); 1058 force = !this.contains(token);
1059 return this.__originalDOMTokenListToggle(token, !!force); 1059 return this.__originalDOMTokenListToggle(token, !!force);
1060 } 1060 }
1061 } 1061 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698