| 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 * Object used to measure usage statistics. | 9 * Object used to measure usage statistics. |
| 10 * @constructor | 10 * @constructor |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Used when the Google Cloud Print promotion (shown in the destination | 39 // Used when the Google Cloud Print promotion (shown in the destination |
| 40 // search widget) is shown to the user. | 40 // search widget) is shown to the user. |
| 41 CLOUDPRINT_PROMO_SHOWN: 3, | 41 CLOUDPRINT_PROMO_SHOWN: 3, |
| 42 // Used when the user chooses to sign-in to their Google account. | 42 // Used when the user chooses to sign-in to their Google account. |
| 43 SIGNIN_TRIGGERED: 4, | 43 SIGNIN_TRIGGERED: 4, |
| 44 // Used when a user selects the privet printer in a pair of duplicate | 44 // Used when a user selects the privet printer in a pair of duplicate |
| 45 // privet and cloud printers. | 45 // privet and cloud printers. |
| 46 PRIVET_DUPLICATE_SELECTED: 5, | 46 PRIVET_DUPLICATE_SELECTED: 5, |
| 47 // Used when a user selects the cloud printer in a pair of duplicate | 47 // Used when a user selects the cloud printer in a pair of duplicate |
| 48 // privet and cloud printers. | 48 // privet and cloud printers. |
| 49 CLOUD_DUPLICATE_SELECTED: 6 | 49 CLOUD_DUPLICATE_SELECTED: 6, |
| 50 // Used when a user sees a register promo for a cloud print printer. |
| 51 REGISTER_PROMO_SHOWN: 7, |
| 52 // Used when a user selects a register promo for a cloud print printer. |
| 53 REGISTER_PROMO_SELECTED: 8 |
| 50 }; | 54 }; |
| 51 | 55 |
| 52 /** | 56 /** |
| 53 * Enumeration of buckets that a user can enter while using the Google Cloud | 57 * Enumeration of buckets that a user can enter while using the Google Cloud |
| 54 * Print promotion. | 58 * Print promotion. |
| 55 * @enum {number} | 59 * @enum {number} |
| 56 */ | 60 */ |
| 57 Metrics.GcpPromoBucket = { | 61 Metrics.GcpPromoBucket = { |
| 58 // Used when the Google Cloud Print pomotion (shown above the pdf preview | 62 // Used when the Google Cloud Print pomotion (shown above the pdf preview |
| 59 // plugin) is shown to the user. | 63 // plugin) is shown to the user. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 chrome.send(Metrics.NATIVE_FUNCTION_NAME_, | 96 chrome.send(Metrics.NATIVE_FUNCTION_NAME_, |
| 93 [Metrics.BucketGroup.GCP_PROMO, bucket]); | 97 [Metrics.BucketGroup.GCP_PROMO, bucket]); |
| 94 } | 98 } |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 // Export | 101 // Export |
| 98 return { | 102 return { |
| 99 Metrics: Metrics | 103 Metrics: Metrics |
| 100 }; | 104 }; |
| 101 }); | 105 }); |
| OLD | NEW |