Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2965)

Unified Diff: chrome/browser/extensions/api/automation_internal/automation_action_adapter.h

Issue 2430473003: Revert of Create AXAction and AXActionData as a way to simplify accessibility actions (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation_internal/automation_internal_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/automation_internal/automation_action_adapter.h
diff --git a/chrome/browser/extensions/api/automation_internal/automation_action_adapter.h b/chrome/browser/extensions/api/automation_internal/automation_action_adapter.h
index a5323cd990b94c8e5613f118da01d0105b386c15..f62069836299096730ac0c47010daa19a4b1bff2 100644
--- a/chrome/browser/extensions/api/automation_internal/automation_action_adapter.h
+++ b/chrome/browser/extensions/api/automation_internal/automation_action_adapter.h
@@ -7,20 +7,32 @@
#include <stdint.h>
-#include "ui/accessibility/ax_enums.h"
#include "ui/gfx/geometry/point.h"
-
-namespace ui {
-struct AXActionData;
-}
namespace extensions {
// Adapts an object to receive actions from the Automation extension API.
class AutomationActionAdapter {
public:
- // Performs an action on the target node.
- virtual void PerformAction(const ui::AXActionData& data) = 0;
+ // Performs a default action (e.g. click, check) on the target node.
+ virtual void DoDefault(int32_t id) = 0;
+
+ // Performs a focus action on the target node.
+ virtual void Focus(int32_t id) = 0;
+
+ // Makes the node visible by scrolling; does not change nodes from hidden to
+ // shown.
+ virtual void MakeVisible(int32_t id) = 0;
+
+ // Sets selection for anchor and focus node/offset pairs. Also used to set
+ // selection in text fields.
+ virtual void SetSelection(int32_t anchor_id,
+ int32_t anchor_offset,
+ int32_t focus_id,
+ int32_t focus_offset) = 0;
+
+ // Shows the context menu resulting from a right click.
+ virtual void ShowContextMenu(int32_t id) = 0;
};
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation_internal/automation_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698