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/devtools_compatibility.js

Issue 2861053003: DevTools: [lighthouse] Implement performance metrics filmstrip (Closed)
Patch Set: Created 3 years, 7 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 /* eslint-disable indent */ 4 /* eslint-disable indent */
5 (function(window) { 5 (function(window) {
6 6
7 // DevToolsAPI --------------------------------------------------------------- - 7 // DevToolsAPI --------------------------------------------------------------- -
8 8
9 /** 9 /**
10 * @unrestricted 10 * @unrestricted
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 * @param {function()} callback 385 * @param {function()} callback
386 */ 386 */
387 setIsDocked(isDocked, callback) { 387 setIsDocked(isDocked, callback) {
388 DevToolsAPI.sendMessageToEmbedder('setIsDocked', [isDocked], callback); 388 DevToolsAPI.sendMessageToEmbedder('setIsDocked', [isDocked], callback);
389 } 389 }
390 390
391 /** 391 /**
392 * Requests inspected page to be placed atop of the inspector frontend with specified bounds. 392 * Requests inspected page to be placed atop of the inspector frontend with specified bounds.
393 * @override 393 * @override
394 * @param {{x: number, y: number, width: number, height: number}} bounds 394 * @param {{x: number, y: number, width: number, height: number}} bounds
395 * @param {boolean=} force
395 */ 396 */
396 setInspectedPageBounds(bounds) { 397 setInspectedPageBounds(bounds, force) {
397 DevToolsAPI.sendMessageToEmbedder('setInspectedPageBounds', [bounds], null ); 398 DevToolsAPI.sendMessageToEmbedder('setInspectedPageBounds', [bounds, force || false], null);
398 } 399 }
399 400
400 /** 401 /**
401 * @override 402 * @override
402 */ 403 */
403 inspectElementCompleted() { 404 inspectElementCompleted() {
404 DevToolsAPI.sendMessageToEmbedder('inspectElementCompleted', [], null); 405 DevToolsAPI.sendMessageToEmbedder('inspectElementCompleted', [], null);
405 } 406 }
406 407
407 /** 408 /**
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 * @return {boolean} 1274 * @return {boolean}
1274 */ 1275 */
1275 DOMTokenList.prototype.toggle = function(token, force) { 1276 DOMTokenList.prototype.toggle = function(token, force) {
1276 if (arguments.length === 1) 1277 if (arguments.length === 1)
1277 force = !this.contains(token); 1278 force = !this.contains(token);
1278 return this.__originalDOMTokenListToggle(token, !!force); 1279 return this.__originalDOMTokenListToggle(token, !!force);
1279 }; 1280 };
1280 } 1281 }
1281 1282
1282 })(window); 1283 })(window);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698