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/common/view_message_enums.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Relay a request from assistive technology to make a given object | 151 // Relay a request from assistive technology to make a given object |
152 // visible by scrolling as many scrollable containers as possible. | 152 // visible by scrolling as many scrollable containers as possible. |
153 // In addition, if it's not possible to make the entire object visible, | 153 // In addition, if it's not possible to make the entire object visible, |
154 // scroll so that the |subfocus| rect is visible at least. The subfocus | 154 // scroll so that the |subfocus| rect is visible at least. The subfocus |
155 // rect is in local coordinates of the object itself. | 155 // rect is in local coordinates of the object itself. |
156 IPC_MESSAGE_ROUTED2(AccessibilityMsg_ScrollToMakeVisible, | 156 IPC_MESSAGE_ROUTED2(AccessibilityMsg_ScrollToMakeVisible, |
157 int /* object id */, | 157 int /* object id */, |
158 gfx::Rect /* subfocus */) | 158 gfx::Rect /* subfocus */) |
159 | 159 |
160 // Relay a request from assistive technology to move a given object | 160 // Relay a request from assistive technology to move a given object |
161 // to a specific location, in the tab content area coordinate space, i.e. | 161 // to a specific location, in the WebContents area coordinate space, i.e. |
162 // (0, 0) is the top-left corner of the tab contents. | 162 // (0, 0) is the top-left corner of the WebContents. |
163 IPC_MESSAGE_ROUTED2(AccessibilityMsg_ScrollToPoint, | 163 IPC_MESSAGE_ROUTED2(AccessibilityMsg_ScrollToPoint, |
164 int /* object id */, | 164 int /* object id */, |
165 gfx::Point /* new location */) | 165 gfx::Point /* new location */) |
166 | 166 |
167 // Relay a request from assistive technology to set the cursor or | 167 // Relay a request from assistive technology to set the cursor or |
168 // selection within an editable text element. | 168 // selection within an editable text element. |
169 IPC_MESSAGE_ROUTED3(AccessibilityMsg_SetTextSelection, | 169 IPC_MESSAGE_ROUTED3(AccessibilityMsg_SetTextSelection, |
170 int /* object id */, | 170 int /* object id */, |
171 int /* New start offset */, | 171 int /* New start offset */, |
172 int /* New end offset */) | 172 int /* New end offset */) |
173 | 173 |
174 // Tells the render view that a AccessibilityHostMsg_Notifications | 174 // Tells the render view that a AccessibilityHostMsg_Notifications |
175 // message was processed and it can send addition notifications. | 175 // message was processed and it can send addition notifications. |
176 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Notifications_ACK) | 176 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Notifications_ACK) |
177 | 177 |
178 // Messages sent from the renderer to the browser. | 178 // Messages sent from the renderer to the browser. |
179 | 179 |
180 // Sent to notify the browser about renderer accessibility notifications. | 180 // Sent to notify the browser about renderer accessibility notifications. |
181 // The browser responds with a AccessibilityMsg_Notifications_ACK. | 181 // The browser responds with a AccessibilityMsg_Notifications_ACK. |
182 IPC_MESSAGE_ROUTED1( | 182 IPC_MESSAGE_ROUTED1( |
183 AccessibilityHostMsg_Notifications, | 183 AccessibilityHostMsg_Notifications, |
184 std::vector<AccessibilityHostMsg_NotificationParams>) | 184 std::vector<AccessibilityHostMsg_NotificationParams>) |
OLD | NEW |