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

Unified Diff: chrome/renderer/extensions/automation_internal_custom_bindings.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/renderer/extensions/automation_internal_custom_bindings.h
diff --git a/chrome/renderer/extensions/automation_internal_custom_bindings.h b/chrome/renderer/extensions/automation_internal_custom_bindings.h
index ffa7085e3eac934f0b2a9264afce51a55b121286..1bc8a795daa7a631cf7bf71cffbc3134e78c2fb9 100644
--- a/chrome/renderer/extensions/automation_internal_custom_bindings.h
+++ b/chrome/renderer/extensions/automation_internal_custom_bindings.h
@@ -7,10 +7,16 @@
#include "base/compiler_specific.h"
#include "extensions/renderer/object_backed_native_handler.h"
+#include "ipc/ipc_message.h"
+#include "ui/accessibility/ax_tree.h"
#include "v8/include/v8.h"
+struct ExtensionMsg_AccessibilityEventParams;
+
namespace extensions {
+class AutomationMessageFilter;
+
// The native component of custom bindings for the chrome.automationInternal
// API.
class AutomationInternalCustomBindings : public ObjectBackedNativeHandler {
@@ -19,6 +25,8 @@ class AutomationInternalCustomBindings : public ObjectBackedNativeHandler {
~AutomationInternalCustomBindings() override;
+ bool OnMessageReceived(const IPC::Message& message);
+
private:
// Returns whether this extension has the "interact" permission set (either
// explicitly or implicitly after manifest parsing).
@@ -28,6 +36,15 @@ class AutomationInternalCustomBindings : public ObjectBackedNativeHandler {
// chrome.automation namespace.
void GetSchemaAdditions(const v8::FunctionCallbackInfo<v8::Value>& args);
+ // Get the routing ID for the extension.
+ void GetRoutingID(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Handle accessibility events from the browser process.
+ void OnAccessibilityEvent(
+ const ExtensionMsg_AccessibilityEventParams& params);
+
+ scoped_refptr<AutomationMessageFilter> message_filter_;
+
DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
};

Powered by Google App Engine
This is Rietveld 408576698