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

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

Issue 1899963002: Merge to 2661 "[DevTools] Support broken UMA metric from M49 frontend." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698