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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1761633002: One accessibility tree per frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix is-richly-editable test Created 4 years, 9 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 | « content/browser/frame_host/frame_tree.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698