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 #include "content/renderer/renderer_accessibility_complete.h" | 5 #include "content/renderer/renderer_accessibility_complete.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "content/renderer/accessibility_node_serializer.h" | 9 #include "content/renderer/accessibility_node_serializer.h" |
10 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // up additional notifications. | 215 // up additional notifications. |
216 MessageLoop::current()->PostTask( | 216 MessageLoop::current()->PostTask( |
217 FROM_HERE, | 217 FROM_HERE, |
218 base::Bind( | 218 base::Bind( |
219 &RendererAccessibilityComplete:: | 219 &RendererAccessibilityComplete:: |
220 SendPendingAccessibilityNotifications, | 220 SendPendingAccessibilityNotifications, |
221 weak_factory_.GetWeakPtr())); | 221 weak_factory_.GetWeakPtr())); |
222 } | 222 } |
223 } | 223 } |
224 | 224 |
| 225 RendererAccessibilityComplete::BrowserTreeNode::BrowserTreeNode() : id(0) {} |
| 226 |
| 227 RendererAccessibilityComplete::BrowserTreeNode::~BrowserTreeNode() {} |
| 228 |
225 void RendererAccessibilityComplete::SendPendingAccessibilityNotifications() { | 229 void RendererAccessibilityComplete::SendPendingAccessibilityNotifications() { |
226 const WebDocument& document = GetMainDocument(); | 230 const WebDocument& document = GetMainDocument(); |
227 if (document.isNull()) | 231 if (document.isNull()) |
228 return; | 232 return; |
229 | 233 |
230 if (pending_notifications_.empty()) | 234 if (pending_notifications_.empty()) |
231 return; | 235 return; |
232 | 236 |
233 ack_pending_ = true; | 237 ack_pending_ = true; |
234 | 238 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 if (type == AccessibilityNotificationChildrenChanged || | 530 if (type == AccessibilityNotificationChildrenChanged || |
527 type == AccessibilityNotificationLoadComplete || | 531 type == AccessibilityNotificationLoadComplete || |
528 type == AccessibilityNotificationLiveRegionChanged || | 532 type == AccessibilityNotificationLiveRegionChanged || |
529 type == AccessibilityNotificationSelectedChildrenChanged) { | 533 type == AccessibilityNotificationSelectedChildrenChanged) { |
530 return true; | 534 return true; |
531 } | 535 } |
532 return false; | 536 return false; |
533 } | 537 } |
534 | 538 |
535 } // namespace content | 539 } // namespace content |
OLD | NEW |