| OLD | NEW |
| 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" | 9 #include "content/common/accessibility_node_data.h" |
| 10 #include "content/common/accessibility_notification.h" | 10 #include "content/common/accessibility_notification.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/common/view_message_enums.h" | 12 #include "content/common/view_message_enums.h" |
| 13 #include "content/public/common/common_param_traits.h" | 13 #include "content/public/common/common_param_traits.h" |
| 14 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
| 15 #include "ipc/ipc_message_utils.h" | 15 #include "ipc/ipc_message_utils.h" |
| 16 #include "ipc/ipc_param_traits.h" | 16 #include "ipc/ipc_param_traits.h" |
| 17 #include "ipc/param_traits_macros.h" | 17 #include "ipc/param_traits_macros.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(AccessibilityNotification) | 24 IPC_ENUM_TRAITS(AccessibilityNotification) |
| 25 | 25 |
| 26 IPC_ENUM_TRAITS(content::AccessibilityNodeData::BoolAttribute) | 26 IPC_ENUM_TRAITS(content::AccessibilityNodeData::BoolAttribute) |
| 27 IPC_ENUM_TRAITS(content::AccessibilityNodeData::FloatAttribute) | 27 IPC_ENUM_TRAITS(content::AccessibilityNodeData::FloatAttribute) |
| 28 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntAttribute) | 28 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntAttribute) |
| 29 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntListAttribute) |
| 29 IPC_ENUM_TRAITS(content::AccessibilityNodeData::Role) | 30 IPC_ENUM_TRAITS(content::AccessibilityNodeData::Role) |
| 30 IPC_ENUM_TRAITS(content::AccessibilityNodeData::State) | 31 IPC_ENUM_TRAITS(content::AccessibilityNodeData::State) |
| 31 IPC_ENUM_TRAITS(content::AccessibilityNodeData::StringAttribute) | 32 IPC_ENUM_TRAITS(content::AccessibilityNodeData::StringAttribute) |
| 32 | 33 |
| 33 IPC_STRUCT_TRAITS_BEGIN(content::AccessibilityNodeData) | 34 IPC_STRUCT_TRAITS_BEGIN(content::AccessibilityNodeData) |
| 34 IPC_STRUCT_TRAITS_MEMBER(id) | 35 IPC_STRUCT_TRAITS_MEMBER(id) |
| 35 IPC_STRUCT_TRAITS_MEMBER(name) | |
| 36 IPC_STRUCT_TRAITS_MEMBER(value) | |
| 37 IPC_STRUCT_TRAITS_MEMBER(role) | 36 IPC_STRUCT_TRAITS_MEMBER(role) |
| 38 IPC_STRUCT_TRAITS_MEMBER(state) | 37 IPC_STRUCT_TRAITS_MEMBER(state) |
| 39 IPC_STRUCT_TRAITS_MEMBER(location) | 38 IPC_STRUCT_TRAITS_MEMBER(location) |
| 40 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 39 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
| 41 IPC_STRUCT_TRAITS_MEMBER(int_attributes) | 40 IPC_STRUCT_TRAITS_MEMBER(int_attributes) |
| 42 IPC_STRUCT_TRAITS_MEMBER(float_attributes) | 41 IPC_STRUCT_TRAITS_MEMBER(float_attributes) |
| 43 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) | 42 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) |
| 43 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) |
| 44 IPC_STRUCT_TRAITS_MEMBER(html_attributes) |
| 44 IPC_STRUCT_TRAITS_MEMBER(child_ids) | 45 IPC_STRUCT_TRAITS_MEMBER(child_ids) |
| 45 IPC_STRUCT_TRAITS_MEMBER(indirect_child_ids) | |
| 46 IPC_STRUCT_TRAITS_MEMBER(html_attributes) | |
| 47 IPC_STRUCT_TRAITS_MEMBER(line_breaks) | |
| 48 IPC_STRUCT_TRAITS_MEMBER(cell_ids) | |
| 49 IPC_STRUCT_TRAITS_MEMBER(unique_cell_ids) | |
| 50 IPC_STRUCT_TRAITS_END() | 46 IPC_STRUCT_TRAITS_END() |
| 51 | 47 |
| 52 IPC_STRUCT_BEGIN(AccessibilityHostMsg_NotificationParams) | 48 IPC_STRUCT_BEGIN(AccessibilityHostMsg_NotificationParams) |
| 53 // Vector of nodes in the tree that need to be updated before | 49 // Vector of nodes in the tree that need to be updated before |
| 54 // sending the notification. | 50 // sending the notification. |
| 55 IPC_STRUCT_MEMBER(std::vector<content::AccessibilityNodeData>, nodes) | 51 IPC_STRUCT_MEMBER(std::vector<content::AccessibilityNodeData>, nodes) |
| 56 | 52 |
| 57 // Type of notification. | 53 // Type of notification. |
| 58 IPC_STRUCT_MEMBER(AccessibilityNotification, notification_type) | 54 IPC_STRUCT_MEMBER(AccessibilityNotification, notification_type) |
| 59 | 55 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Kill the renderer because we got a fatal error in the accessibility tree. | 99 // Kill the renderer because we got a fatal error in the accessibility tree. |
| 104 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) | 100 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) |
| 105 | 101 |
| 106 // Messages sent from the renderer to the browser. | 102 // Messages sent from the renderer to the browser. |
| 107 | 103 |
| 108 // Sent to notify the browser about renderer accessibility notifications. | 104 // Sent to notify the browser about renderer accessibility notifications. |
| 109 // The browser responds with a AccessibilityMsg_Notifications_ACK. | 105 // The browser responds with a AccessibilityMsg_Notifications_ACK. |
| 110 IPC_MESSAGE_ROUTED1( | 106 IPC_MESSAGE_ROUTED1( |
| 111 AccessibilityHostMsg_Notifications, | 107 AccessibilityHostMsg_Notifications, |
| 112 std::vector<AccessibilityHostMsg_NotificationParams>) | 108 std::vector<AccessibilityHostMsg_NotificationParams>) |
| OLD | NEW |