Chromium Code Reviews| 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 selects a register promo for a cloud print printer. | |
| 51 REGISTER_PROMO_SELECTED: 7 | |
|
Vitaly Buka (NO REVIEWS)
2014/03/07 01:38:35
+REGISTER_PROMO_SHOWN: ?
Noam Samuel
2014/03/07 18:12:53
Done.
| |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 /** | 54 /** |
| 53 * Enumeration of buckets that a user can enter while using the Google Cloud | 55 * Enumeration of buckets that a user can enter while using the Google Cloud |
| 54 * Print promotion. | 56 * Print promotion. |
| 55 * @enum {number} | 57 * @enum {number} |
| 56 */ | 58 */ |
| 57 Metrics.GcpPromoBucket = { | 59 Metrics.GcpPromoBucket = { |
| 58 // Used when the Google Cloud Print pomotion (shown above the pdf preview | 60 // Used when the Google Cloud Print pomotion (shown above the pdf preview |
| 59 // plugin) is shown to the user. | 61 // 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_, | 94 chrome.send(Metrics.NATIVE_FUNCTION_NAME_, |
| 93 [Metrics.BucketGroup.GCP_PROMO, bucket]); | 95 [Metrics.BucketGroup.GCP_PROMO, bucket]); |
| 94 } | 96 } |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 // Export | 99 // Export |
| 98 return { | 100 return { |
| 99 Metrics: Metrics | 101 Metrics: Metrics |
| 100 }; | 102 }; |
| 101 }); | 103 }); |
| OLD | NEW |