diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/ui/accessibility/ax_tree.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ui/accessibility/ax_tree.h')
-rw-r--r-- | chromium/ui/accessibility/ax_tree.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/chromium/ui/accessibility/ax_tree.h b/chromium/ui/accessibility/ax_tree.h index 8c1c57517ac..c47d1c20234 100644 --- a/chromium/ui/accessibility/ax_tree.h +++ b/chromium/ui/accessibility/ax_tree.h @@ -147,18 +147,14 @@ class AX_EXPORT AXTree : public AXNode::OwnerTree { // conflict with positive-numbered node IDs from tree sources. int32_t GetNextNegativeInternalNodeId(); - // Returns the pos_in_set of node. Looks in node_set_size_pos_in_set_info_map_ - // for cached value. Calculates pos_in_set and set_size for node (and all - // other nodes in the same ordered set) if no value is present in the cache. - // This function is guaranteed to be only called on nodes that can hold - // pos_in_set values, minimizing the size of the cache. - int32_t GetPosInSet(const AXNode& node, const AXNode* ordered_set) override; - // Returns the set_size of node. Looks in node_set_size_pos_in_set_info_map_ - // for cached value. Calculates pos_inset_set and set_size for node (and all - // other nodes in the same ordered set) if no value is present in the cache. - // This function is guaranteed to be only called on nodes that can hold - // set_size values, minimizing the size of the cache. - int32_t GetSetSize(const AXNode& node, const AXNode* ordered_set) override; + // Returns the PosInSet of |node|. Looks in node_set_size_pos_in_set_info_map_ + // for cached value. Calls |ComputeSetSizePosInSetAndCache|if no value is + // present in the cache. + base::Optional<int> GetPosInSet(const AXNode& node) override; + // Returns the SetSize of |node|. Looks in node_set_size_pos_in_set_info_map_ + // for cached value. Calls |ComputeSetSizePosInSetAndCache|if no value is + // present in the cache. + base::Optional<int> GetSetSize(const AXNode& node) override; Selection GetUnignoredSelection() const override; @@ -174,6 +170,11 @@ class AX_EXPORT AXTree : public AXNode::OwnerTree { // When should we initialize this? std::unique_ptr<AXLanguageDetectionManager> language_detection_manager; + // A list of intents active during a tree update/unserialization. + const std::vector<AXEventIntent>& event_intents() const { + return event_intents_; + } + private: friend class AXTableInfoTest; @@ -332,8 +333,8 @@ class AX_EXPORT AXTree : public AXNode::OwnerTree { NodeSetSizePosInSetInfo(); ~NodeSetSizePosInSetInfo(); - int32_t pos_in_set = 0; - int32_t set_size = 0; + base::Optional<int> pos_in_set; + base::Optional<int> set_size; base::Optional<int> lowest_hierarchical_level; }; @@ -388,6 +389,8 @@ class AX_EXPORT AXTree : public AXNode::OwnerTree { // Indicates if the tree represents a paginated document bool has_pagination_support_ = false; + + std::vector<AXEventIntent> event_intents_; }; } // namespace ui |