OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """Extract UserMetrics "actions" strings from the Chrome source. | 7 """Extract UserMetrics "actions" strings from the Chrome source. |
8 | 8 |
9 This program generates the list of known actions we expect to see in the | 9 This program generates the list of known actions we expect to see in the |
10 user behavior logs. It walks the Chrome source, looking for calls to | 10 user behavior logs. It walks the Chrome source, looking for calls to |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 actions.add('PDF_Unsupported_Shared_Review') | 192 actions.add('PDF_Unsupported_Shared_Review') |
193 actions.add('PDF_Unsupported_Sound') | 193 actions.add('PDF_Unsupported_Sound') |
194 actions.add('PDF_Unsupported_XFA') | 194 actions.add('PDF_Unsupported_XFA') |
195 | 195 |
196 def AddAndroidActions(actions): | 196 def AddAndroidActions(actions): |
197 """Add actions that are used by Chrome on Android. | 197 """Add actions that are used by Chrome on Android. |
198 | 198 |
199 Arguments | 199 Arguments |
200 actions: set of actions to add to. | 200 actions: set of actions to add to. |
201 """ | 201 """ |
| 202 actions.add('Cast_Sender_CastEnterFullscreen'); |
| 203 actions.add('Cast_Sender_CastDeviceSelected'); |
| 204 actions.add('Cast_Sender_YouTubeDeviceSelected'); |
| 205 actions.add('Cast_Sender_CastPlayRequested'); |
202 actions.add('DataReductionProxy_PromoDisplayed'); | 206 actions.add('DataReductionProxy_PromoDisplayed'); |
203 actions.add('DataReductionProxy_PromoLearnMore'); | 207 actions.add('DataReductionProxy_PromoLearnMore'); |
204 actions.add('DataReductionProxy_TurnedOn'); | 208 actions.add('DataReductionProxy_TurnedOn'); |
205 actions.add('DataReductionProxy_TurnedOnFromPromo'); | 209 actions.add('DataReductionProxy_TurnedOnFromPromo'); |
206 actions.add('DataReductionProxy_TurnedOff'); | 210 actions.add('DataReductionProxy_TurnedOff'); |
207 actions.add('MobileActionBarShown') | 211 actions.add('MobileActionBarShown') |
208 actions.add('MobileBeamCallbackSuccess') | 212 actions.add('MobileBeamCallbackSuccess') |
209 actions.add('MobileBeamInvalidAppState') | 213 actions.add('MobileBeamInvalidAppState') |
210 actions.add('MobileBreakpadUploadAttempt') | 214 actions.add('MobileBreakpadUploadAttempt') |
211 actions.add('MobileBreakpadUploadFailure') | 215 actions.add('MobileBreakpadUploadFailure') |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 else: | 618 else: |
615 print action | 619 print action |
616 | 620 |
617 if hash_output: | 621 if hash_output: |
618 print "Done. Do not forget to add chromeactions.txt to your changelist" | 622 print "Done. Do not forget to add chromeactions.txt to your changelist" |
619 return 0 | 623 return 0 |
620 | 624 |
621 | 625 |
622 if '__main__' == __name__: | 626 if '__main__' == __name__: |
623 sys.exit(main(sys.argv)) | 627 sys.exit(main(sys.argv)) |
OLD | NEW |