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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 | 124 |
125 // Determine the accessibility object under a given point and reply with | 125 // Determine the accessibility object under a given point and reply with |
126 // a AccessibilityHostMsg_HitTestResult with the same id. | 126 // a AccessibilityHostMsg_HitTestResult with the same id. |
127 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest, | 127 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest, |
128 gfx::Point /* location to test */) | 128 gfx::Point /* location to test */) |
129 | 129 |
130 // Tells the render view that a AccessibilityHostMsg_Events | 130 // Tells the render view that a AccessibilityHostMsg_Events |
131 // message was processed and it can send addition events. | 131 // message was processed and it can send addition events. |
132 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Events_ACK) | 132 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Events_ACK) |
133 | 133 |
134 // Kill the renderer because we got a fatal error in the accessibility tree. | 134 // Tell the renderer to reset and send a new accessibility tree from |
135 // scratch because the browser is out of sync. This should be rare, and | |
136 // if we need reset the same renderer too many times we just kill it. | |
137 // After sending a reset, the browser ignores incoming accessibility IPCs | |
138 // until it receives one with is_reset=true. Conversely, it ignores IPCs | |
139 // with is_reset=true if it was not expecting a reset. | |
140 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Reset) | |
141 | |
142 // Kill the renderer because we got a fatal error in the accessibility tree | |
143 // and we've already reset too many times. | |
135 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) | 144 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) |
136 | 145 |
137 // Messages sent from the renderer to the browser. | 146 // Messages sent from the renderer to the browser. |
138 | 147 |
139 // Sent to notify the browser about renderer accessibility events. | 148 // Sent to notify the browser about renderer accessibility events. |
140 // The browser responds with a AccessibilityMsg_Events_ACK. | 149 // The browser responds with a AccessibilityMsg_Events_ACK. |
141 IPC_MESSAGE_ROUTED1( | 150 // The second parameter, is_reset, is set if this IPC was sent in response |
151 // to a reset request from the browser. When the browser requests a reset, | |
152 // it ignores incoming IPCs until it sees one with is_reset=true. Any other | |
153 // time, it ignores IPCs with is_reset=true. | |
154 IPC_MESSAGE_ROUTED2( | |
142 AccessibilityHostMsg_Events, | 155 AccessibilityHostMsg_Events, |
143 std::vector<AccessibilityHostMsg_EventParams>) | 156 std::vector<AccessibilityHostMsg_EventParams> /* events */, |
157 bool /* is_reset */) | |
Tom Sepez
2014/10/02 16:50:49
Are you sure you want a bool instead of a reset se
dmazzoni
2014/10/02 21:51:13
I was debating this. I went ahead and gave it a ra
| |
144 | 158 |
145 // Sent to update the browser of the location of accessibility objects. | 159 // Sent to update the browser of the location of accessibility objects. |
146 IPC_MESSAGE_ROUTED1( | 160 IPC_MESSAGE_ROUTED1( |
147 AccessibilityHostMsg_LocationChanges, | 161 AccessibilityHostMsg_LocationChanges, |
148 std::vector<AccessibilityHostMsg_LocationChangeParams>) | 162 std::vector<AccessibilityHostMsg_LocationChangeParams>) |
OLD | NEW |