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

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

Issue 1151523009: Forward accessibility events to the automation extension process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step1
Patch Set: Handle case where RenderThread destroys AutomationMessageFilter first Created 5 years, 6 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 cbc5f2065e8ab9546840e7287bf2a19a699c3fa5..da46506564c945f7d0aec041d264ba215d2d6f9e 100644
--- a/chrome/common/extensions/chrome_extension_messages.h
+++ b/chrome/common/extensions/chrome_extension_messages.h
@@ -12,10 +12,14 @@
#include "base/strings/string16.h"
#include "base/values.h"
+#include "chrome/common/extensions/api/automation_internal.h"
#include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
#include "chrome/common/extensions/webstore_install_result.h"
#include "extensions/common/stack_frame.h"
#include "ipc/ipc_message_macros.h"
+#include "ui/accessibility/ax_enums.h"
+#include "ui/accessibility/ax_node_data.h"
+#include "ui/accessibility/ax_tree_update.h"
#include "url/gurl.h"
#define IPC_MESSAGE_START ChromeExtensionMsgStart
@@ -50,6 +54,28 @@ IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse,
std::string /* error */,
extensions::webstore_install::Result /* result */)
+IPC_STRUCT_BEGIN(ExtensionMsg_AccessibilityEventParams)
+ // ID of the accessibility tree that this event applies to.
+ IPC_STRUCT_MEMBER(int, tree_id)
+
+ // The global offset of all coordinates in this accessibility tree.
+ IPC_STRUCT_MEMBER(gfx::Vector2d, location_offset)
+
+ // The tree update.
+ IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update)
+
+ // Type of event.
+ IPC_STRUCT_MEMBER(ui::AXEvent, event_type)
+
+ // ID of the node that the event applies to.
+ IPC_STRUCT_MEMBER(int, id)
+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_ROUTED1(ExtensionMsg_AccessibilityEvent,
+ ExtensionMsg_AccessibilityEventParams)
+
// Messages sent from the renderer to the browser.
« no previous file with comments | « chrome/common/extensions/api/automation_internal.idl ('k') | chrome/renderer/extensions/automation_internal_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698