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

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

Issue 1413423003: Move some AX attrs from AXNodeData to AXTreeData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 84c579d8a494dc03e44a932f6250579806aacbf8..c2bc78d2f8ddea0e3597663fdea3163210e36d68 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -90,7 +90,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
public BrowserAccessibilityDelegate {
public:
using AXTreeSnapshotCallback =
- base::Callback<void(const ui::AXTreeUpdate<ui::AXNodeData>&)>;
+ base::Callback<void(
+ const ui::AXTreeUpdate&)>;
// Keeps track of the state of the RenderFrameHostImpl, particularly with
// respect to swap out.
@@ -558,7 +559,7 @@ class CONTENT_EXPORT RenderFrameHostImpl
const AccessibilityHostMsg_FindInPageResultParams& params);
void OnAccessibilitySnapshotResponse(
int callback_id,
- const ui::AXTreeUpdate<AXContentNodeData>& snapshot);
+ const AXContentTreeUpdate& snapshot);
void OnToggleFullscreen(bool enter_fullscreen);
void OnDidStartLoading(bool to_different_document);
void OnDidStopLoading();
@@ -609,6 +610,11 @@ class CONTENT_EXPORT RenderFrameHostImpl
void AXContentNodeDataToAXNodeData(const AXContentNodeData& src,
ui::AXNodeData* dst);
+ // Convert the content-layer-specific AXContentTreeData to a general-purpose
+ // AXTreeData structure.
+ void AXContentTreeDataToAXTreeData(const AXContentTreeData& src,
+ ui::AXTreeData* dst);
+
// Returns the RenderWidgetHostView used for accessibility. For subframes,
// this function will return the platform view on the main frame; for main
// frames, it will return the current frame's view.
« no previous file with comments | « content/browser/accessibility/snapshot_ax_tree_browsertest.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