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

Unified Diff: content/public/browser/render_frame_host.h

Issue 2410333005: Create AXAction and AXActionData as a way to simplify accessibility actions (Closed)
Patch Set: Fix Android compile 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/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 2d44e2c7c6af9677cc687f5a655e66ac94b99e80..86eb250450a4540c0870d08fb0dcc0225adc99b8 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -15,6 +15,7 @@
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
+#include "ui/accessibility/ax_enums.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
#include "url/gurl.h"
@@ -29,6 +30,10 @@ class InterfaceRegistry;
class InterfaceProvider;
}
+namespace ui {
+struct AXActionData;
+}
+
namespace content {
class AssociatedInterfaceProvider;
class AssociatedInterfaceRegistry;
@@ -143,17 +148,10 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
virtual void ExecuteJavaScriptWithUserGestureForTests(
const base::string16& javascript) = 0;
- // Accessibility actions - these send a message to the RenderFrame
- // to trigger an action on an accessibility object.
- virtual void AccessibilitySetFocus(int acc_obj_id) = 0;
- virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0;
- virtual void AccessibilityScrollToMakeVisible(
- int acc_obj_id, const gfx::Rect& subfocus) = 0;
- virtual void AccessibilityShowContextMenu(int acc_obj_id) = 0;
- virtual void AccessibilitySetSelection(int anchor_object_id,
- int anchor_offset,
- int focus_object_id,
- int focus_offset) = 0;
+ // Send a message to the RenderFrame to trigger an action on an
+ // accessibility object.
+ virtual void AccessibilityPerformAction(ui::AXAction action,
+ const ui::AXActionData& data) = 0;
// This is called when the user has committed to the given find in page
// request (e.g. by pressing enter or by clicking on the next / previous

Powered by Google App Engine
This is Rietveld 408576698