diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-05-20 09:47:09 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-06-07 11:15:42 +0000 |
commit | 189d4fd8fad9e3c776873be51938cd31a42b6177 (patch) | |
tree | 6497caeff5e383937996768766ab3bb2081a40b2 /chromium/ui/accessibility/ax_action_target.h | |
parent | 8bc75099d364490b22f43a7ce366b366c08f4164 (diff) | |
download | qtwebengine-chromium-189d4fd8fad9e3c776873be51938cd31a42b6177.tar.gz |
BASELINE: Update Chromium to 90.0.4430.221
Change-Id: Iff4d9d18d2fcf1a576f3b1f453010f744a232920
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ui/accessibility/ax_action_target.h')
-rw-r--r-- | chromium/ui/accessibility/ax_action_target.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/chromium/ui/accessibility/ax_action_target.h b/chromium/ui/accessibility/ax_action_target.h index fe2797afde1..2fd2379ba29 100644 --- a/chromium/ui/accessibility/ax_action_target.h +++ b/chromium/ui/accessibility/ax_action_target.h @@ -11,6 +11,8 @@ namespace ui { +struct AXActionData; + // AXActionTarget is an abstract interface that can be used to carry out // accessibility actions on nodes from an AXTreeSource without knowing the // concrete class of that AXTreeSource. @@ -21,25 +23,18 @@ class AXActionTarget { enum class Type { kNull, kBlink, kPdf }; virtual Type GetType() const = 0; - virtual bool ClearAccessibilityFocus() const = 0; - virtual bool Click() const = 0; - virtual bool Decrement() const = 0; - virtual bool Increment() const = 0; - virtual bool Focus() const = 0; + virtual bool PerformAction(const AXActionData& action_data) const = 0; + virtual gfx::Rect GetRelativeBounds() const = 0; virtual gfx::Point GetScrollOffset() const = 0; virtual gfx::Point MinimumScrollOffset() const = 0; virtual gfx::Point MaximumScrollOffset() const = 0; - virtual bool SetAccessibilityFocus() const = 0; virtual void SetScrollOffset(const gfx::Point& point) const = 0; virtual bool SetSelected(bool selected) const = 0; virtual bool SetSelection(const AXActionTarget* anchor_object, int anchor_offset, const AXActionTarget* focus_object, int focus_offset) const = 0; - virtual bool SetSequentialFocusNavigationStartingPoint() const = 0; - virtual bool SetValue(const std::string& value) const = 0; - virtual bool ShowContextMenu() const = 0; // Make this object visible by scrolling as many nested scrollable views as // needed. virtual bool ScrollToMakeVisible() const = 0; @@ -50,9 +45,6 @@ class AXActionTarget { ax::mojom::ScrollAlignment horizontal_scroll_alignment, ax::mojom::ScrollAlignment vertical_scroll_alignment, ax::mojom::ScrollBehavior scroll_behavior) const = 0; - // Scroll this object to a given point in global coordinates of the top-level - // window. - virtual bool ScrollToGlobalPoint(const gfx::Point& point) const = 0; protected: AXActionTarget() = default; |