| Index: tools/chrome_remote_control/chrome_remote_control/compound_interaction.py
|
| diff --git a/tools/chrome_remote_control/chrome_remote_control/compound_interaction.py b/tools/chrome_remote_control/chrome_remote_control/compound_interaction.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..34d0dedb9224aeb2bf6e97047b2a9dfe4a8a0f45
|
| --- /dev/null
|
| +++ b/tools/chrome_remote_control/chrome_remote_control/compound_interaction.py
|
| @@ -0,0 +1,17 @@
|
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +from chrome_remote_control import page_interaction
|
| +
|
| +class CompoundInteraction(page_interaction.PageInteraction):
|
| + def __init__(self, attributes=None):
|
| + super(CompoundInteraction, self).__init__(attributes)
|
| +
|
| + def PerformInteraction(self, page, tab):
|
| + for interaction_data in self.actions:
|
| + interaction = page_interaction.FindClassWithName(
|
| + interaction_data['action'])(interaction_data)
|
| + interaction.PerformInteraction(page, tab)
|
| +
|
| +
|
| +page_interaction.RegisterClass('compound', CompoundInteraction)
|
|
|