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

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

Issue 1892743005: [DevTools] Support broken UMA metric from M49 frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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