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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_ACTION_ADAPTER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_ACTION_ADAPTER_H_
10 // Adapts an object to receive actions from the Automation extension API.
11 class AutomationActionAdapter
{
13 // Performs a default action (e.g. click, check) on the target node.
14 virtual void DoDefault(int32 id
) = 0;
16 // Performs a focus action on the target node.
17 virtual void Focus(int32 id
) = 0;
19 // Makes the node visible by scrolling; does not change nodes from hidden to
21 virtual void MakeVisible(int32 id
) = 0;
23 // Sets selection for a start and end index (usually only relevant on text
25 virtual void SetSelection(int32 id
, int32 start
, int32 end
) = 0;
28 } // namespace extensions
30 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_ACTION_ADAPTER_H_