Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / tools / telemetry / telemetry / page / actions / all_page_actions.py
1 # Copyright (c) 2012 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 os
5
6 from telemetry.core import discover
7 from telemetry.core import util
8 from telemetry.page.actions import page_action
9
10 # pylint: disable=W0611
11 # TODO(nednguyen): Remove all of these imports when we done porting all actions
12 # to action_runner
13 from telemetry.page.actions.interact import InteractAction
14 from telemetry.page.actions.javascript import JavascriptAction
15 from telemetry.page.actions.javascript_click import ClickElementAction
16 from telemetry.page.actions.js_collect_garbage import JsCollectGarbageAction
17 from telemetry.page.actions.loop import LoopAction
18 from telemetry.page.actions.media_action import MediaAction
19 from telemetry.page.actions.navigate import NavigateAction
20 from telemetry.page.actions.pinch import PinchAction
21 from telemetry.page.actions.play import PlayAction
22 from telemetry.page.actions.reload import ReloadAction
23 # pylint: disable=C0301
24 from telemetry.page.actions.repaint_continuously import (
25   RepaintContinuouslyAction)
26 from telemetry.page.actions.scroll import ScrollAction
27 from telemetry.page.actions.scroll_bounce import ScrollBounceAction
28 from telemetry.page.actions.seek import SeekAction
29 from telemetry.page.actions.tap import TapAction
30 from telemetry.page.actions.swipe import SwipeAction
31 from telemetry.page.actions.wait import WaitAction
32
33
34 _page_action_classes = discover.DiscoverClasses(
35     os.path.dirname(__file__), util.GetTelemetryDir(), page_action.PageAction)
36
37 def GetAllClasses():
38   return list(_page_action_classes.values())
39
40 def FindClassWithName(name):
41   return _page_action_classes.get(name)