OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** | 5 /** |
6 * CWSWidgetContainer contains a Chrome Web Store widget that displays list of | 6 * CWSWidgetContainer contains a Chrome Web Store widget that displays list of |
7 * apps that satisfy certain constraints (e.g. fileHandler apps that can handle | 7 * apps that satisfy certain constraints (e.g. fileHandler apps that can handle |
8 * files with specific file extension or MIME type) and enables the user to | 8 * files with specific file extension or MIME type) and enables the user to |
9 * install apps directly from it. | 9 * install apps directly from it. |
10 * CWSWidgetContainer implements client side of the widget, which handles | 10 * CWSWidgetContainer implements client side of the widget, which handles |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 /** | 155 /** |
156 * The Chrome Web Store widget origin. | 156 * The Chrome Web Store widget origin. |
157 * @const {string} | 157 * @const {string} |
158 * @private | 158 * @private |
159 */ | 159 */ |
160 this.widgetOrigin_ = params.overrideCwsContainerOriginForTest || | 160 this.widgetOrigin_ = params.overrideCwsContainerOriginForTest || |
161 CWS_WIDGET_ORIGIN; | 161 CWS_WIDGET_ORIGIN; |
162 | 162 |
163 /** | 163 /** |
164 * Map of options for the widget. | 164 * Map of options for the widget. |
165 * @type {?Object.<string, *>} | 165 * @type {?Object<string, *>} |
166 * @private | 166 * @private |
167 */ | 167 */ |
168 this.options_ = null; | 168 this.options_ = null; |
169 | 169 |
170 /** | 170 /** |
171 * The ID of the item being installed. Null if no items are being installed. | 171 * The ID of the item being installed. Null if no items are being installed. |
172 * @type {?string} | 172 * @type {?string} |
173 * @private | 173 * @private |
174 */ | 174 */ |
175 this.installingItemId_ = null; | 175 this.installingItemId_ = null; |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 this.metricsImpl_.recordUserAction('SuggestApps.ShowDialog'); | 935 this.metricsImpl_.recordUserAction('SuggestApps.ShowDialog'); |
936 }; | 936 }; |
937 | 937 |
938 CWSWidgetContainer.MetricsRecorder.prototype.startLoad = function() { | 938 CWSWidgetContainer.MetricsRecorder.prototype.startLoad = function() { |
939 this.metricsImpl_.startInterval('SuggestApps.LoadTime'); | 939 this.metricsImpl_.startInterval('SuggestApps.LoadTime'); |
940 }; | 940 }; |
941 | 941 |
942 CWSWidgetContainer.MetricsRecorder.prototype.finishLoad = function() { | 942 CWSWidgetContainer.MetricsRecorder.prototype.finishLoad = function() { |
943 this.metricsImpl_.recordInterval('SuggestApps.LoadTime'); | 943 this.metricsImpl_.recordInterval('SuggestApps.LoadTime'); |
944 }; | 944 }; |
OLD | NEW |