Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: tools/metrics/actions/extract_actions.py

Issue 22602004: [Android] Added UMA for using popup menu (hw/sw button, dragging/tapping) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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))
OLDNEW
« no previous file with comments | « tools/metrics/actions/chromeactions.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698