summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
authorklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 20:12:25 +0000
committerklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 20:12:25 +0000
commit6a983b4e4d28c1e3841f39febeb6a9dd681b53b3 (patch)
treea4b5d6a01066c026338d071076db9ff7dae210f3 /chrome/common/render_messages.h
parentfe5a8a4ff6f5758f8dbf7e6e9578df97fb8633db (diff)
downloadchromium_src-6a983b4e4d28c1e3841f39febeb6a9dd681b53b3.zip
chromium_src-6a983b4e4d28c1e3841f39febeb6a9dd681b53b3.tar.gz
chromium_src-6a983b4e4d28c1e3841f39febeb6a9dd681b53b3.tar.bz2
Removes all use of COM and dependencies on Windows-specific classes (including the use of AccessibleBase and AccessibleDocument) in the glue accessibility implementation.Introduces the GlueAccessibilityObject, which serves as a platform-independent wrapper directly around WebKit's AccessibilityObject (also platoform-independent).Updates naming/comments to reflect the independence of IAccessible both in glue and (where appropriate) in the browser-side accessibility.
Review URL: http://codereview.chromium.org/46013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h38
1 files changed, 17 insertions, 21 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 0053921..9c4af43 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -14,7 +14,6 @@
#include "base/ref_counted.h"
#include "base/shared_memory.h"
#include "chrome/browser/renderer_host/resource_handler.h"
-#include "chrome/common/accessibility.h"
#include "chrome/common/filter_policy.h"
#include "chrome/common/ipc_message_utils.h"
#include "chrome/common/modal_dialog_event.h"
@@ -34,6 +33,7 @@
#include "webkit/glue/password_form_dom_manager.h"
#include "webkit/glue/resource_loader_bridge.h"
#include "webkit/glue/screen_info.h"
+#include "webkit/glue/webaccessibility.h"
#include "webkit/glue/webdropdata.h"
#include "webkit/glue/webinputevent.h"
#include "webkit/glue/webplugin.h"
@@ -594,30 +594,30 @@ struct ParamTraits<ViewHostMsg_UpdateFeedList_Params> {
};
template <>
-struct ParamTraits<AccessibilityInParams> {
- typedef AccessibilityInParams param_type;
+struct ParamTraits<webkit_glue::WebAccessibility::InParams> {
+ typedef webkit_glue::WebAccessibility::InParams param_type;
static void Write(Message* m, const param_type& p) {
- WriteParam(m, p.iaccessible_id);
- WriteParam(m, p.iaccessible_function_id);
- WriteParam(m, p.input_variant_lval);
+ WriteParam(m, p.object_id);
+ WriteParam(m, p.function_id);
+ WriteParam(m, p.child_id);
WriteParam(m, p.input_long1);
WriteParam(m, p.input_long2);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return
- ReadParam(m, iter, &p->iaccessible_id) &&
- ReadParam(m, iter, &p->iaccessible_function_id) &&
- ReadParam(m, iter, &p->input_variant_lval) &&
+ ReadParam(m, iter, &p->object_id) &&
+ ReadParam(m, iter, &p->function_id) &&
+ ReadParam(m, iter, &p->child_id) &&
ReadParam(m, iter, &p->input_long1) &&
ReadParam(m, iter, &p->input_long2);
}
static void Log(const param_type& p, std::wstring* l) {
l->append(L"(");
- LogParam(p.iaccessible_id, l);
+ LogParam(p.object_id, l);
l->append(L", ");
- LogParam(p.iaccessible_function_id, l);
+ LogParam(p.function_id, l);
l->append(L", ");
- LogParam(p.input_variant_lval, l);
+ LogParam(p.child_id, l);
l->append(L", ");
LogParam(p.input_long1, l);
l->append(L", ");
@@ -627,11 +627,10 @@ struct ParamTraits<AccessibilityInParams> {
};
template <>
-struct ParamTraits<AccessibilityOutParams> {
- typedef AccessibilityOutParams param_type;
+struct ParamTraits<webkit_glue::WebAccessibility::OutParams> {
+ typedef webkit_glue::WebAccessibility::OutParams param_type;
static void Write(Message* m, const param_type& p) {
- WriteParam(m, p.iaccessible_id);
- WriteParam(m, p.output_variant_lval);
+ WriteParam(m, p.object_id);
WriteParam(m, p.output_long1);
WriteParam(m, p.output_long2);
WriteParam(m, p.output_long3);
@@ -641,8 +640,7 @@ struct ParamTraits<AccessibilityOutParams> {
}
static bool Read(const Message* m, void** iter, param_type* p) {
return
- ReadParam(m, iter, &p->iaccessible_id) &&
- ReadParam(m, iter, &p->output_variant_lval) &&
+ ReadParam(m, iter, &p->object_id) &&
ReadParam(m, iter, &p->output_long1) &&
ReadParam(m, iter, &p->output_long2) &&
ReadParam(m, iter, &p->output_long3) &&
@@ -652,9 +650,7 @@ struct ParamTraits<AccessibilityOutParams> {
}
static void Log(const param_type& p, std::wstring* l) {
l->append(L"(");
- LogParam(p.iaccessible_id, l);
- l->append(L", ");
- LogParam(p.output_variant_lval, l);
+ LogParam(p.object_id, l);
l->append(L", ");
LogParam(p.output_long1, l);
l->append(L", ");