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

Unified Diff: third_party/closure_compiler/externs/metrics_private.js

Issue 543863002: Typecheck chrome://bookmarks using Closure Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: rebase Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/closure_compiler/externs/metrics_private.js
diff --git a/third_party/closure_compiler/externs/metrics_private.js b/third_party/closure_compiler/externs/metrics_private.js
new file mode 100644
index 0000000000000000000000000000000000000000..b2c9ef85dc2271e2f6713ea28331fd414215eb86
--- /dev/null
+++ b/third_party/closure_compiler/externs/metrics_private.js
@@ -0,0 +1,117 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
Dan Beam 2014/09/18 23:13:12 same question
Vitaly Pavlenko 2014/09/19 00:48:46 Same answer, source: https://code.google.com/p/chr
+
+/** @fileoverview Externs generated from namespace: metricsPrivate */
+
+/**
+ * Describes the type of metric that is to be collected.
+ * @typedef {{
+ * metricName: string,
+ * type: string,
+ * min: number,
+ * max: number,
+ * buckets: number
+ * }}
+ */
+var MetricType;
+
+/**
+ * @const
+ */
+chrome.metricsPrivate = {};
+
+/**
+ * Returns true if the user opted in to sending crash reports.
+ * @param {Function} callback
+ */
+chrome.metricsPrivate.getIsCrashReportingEnabled = function(callback) {};
+
+/**
+ * Returns the group name chosen for the named trial, or the empty string if
+ * the trial does not exist or is not enabled.
+ * @param {string} name
+ * @param {Function} callback
+ */
+chrome.metricsPrivate.getFieldTrial = function(name, callback) {};
+
+/**
+ * Returns variation parameters for the named trial if available, or undefined
+ * otherwise.
+ * @param {string} name
+ * @param {Function} callback
+ */
+chrome.metricsPrivate.getVariationParams = function(name, callback) {};
+
+/**
+ * Records an action performed by the user.
+ * @param {string} name
+ */
+chrome.metricsPrivate.recordUserAction = function(name) {};
+
+/**
+ * Records a percentage value from 1 to 100.
+ * @param {string} metricName
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordPercentage = function(metricName, value) {};
+
+/**
+ * Records a value than can range from 1 to 1,000,000.
+ * @param {string} metricName
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordCount = function(metricName, value) {};
+
+/**
+ * Records a value than can range from 1 to 100.
+ * @param {string} metricName
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordSmallCount = function(metricName, value) {};
+
+/**
+ * Records a value than can range from 1 to 10,000.
+ * @param {string} metricName
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordMediumCount = function(metricName, value) {};
+
+/**
+ * Records an elapsed time of no more than 10 seconds. The sample value is
+ * specified in milliseconds.
+ * @param {string} metricName
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordTime = function(metricName, value) {};
+
+/**
+ * Records an elapsed time of no more than 3 minutes. The sample value is
+ * specified in milliseconds.
+ * @param {string} metricName
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordMediumTime = function(metricName, value) {};
+
+/**
+ * Records an elapsed time of no more than 1 hour. The sample value is
+ * specified in milliseconds.
+ * @param {string} metricName
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordLongTime = function(metricName, value) {};
+
+/**
+ * Increments the count associated with |value| in the sparse histogram defined
+ * by the |metricName|.
+ * @param {string} metricName
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordSparseValue = function(metricName, value) {};
+
+/**
+ * Adds a value to the given metric.
+ * @param {MetricType} metric
+ * @param {number} value
+ */
+chrome.metricsPrivate.recordValue = function(metric, value) {};

Powered by Google App Engine
This is Rietveld 408576698