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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 actions.add('MobileMenuForward') | 251 actions.add('MobileMenuForward') |
252 actions.add('MobileMenuFullscreen') | 252 actions.add('MobileMenuFullscreen') |
253 actions.add('MobileMenuNewIncognitoTab') | 253 actions.add('MobileMenuNewIncognitoTab') |
254 actions.add('MobileMenuNewTab') | 254 actions.add('MobileMenuNewTab') |
255 actions.add('MobileMenuOpenTabs') | 255 actions.add('MobileMenuOpenTabs') |
256 actions.add('MobileMenuQuit') | 256 actions.add('MobileMenuQuit') |
257 actions.add('MobileMenuReload') | 257 actions.add('MobileMenuReload') |
258 actions.add('MobileMenuSettings') | 258 actions.add('MobileMenuSettings') |
259 actions.add('MobileMenuShare') | 259 actions.add('MobileMenuShare') |
260 actions.add('MobileMenuShow') | 260 actions.add('MobileMenuShow') |
| 261 actions.add('MobileMWSession') |
261 actions.add('MobileNTPBookmark') | 262 actions.add('MobileNTPBookmark') |
262 actions.add('MobileNTPForeignSession') | 263 actions.add('MobileNTPForeignSession') |
263 actions.add('MobileNTPMostVisited') | 264 actions.add('MobileNTPMostVisited') |
264 actions.add('MobileNTPRecentlyClosed') | 265 actions.add('MobileNTPRecentlyClosed') |
265 actions.add('MobileNTPSwitchToBookmarks') | 266 actions.add('MobileNTPSwitchToBookmarks') |
266 actions.add('MobileNTPSwitchToIncognito') | 267 actions.add('MobileNTPSwitchToIncognito') |
267 actions.add('MobileNTPSwitchToMostVisited') | 268 actions.add('MobileNTPSwitchToMostVisited') |
268 actions.add('MobileNTPSwitchToOpenTabs') | 269 actions.add('MobileNTPSwitchToOpenTabs') |
269 actions.add('MobileNewTabOpened') | 270 actions.add('MobileNewTabOpened') |
270 actions.add('MobileOmniboxSearch') | 271 actions.add('MobileOmniboxSearch') |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 else: | 634 else: |
634 print action | 635 print action |
635 | 636 |
636 if hash_output: | 637 if hash_output: |
637 print "Done. Do not forget to add chromeactions.txt to your changelist" | 638 print "Done. Do not forget to add chromeactions.txt to your changelist" |
638 return 0 | 639 return 0 |
639 | 640 |
640 | 641 |
641 if '__main__' == __name__: | 642 if '__main__' == __name__: |
642 sys.exit(main(sys.argv)) | 643 sys.exit(main(sys.argv)) |
OLD | NEW |