| OLD | NEW |
| 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 }, | 527 }, |
| 528 | 528 |
| 529 /** | 529 /** |
| 530 * @override | 530 * @override |
| 531 * @param {string} actionName | 531 * @param {string} actionName |
| 532 * @param {number} actionCode | 532 * @param {number} actionCode |
| 533 * @param {number} bucketSize | 533 * @param {number} bucketSize |
| 534 */ | 534 */ |
| 535 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) | 535 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) |
| 536 { | 536 { |
| 537 // Support for M49 frontend. |
| 538 if (actionName === "DevTools.DrawerShown") |
| 539 return; |
| 537 DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionNa
me, actionCode, bucketSize], null); | 540 DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionNa
me, actionCode, bucketSize], null); |
| 538 }, | 541 }, |
| 539 | 542 |
| 540 /** | 543 /** |
| 541 * @override | 544 * @override |
| 542 * @param {string} message | 545 * @param {string} message |
| 543 */ | 546 */ |
| 544 sendFrontendAPINotification: function(message) | 547 sendFrontendAPINotification: function(message) |
| 545 { | 548 { |
| 546 DevToolsAPI.sendMessageToEmbedder("sendFrontendAPINotification", [messag
e], null); | 549 DevToolsAPI.sendMessageToEmbedder("sendFrontendAPINotification", [messag
e], null); |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 | 1056 |
| 1054 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1057 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1055 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1058 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
| 1056 DOMTokenList.prototype.toggle = function(token, force) | 1059 DOMTokenList.prototype.toggle = function(token, force) |
| 1057 { | 1060 { |
| 1058 if (arguments.length === 1) | 1061 if (arguments.length === 1) |
| 1059 force = !this.contains(token); | 1062 force = !this.contains(token); |
| 1060 return this.__originalDOMTokenListToggle(token, !!force); | 1063 return this.__originalDOMTokenListToggle(token, !!force); |
| 1061 } | 1064 } |
| 1062 } | 1065 } |
| OLD | NEW |