OLD | NEW |
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 * A data store that stores destinations and dispatches events when the data | 9 * A data store that stores destinations and dispatches events when the data |
10 * store changes. | 10 * store changes. |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 * @private | 214 * @private |
215 */ | 215 */ |
216 DestinationStore.AUTO_SELECT_TIMEOUT_ = 15000; | 216 DestinationStore.AUTO_SELECT_TIMEOUT_ = 15000; |
217 | 217 |
218 /** | 218 /** |
219 * Amount of time spent searching for privet destination, in milliseconds. | 219 * Amount of time spent searching for privet destination, in milliseconds. |
220 * @type {number} | 220 * @type {number} |
221 * @const | 221 * @const |
222 * @private | 222 * @private |
223 */ | 223 */ |
224 DestinationStore.PRIVET_SEARCH_DURATION_ = 2000; | 224 DestinationStore.PRIVET_SEARCH_DURATION_ = 5000; |
225 | 225 |
226 /** | 226 /** |
227 * Maximum amount of time spent searching for extension destinations, in | 227 * Maximum amount of time spent searching for extension destinations, in |
228 * milliseconds. | 228 * milliseconds. |
229 * @type {number} | 229 * @type {number} |
230 * @const | 230 * @const |
231 * @private | 231 * @private |
232 */ | 232 */ |
233 DestinationStore.EXTENSION_SEARCH_DURATION_ = 5000; | 233 DestinationStore.EXTENSION_SEARCH_DURATION_ = 5000; |
234 | 234 |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 return id == this.appState_.selectedDestinationId && | 1093 return id == this.appState_.selectedDestinationId && |
1094 origin == this.appState_.selectedDestinationOrigin; | 1094 origin == this.appState_.selectedDestinationOrigin; |
1095 } | 1095 } |
1096 }; | 1096 }; |
1097 | 1097 |
1098 // Export | 1098 // Export |
1099 return { | 1099 return { |
1100 DestinationStore: DestinationStore | 1100 DestinationStore: DestinationStore |
1101 }; | 1101 }; |
1102 }); | 1102 }); |
OLD | NEW |