Home
last modified time | relevance | path

Searched refs:action_dict (Results 1 – 1 of 1) sorted by relevance

/third_party/skia/platform_tools/android/skp_gen/
Dandroid_skp_capture.py49 def parse_action(action_dict): argument
51 if action_dict['type'] == 'drag':
52 return DragAction(tuple(action_dict['start']),
53 tuple(action_dict['end']),
54 action_dict['duration'],
55 action_dict['points'])
56 elif action_dict['type'] == 'press':
57 return PressAction(action_dict['button'], action_dict['press_type'])
59 raise TypeError('Unsupported action type: %s' % action_dict['type'])