| 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/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/view_message_enums.h" |
| 10 #include "content/public/common/common_param_traits.h" | 11 #include "content/public/common/common_param_traits.h" |
| 11 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
| 12 #include "ipc/ipc_message_utils.h" | 13 #include "ipc/ipc_message_utils.h" |
| 13 #include "ipc/ipc_param_traits.h" | 14 #include "ipc/ipc_param_traits.h" |
| 14 #include "ipc/param_traits_macros.h" | 15 #include "ipc/param_traits_macros.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
| 17 #include "webkit/glue/webaccessibility.h" | 18 #include "webkit/glue/webaccessibility.h" |
| 18 | 19 |
| 19 #undef IPC_MESSAGE_EXPORT | 20 #undef IPC_MESSAGE_EXPORT |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 82 |
| 82 // Text was removed in a node with text content. | 83 // Text was removed in a node with text content. |
| 83 AccessibilityNotificationTextRemoved, | 84 AccessibilityNotificationTextRemoved, |
| 84 | 85 |
| 85 // The node value has changed. | 86 // The node value has changed. |
| 86 AccessibilityNotificationValueChangedD, | 87 AccessibilityNotificationValueChangedD, |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 #endif // CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ | 90 #endif // CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ |
| 90 | 91 |
| 92 IPC_ENUM_TRAITS(AccessibilityMode) |
| 91 IPC_ENUM_TRAITS(AccessibilityNotification) | 93 IPC_ENUM_TRAITS(AccessibilityNotification) |
| 92 | 94 |
| 93 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::BoolAttribute) | 95 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::BoolAttribute) |
| 94 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::FloatAttribute) | 96 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::FloatAttribute) |
| 95 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute) | 97 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute) |
| 96 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) | 98 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) |
| 97 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) | 99 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) |
| 98 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute) | 100 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute) |
| 99 | 101 |
| 100 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility) | 102 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 126 // The accessibility node tree. | 128 // The accessibility node tree. |
| 127 IPC_STRUCT_MEMBER(webkit_glue::WebAccessibility, acc_tree) | 129 IPC_STRUCT_MEMBER(webkit_glue::WebAccessibility, acc_tree) |
| 128 | 130 |
| 129 // Whether children are included in this tree, otherwise it's just an | 131 // Whether children are included in this tree, otherwise it's just an |
| 130 // update to this one node and existing children are left in place. | 132 // update to this one node and existing children are left in place. |
| 131 IPC_STRUCT_MEMBER(bool, includes_children) | 133 IPC_STRUCT_MEMBER(bool, includes_children) |
| 132 IPC_STRUCT_END() | 134 IPC_STRUCT_END() |
| 133 | 135 |
| 134 // Messages sent from the browser to the renderer. | 136 // Messages sent from the browser to the renderer. |
| 135 | 137 |
| 136 // Enable accessibility in the renderer process. | 138 // Change the accessibility mode in the renderer process. |
| 137 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Enable) | 139 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetMode, |
| 140 AccessibilityMode) |
| 138 | 141 |
| 139 // Relay a request from assistive technology to set focus to a given node. | 142 // Relay a request from assistive technology to set focus to a given node. |
| 140 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetFocus, | 143 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetFocus, |
| 141 int /* object id */) | 144 int /* object id */) |
| 142 | 145 |
| 143 // Relay a request from assistive technology to perform the default action | 146 // Relay a request from assistive technology to perform the default action |
| 144 // on a given node. | 147 // on a given node. |
| 145 IPC_MESSAGE_ROUTED1(AccessibilityMsg_DoDefaultAction, | 148 IPC_MESSAGE_ROUTED1(AccessibilityMsg_DoDefaultAction, |
| 146 int /* object id */) | 149 int /* object id */) |
| 147 | 150 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 172 // message was processed and it can send addition notifications. | 175 // message was processed and it can send addition notifications. |
| 173 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Notifications_ACK) | 176 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Notifications_ACK) |
| 174 | 177 |
| 175 // Messages sent from the renderer to the browser. | 178 // Messages sent from the renderer to the browser. |
| 176 | 179 |
| 177 // Sent to notify the browser about renderer accessibility notifications. | 180 // Sent to notify the browser about renderer accessibility notifications. |
| 178 // The browser responds with a AccessibilityMsg_Notifications_ACK. | 181 // The browser responds with a AccessibilityMsg_Notifications_ACK. |
| 179 IPC_MESSAGE_ROUTED1( | 182 IPC_MESSAGE_ROUTED1( |
| 180 AccessibilityHostMsg_Notifications, | 183 AccessibilityHostMsg_Notifications, |
| 181 std::vector<AccessibilityHostMsg_NotificationParams>) | 184 std::vector<AccessibilityHostMsg_NotificationParams>) |
| OLD | NEW |