[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / tools / perf / page_sets / fling_gesture_supported_shared_state.py
blobafcdcde542b85aca4529aa526fabc242648bf2f3
1 # Copyright 2015 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 import logging
6 from telemetry.page import shared_page_state
9 class FlingGestureSupportedSharedState(
10 shared_page_state.Shared10InchTabletPageState):
12 def CanRunOnBrowser(self, browser_info, _):
13 if not browser_info.HasFlingGestureSupport():
14 logging.warning('Browser does not support fling gestures, skipping test')
15 return False
16 return True