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

Unified Diff: chrome/common/extensions/chrome_extension_messages.h

Issue 2255093005: Pass accessible location change messages to the automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative fix to cast_shell Created 4 years, 4 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: chrome/common/extensions/chrome_extension_messages.h
diff --git a/chrome/common/extensions/chrome_extension_messages.h b/chrome/common/extensions/chrome_extension_messages.h
index a5236b3c38c4711c41b3efcef1723d3352783bdc..a15e1e986ce8cb4b72abf887ac8d52b7cb027ddf 100644
--- a/chrome/common/extensions/chrome_extension_messages.h
+++ b/chrome/common/extensions/chrome_extension_messages.h
@@ -21,6 +21,7 @@
#include "ipc/ipc_message_macros.h"
#include "ui/accessibility/ax_enums.h"
#include "ui/accessibility/ax_node_data.h"
+#include "ui/accessibility/ax_relative_bounds.h"
#include "ui/accessibility/ax_tree_data.h"
#include "ui/accessibility/ax_tree_update.h"
#include "ui/gfx/transform.h"
@@ -118,12 +119,29 @@ IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityEventParams)
IPC_STRUCT_MEMBER(int, id)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityLocationChangeParams)
+ // ID of the accessibility tree that this event applies to.
+ IPC_STRUCT_MEMBER(int, tree_id)
+
+ // ID of the object whose location is changing.
+ IPC_STRUCT_MEMBER(int, id)
+
+ // The object's new location info.
+ IPC_STRUCT_MEMBER(ui::AXRelativeBounds, new_location)
+IPC_STRUCT_END()
+
// Forward an accessibility message to an extension process where an
// extension is using the automation API to listen for accessibility events.
IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent,
ExtensionMsg_AccessibilityEventParams,
bool /* is_active_profile */)
+// Forward an accessibility location change message to an extension process
+// where an extension is using the automation API to listen for
+// accessibility events.
+IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange,
+ ExtensionMsg_AccessibilityLocationChangeParams)
+
// Messages sent from the renderer to the browser.

Powered by Google App Engine
This is Rietveld 408576698