| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 }, | 518 }, |
| 519 | 519 |
| 520 /** | 520 /** |
| 521 * @override | 521 * @override |
| 522 * @param {string} actionName | 522 * @param {string} actionName |
| 523 * @param {number} actionCode | 523 * @param {number} actionCode |
| 524 * @param {number} bucketSize | 524 * @param {number} bucketSize |
| 525 */ | 525 */ |
| 526 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) | 526 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) |
| 527 { | 527 { |
| 528 // Support for M49 frontend. |
| 529 if (actionName === "DevTools.DrawerShown") |
| 530 return; |
| 528 DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionNa
me, actionCode, bucketSize], null); | 531 DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionNa
me, actionCode, bucketSize], null); |
| 529 }, | 532 }, |
| 530 | 533 |
| 531 /** | 534 /** |
| 532 * @override | 535 * @override |
| 533 */ | 536 */ |
| 534 requestFileSystems: function() | 537 requestFileSystems: function() |
| 535 { | 538 { |
| 536 DevToolsAPI.sendMessageToEmbedder("requestFileSystems", [], null); | 539 DevToolsAPI.sendMessageToEmbedder("requestFileSystems", [], null); |
| 537 }, | 540 }, |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 | 1030 |
| 1028 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1031 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1029 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1032 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
| 1030 DOMTokenList.prototype.toggle = function(token, force) | 1033 DOMTokenList.prototype.toggle = function(token, force) |
| 1031 { | 1034 { |
| 1032 if (arguments.length === 1) | 1035 if (arguments.length === 1) |
| 1033 force = !this.contains(token); | 1036 force = !this.contains(token); |
| 1034 return this.__originalDOMTokenListToggle(token, !!force); | 1037 return this.__originalDOMTokenListToggle(token, !!force); |
| 1035 } | 1038 } |
| 1036 } | 1039 } |
| OLD | NEW |