Index: content/browser/frame_host/render_frame_host_impl.h |
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h |
index bf8bac3e2558069d78174ae44fcec164baed616f..c8bfa7bef238da0a6e77061b34d24a1f776a4f64 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -467,6 +467,11 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
void SetAccessibilityCallbackForTesting( |
const base::Callback<void(ui::AXEvent, int)>& callback); |
+ // Called when the metadata about the accessibility tree for this frame |
+ // changes due to a browser-side change, as opposed to due to an IPC from |
+ // a renderer. |
+ void UpdateAXTreeData(); |
+ |
// Send a message to the render process to change text track style settings. |
void SetTextTrackSettings(const FrameMsg_TextTrackSettings_Params& params); |
@@ -707,8 +712,7 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
// Convert the content-layer-specific AXContentTreeData to a general-purpose |
// AXTreeData structure. |
- void AXContentTreeDataToAXTreeData(const AXContentTreeData& src, |
- ui::AXTreeData* dst); |
+ void AXContentTreeDataToAXTreeData(ui::AXTreeData* dst); |
// Returns the RenderWidgetHostView used for accessibility. For subframes, |
// this function will return the platform view on the main frame; for main |
@@ -881,6 +885,9 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, |
// we don't keep trying to reset forever. |
int accessibility_reset_count_; |
+ // The last AXContentTreeData for this frame received from the RenderFrame. |
+ AXContentTreeData ax_content_tree_data_; |
+ |
// The mapping from callback id to corresponding callback for pending |
// accessibility tree snapshot calls created by RequestAXTreeSnapshot. |
std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_; |