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

Side by Side Diff: content/common/accessibility_messages.h

Issue 116293005: Refactor content/ to use ui::AXNodeData instead of blink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update content/DEPS instead of subdirs Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for accessibility. 5 // IPC messages for accessibility.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/accessibility_node_data.h"
10 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
11 #include "content/common/view_message_enums.h" 10 #include "content/common/view_message_enums.h"
12 #include "content/public/common/common_param_traits.h" 11 #include "content/public/common/common_param_traits.h"
13 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
14 #include "ipc/ipc_message_utils.h" 13 #include "ipc/ipc_message_utils.h"
15 #include "ipc/ipc_param_traits.h" 14 #include "ipc/ipc_param_traits.h"
16 #include "ipc/param_traits_macros.h" 15 #include "ipc/param_traits_macros.h"
17 #include "third_party/WebKit/public/web/WebAXEnums.h" 16 #include "third_party/WebKit/public/web/WebAXEnums.h"
17 #include "ui/accessibility/ax_node_data.h"
18 18
19 #undef IPC_MESSAGE_EXPORT 19 #undef IPC_MESSAGE_EXPORT
20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
21 21
22 #define IPC_MESSAGE_START AccessibilityMsgStart 22 #define IPC_MESSAGE_START AccessibilityMsgStart
23 23
24 IPC_ENUM_TRAITS(blink::WebAXEvent) 24 IPC_ENUM_TRAITS(ui::AXEvent)
25 IPC_ENUM_TRAITS(blink::WebAXRole) 25 IPC_ENUM_TRAITS(ui::AXRole)
26 26
27 IPC_ENUM_TRAITS(content::AccessibilityNodeData::BoolAttribute) 27 IPC_ENUM_TRAITS(ui::AXBoolAttribute)
28 IPC_ENUM_TRAITS(content::AccessibilityNodeData::FloatAttribute) 28 IPC_ENUM_TRAITS(ui::AXFloatAttribute)
29 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntAttribute) 29 IPC_ENUM_TRAITS(ui::AXIntAttribute)
30 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntListAttribute) 30 IPC_ENUM_TRAITS(ui::AXIntListAttribute)
31 IPC_ENUM_TRAITS(content::AccessibilityNodeData::StringAttribute) 31 IPC_ENUM_TRAITS(ui::AXStringAttribute)
32 32
33 IPC_STRUCT_TRAITS_BEGIN(content::AccessibilityNodeData) 33 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData)
34 IPC_STRUCT_TRAITS_MEMBER(id) 34 IPC_STRUCT_TRAITS_MEMBER(id)
35 IPC_STRUCT_TRAITS_MEMBER(role) 35 IPC_STRUCT_TRAITS_MEMBER(role)
36 IPC_STRUCT_TRAITS_MEMBER(state) 36 IPC_STRUCT_TRAITS_MEMBER(state)
37 IPC_STRUCT_TRAITS_MEMBER(location) 37 IPC_STRUCT_TRAITS_MEMBER(location)
38 IPC_STRUCT_TRAITS_MEMBER(string_attributes) 38 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
39 IPC_STRUCT_TRAITS_MEMBER(int_attributes) 39 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
40 IPC_STRUCT_TRAITS_MEMBER(float_attributes) 40 IPC_STRUCT_TRAITS_MEMBER(float_attributes)
41 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) 41 IPC_STRUCT_TRAITS_MEMBER(bool_attributes)
42 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) 42 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes)
43 IPC_STRUCT_TRAITS_MEMBER(html_attributes) 43 IPC_STRUCT_TRAITS_MEMBER(html_attributes)
44 IPC_STRUCT_TRAITS_MEMBER(child_ids) 44 IPC_STRUCT_TRAITS_MEMBER(child_ids)
45 IPC_STRUCT_TRAITS_END() 45 IPC_STRUCT_TRAITS_END()
46 46
47 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) 47 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams)
48 // Vector of nodes in the tree that need to be updated before 48 // Vector of nodes in the tree that need to be updated before
49 // sending the event. 49 // sending the event.
50 IPC_STRUCT_MEMBER(std::vector<content::AccessibilityNodeData>, nodes) 50 IPC_STRUCT_MEMBER(std::vector<ui::AXNodeData>, nodes)
51 51
52 // Type of event. 52 // Type of event.
53 IPC_STRUCT_MEMBER(blink::WebAXEvent, event_type) 53 IPC_STRUCT_MEMBER(ui::AXEvent, event_type)
54 54
55 // ID of the node that the event applies to. 55 // ID of the node that the event applies to.
56 IPC_STRUCT_MEMBER(int, id) 56 IPC_STRUCT_MEMBER(int, id)
57 IPC_STRUCT_END() 57 IPC_STRUCT_END()
58 58
59 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams) 59 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams)
60 // ID of the object whose location is changing. 60 // ID of the object whose location is changing.
61 IPC_STRUCT_MEMBER(int, id) 61 IPC_STRUCT_MEMBER(int, id)
62 62
63 // The object's new location, in frame-relative coordinates (same 63 // The object's new location, in frame-relative coordinates (same
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Sent to notify the browser about renderer accessibility events. 112 // Sent to notify the browser about renderer accessibility events.
113 // The browser responds with a AccessibilityMsg_Events_ACK. 113 // The browser responds with a AccessibilityMsg_Events_ACK.
114 IPC_MESSAGE_ROUTED1( 114 IPC_MESSAGE_ROUTED1(
115 AccessibilityHostMsg_Events, 115 AccessibilityHostMsg_Events,
116 std::vector<AccessibilityHostMsg_EventParams>) 116 std::vector<AccessibilityHostMsg_EventParams>)
117 117
118 // Sent to update the browser of the location of accessibility objects. 118 // Sent to update the browser of the location of accessibility objects.
119 IPC_MESSAGE_ROUTED1( 119 IPC_MESSAGE_ROUTED1(
120 AccessibilityHostMsg_LocationChanges, 120 AccessibilityHostMsg_LocationChanges,
121 std::vector<AccessibilityHostMsg_LocationChangeParams>) 121 std::vector<AccessibilityHostMsg_LocationChangeParams>)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/common/accessibility_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698