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

Side by Side Diff: chrome/browser/resources/print_preview/metrics.js

Issue 575333002: Compile print_preview, part 2: reduce down to 260 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview
Patch Set: revert movement of enums: now handle in compiler pass 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('print_preview', function() { 5 cr.define('print_preview', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Object used to measure usage statistics. 9 * Object used to measure usage statistics.
10 * @constructor 10 * @constructor
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 chrome.send('metricsHandler:recordInHistogram', 103 chrome.send('metricsHandler:recordInHistogram',
104 [this.histogram_, 104 [this.histogram_,
105 ((bucket > this.maxBucket_) ? this.maxBucket_ : bucket), 105 ((bucket > this.maxBucket_) ? this.maxBucket_ : bucket),
106 this.maxBucket_]); 106 this.maxBucket_]);
107 } 107 }
108 }; 108 };
109 109
110 /** 110 /**
111 * Destination Search specific usage statistics context. 111 * Destination Search specific usage statistics context.
112 * @constructor 112 * @constructor
113 * @implements {MetricsContext} 113 * @extends {print_preview.MetricsContext}
114 */ 114 */
115 function DestinationSearchMetricsContext() { 115 function DestinationSearchMetricsContext() {
116 MetricsContext.call( 116 MetricsContext.call(
117 this, 117 this,
118 'PrintPreview.DestinationAction', 118 'PrintPreview.DestinationAction',
119 Metrics.DestinationSearchBucket.DESTINATION_SEARCH_MAX_BUCKET); 119 Metrics.DestinationSearchBucket.DESTINATION_SEARCH_MAX_BUCKET);
120 }; 120 };
121 121
122 DestinationSearchMetricsContext.prototype = { 122 DestinationSearchMetricsContext.prototype = {
123 __proto__: MetricsContext.prototype 123 __proto__: MetricsContext.prototype
124 }; 124 };
125 125
126 /** 126 /**
127 * GCP promotion specific usage statistics context. 127 * GCP promotion specific usage statistics context.
128 * @constructor 128 * @constructor
129 * @implements {MetricsContext} 129 * @extends {print_preview.MetricsContext}
130 */ 130 */
131 function GcpPromoMetricsContext() { 131 function GcpPromoMetricsContext() {
132 MetricsContext.call(this, 132 MetricsContext.call(this,
133 'PrintPreview.GcpPromo', 133 'PrintPreview.GcpPromo',
134 Metrics.GcpPromoBucket.GCP_PROMO_MAX_BUCKET); 134 Metrics.GcpPromoBucket.GCP_PROMO_MAX_BUCKET);
135 }; 135 };
136 136
137 GcpPromoMetricsContext.prototype = { 137 GcpPromoMetricsContext.prototype = {
138 __proto__: MetricsContext.prototype 138 __proto__: MetricsContext.prototype
139 }; 139 };
140 140
141 /** 141 /**
142 * Print settings UI specific usage statistics context. 142 * Print settings UI specific usage statistics context.
143 * @constructor 143 * @constructor
144 * @implements {MetricsContext} 144 * @extends {print_preview.MetricsContext}
145 */ 145 */
146 function PrintSettingsUiMetricsContext() { 146 function PrintSettingsUiMetricsContext() {
147 MetricsContext.call( 147 MetricsContext.call(
148 this, 148 this,
149 'PrintPreview.PrintSettingsUi', 149 'PrintPreview.PrintSettingsUi',
150 Metrics.PrintSettingsUiBucket.PRINT_SETTINGS_UI_MAX_BUCKET); 150 Metrics.PrintSettingsUiBucket.PRINT_SETTINGS_UI_MAX_BUCKET);
151 }; 151 };
152 152
153 PrintSettingsUiMetricsContext.prototype = { 153 PrintSettingsUiMetricsContext.prototype = {
154 __proto__: MetricsContext.prototype 154 __proto__: MetricsContext.prototype
155 }; 155 };
156 156
157 // Export 157 // Export
158 return { 158 return {
159 Metrics: Metrics, 159 Metrics: Metrics,
160 MetricsContext: MetricsContext, 160 MetricsContext: MetricsContext,
161 DestinationSearchMetricsContext: DestinationSearchMetricsContext, 161 DestinationSearchMetricsContext: DestinationSearchMetricsContext,
162 GcpPromoMetricsContext: GcpPromoMetricsContext, 162 GcpPromoMetricsContext: GcpPromoMetricsContext,
163 PrintSettingsUiMetricsContext: PrintSettingsUiMetricsContext 163 PrintSettingsUiMetricsContext: PrintSettingsUiMetricsContext
164 }; 164 };
165 }); 165 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698