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

Unified Diff: content/renderer/accessibility/render_accessibility_impl.h

Issue 2426193003: Re-land: Create AXAction and AXActionData as a way to simplify accessibility actions (Closed)
Patch Set: Rebase Created 4 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/renderer/accessibility/render_accessibility_impl.h
diff --git a/content/renderer/accessibility/render_accessibility_impl.h b/content/renderer/accessibility/render_accessibility_impl.h
index 77e0b1b88bb54ced8a02379a0f0ffdae70ff3598..fba44c7dfa4fb4c17a6f5ac1d05ca43d8b60d5b0 100644
--- a/content/renderer/accessibility/render_accessibility_impl.h
+++ b/content/renderer/accessibility/render_accessibility_impl.h
@@ -27,6 +27,10 @@ class WebDocument;
class WebNode;
};
+namespace ui {
+struct AXActionData;
+}
+
namespace content {
class RenderFrameImpl;
@@ -115,23 +119,13 @@ class CONTENT_EXPORT RenderAccessibilityImpl
void OnDestruct() override;
// Handlers for messages from the browser to the renderer.
- void OnDoDefaultAction(int acc_obj_id);
+ void OnPerformAction(const ui::AXActionData& data);
void OnEventsAck(int ack_token);
void OnFatalError();
- void OnHitTest(gfx::Point point);
- void OnSetAccessibilityFocus(int acc_obj_id);
void OnReset(int reset_token);
- void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus);
- void OnScrollToPoint(int acc_obj_id, gfx::Point point);
- void OnSetScrollOffset(int acc_obj_id, gfx::Point offset);
- void OnSetFocus(int acc_obj_id);
- void OnSetSelection(int anchor_acc_obj_id,
- int anchor_offset,
- int focus_acc_obj_id,
- int focus_offset);
- void OnSetValue(int acc_obj_id, base::string16 value);
- void OnShowContextMenu(int acc_obj_id);
+ void OnHitTest(const gfx::Point& point);
+ void OnSetAccessibilityFocus(const blink::WebAXObject& obj);
void AddPluginTreeToUpdate(AXContentTreeUpdate* update);
void ScrollPlugin(int id_to_make_visible);
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | content/renderer/accessibility/render_accessibility_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698