1# Copyright 2014 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from telemetry.web_perf.metrics import single_event 6 7EVENT_NAME = 'WebLocalFrameImpl::moveRangeSelectionExtent' 8METRIC_NAME = 'text-selection' 9 10class TextSelectionMetric(single_event._SingleEventMetric): 11 """Reports directly durations of WebLocalFrameImpl::moveRangeSelectionExtent 12 events associated with moving a selection extent. 13 """ 14 15 def __init__(self): 16 super(TextSelectionMetric, self).__init__(EVENT_NAME, METRIC_NAME, 17 metric_description=('List of durations of selection extent movements ' 18 'that were caused by and start during ' 19 'interactions')) 20