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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 actions.add('MobileTabStripNewTab') | 263 actions.add('MobileTabStripNewTab') |
264 actions.add('MobileTabSwitched') | 264 actions.add('MobileTabSwitched') |
265 actions.add('MobileToolbarBack') | 265 actions.add('MobileToolbarBack') |
266 actions.add('MobileToolbarForward') | 266 actions.add('MobileToolbarForward') |
267 actions.add('MobileToolbarNewTab') | 267 actions.add('MobileToolbarNewTab') |
268 actions.add('MobileToolbarReload') | 268 actions.add('MobileToolbarReload') |
269 actions.add('MobileToolbarShowMenu') | 269 actions.add('MobileToolbarShowMenu') |
270 actions.add('MobileToolbarShowStackView') | 270 actions.add('MobileToolbarShowStackView') |
271 actions.add('MobileToolbarStackViewNewTab') | 271 actions.add('MobileToolbarStackViewNewTab') |
272 actions.add('MobileToolbarToggleBookmark') | 272 actions.add('MobileToolbarToggleBookmark') |
| 273 actions.add('MobileUsingMenuByHwButtonDragging') |
| 274 actions.add('MobileUsingMenuByHwButtonTap') |
| 275 actions.add('MobileUsingMenuBySwButtonDragging') |
| 276 actions.add('MobileUsingMenuBySwButtonTap') |
273 actions.add('SystemBack') | 277 actions.add('SystemBack') |
274 actions.add('SystemBackForNavigation') | 278 actions.add('SystemBackForNavigation') |
275 | 279 |
276 def AddAboutFlagsActions(actions): | 280 def AddAboutFlagsActions(actions): |
277 """This parses the experimental feature flags for UMA actions. | 281 """This parses the experimental feature flags for UMA actions. |
278 | 282 |
279 Arguments: | 283 Arguments: |
280 actions: set of actions to add to. | 284 actions: set of actions to add to. |
281 """ | 285 """ |
282 about_flags = os.path.join(REPOSITORY_ROOT, 'chrome', 'browser', | 286 about_flags = os.path.join(REPOSITORY_ROOT, 'chrome', 'browser', |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 else: | 598 else: |
595 print action | 599 print action |
596 | 600 |
597 if hash_output: | 601 if hash_output: |
598 print "Done. Do not forget to add chromeactions.txt to your changelist" | 602 print "Done. Do not forget to add chromeactions.txt to your changelist" |
599 return 0 | 603 return 0 |
600 | 604 |
601 | 605 |
602 if '__main__' == __name__: | 606 if '__main__' == __name__: |
603 sys.exit(main(sys.argv)) | 607 sys.exit(main(sys.argv)) |
OLD | NEW |