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

Unified Diff: chrome/renderer/extensions/automation_internal_custom_bindings.cc

Issue 1151523009: Forward accessibility events to the automation extension process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step1
Patch Set: Created 5 years, 7 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.cc
diff --git a/chrome/renderer/extensions/automation_internal_custom_bindings.cc b/chrome/renderer/extensions/automation_internal_custom_bindings.cc
index 60f6647c82bad6c9044abb29f4ea6fe26b7a0ca1..53a3f58bca2785c579fea05cadaccdd1eae2caa9 100644
--- a/chrome/renderer/extensions/automation_internal_custom_bindings.cc
+++ b/chrome/renderer/extensions/automation_internal_custom_bindings.cc
@@ -7,12 +7,16 @@
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
+#include "chrome/common/extensions/chrome_extension_messages.h"
#include "chrome/common/extensions/manifest_handlers/automation.h"
#include "content/public/child/v8_value_converter.h"
+#include "content/public/renderer/render_frame.h"
+#include "content/public/renderer/render_view.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest.h"
#include "extensions/renderer/script_context.h"
#include "ui/accessibility/ax_enums.h"
+#include "ui/accessibility/ax_node.h"
namespace {
@@ -49,6 +53,16 @@ AutomationInternalCustomBindings::AutomationInternalCustomBindings(
AutomationInternalCustomBindings::~AutomationInternalCustomBindings() {
}
+bool AutomationInternalCustomBindings::OnMessageReceived(
+ const IPC::Message& message) {
+ IPC_BEGIN_MESSAGE_MAP(AutomationInternalCustomBindings, message)
+ IPC_MESSAGE_HANDLER(ExtensionMsg_AccessibilityEvent,
+ OnAccessibilityEvent)
+ IPC_MESSAGE_UNHANDLED(CHECK(false) << "Unhandled IPC message")
not at google - send to devlin 2015/06/02 23:59:25 How does this work out? (btw, personally I prefer
dmazzoni 2015/06/04 20:07:39 Moot now that this is a MessageFilter.
+ IPC_END_MESSAGE_MAP()
+ return true;
+}
+
void AutomationInternalCustomBindings::IsInteractPermitted(
const v8::FunctionCallbackInfo<v8::Value>& args) {
const Extension* extension = context()->extension();
@@ -82,4 +96,9 @@ void AutomationInternalCustomBindings::GetSchemaAdditions(
args.GetReturnValue().Set(additions);
}
+void AutomationInternalCustomBindings::OnAccessibilityEvent(
+ const ExtensionMsg_AccessibilityEventParams& params) {
+ // TODO(dmazzoni): finish implementing this.
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698