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

Side by Side 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: debug warns Created 6 years, 2 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 /** @fileoverview Externs generated from namespace: metricsPrivate */
6
7 /**
8 * Describes the type of metric that is to be collected.
9 * @typedef {{
10 * metricName: string,
11 * type: string,
12 * min: number,
13 * max: number,
14 * buckets: number
15 * }}
16 */
17 var MetricType;
18
19 /**
20 * @const
21 */
22 chrome.metricsPrivate = {};
23
24 /**
25 * Returns true if the user opted in to sending crash reports.
26 * @param {Function} callback
27 */
28 chrome.metricsPrivate.getIsCrashReportingEnabled = function(callback) {};
29
30 /**
31 * Returns the group name chosen for the named trial, or the empty string if
32 * the trial does not exist or is not enabled.
33 * @param {string} name
34 * @param {Function} callback
35 */
36 chrome.metricsPrivate.getFieldTrial = function(name, callback) {};
37
38 /**
39 * Returns variation parameters for the named trial if available, or undefined
40 * otherwise.
41 * @param {string} name
42 * @param {Function} callback
43 */
44 chrome.metricsPrivate.getVariationParams = function(name, callback) {};
45
46 /**
47 * Records an action performed by the user.
48 * @param {string} name
49 */
50 chrome.metricsPrivate.recordUserAction = function(name) {};
51
52 /**
53 * Records a percentage value from 1 to 100.
54 * @param {string} metricName
55 * @param {number} value
56 */
57 chrome.metricsPrivate.recordPercentage = function(metricName, value) {};
58
59 /**
60 * Records a value than can range from 1 to 1,000,000.
61 * @param {string} metricName
62 * @param {number} value
63 */
64 chrome.metricsPrivate.recordCount = function(metricName, value) {};
65
66 /**
67 * Records a value than can range from 1 to 100.
68 * @param {string} metricName
69 * @param {number} value
70 */
71 chrome.metricsPrivate.recordSmallCount = function(metricName, value) {};
72
73 /**
74 * Records a value than can range from 1 to 10,000.
75 * @param {string} metricName
76 * @param {number} value
77 */
78 chrome.metricsPrivate.recordMediumCount = function(metricName, value) {};
79
80 /**
81 * Records an elapsed time of no more than 10 seconds. The sample value is
82 * specified in milliseconds.
83 * @param {string} metricName
84 * @param {number} value
85 */
86 chrome.metricsPrivate.recordTime = function(metricName, value) {};
87
88 /**
89 * Records an elapsed time of no more than 3 minutes. The sample value is
90 * specified in milliseconds.
91 * @param {string} metricName
92 * @param {number} value
93 */
94 chrome.metricsPrivate.recordMediumTime = function(metricName, value) {};
95
96 /**
97 * Records an elapsed time of no more than 1 hour. The sample value is
98 * specified in milliseconds.
99 * @param {string} metricName
100 * @param {number} value
101 */
102 chrome.metricsPrivate.recordLongTime = function(metricName, value) {};
103
104 /**
105 * Increments the count associated with |value| in the sparse histogram defined
106 * by the |metricName|.
107 * @param {string} metricName
108 * @param {number} value
109 */
110 chrome.metricsPrivate.recordSparseValue = function(metricName, value) {};
111
112 /**
113 * Adds a value to the given metric.
114 * @param {MetricType} metric
115 * @param {number} value
116 */
117 chrome.metricsPrivate.recordValue = function(metric, value) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698