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/accessibility/renderer_accessibility_focus_only.h" | 5 #include "content/renderer/accessibility/renderer_accessibility_focus_only.h" |
6 | 6 |
7 #include "content/renderer/render_frame_impl.h" | 7 #include "content/renderer/render_frame_impl.h" |
8 #include "content/renderer/render_view_impl.h" | 8 #include "content/renderer/render_view_impl.h" |
9 #include "third_party/WebKit/public/web/WebDocument.h" | 9 #include "third_party/WebKit/public/web/WebDocument.h" |
10 #include "third_party/WebKit/public/web/WebElement.h" | 10 #include "third_party/WebKit/public/web/WebElement.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 if (logging_) { | 133 if (logging_) { |
134 VLOG(0) << "Accessibility update: \n" | 134 VLOG(0) << "Accessibility update: \n" |
135 << "routing id=" << routing_id() | 135 << "routing id=" << routing_id() |
136 << " event=" | 136 << " event=" |
137 << AccessibilityEventToString(event.event_type) | 137 << AccessibilityEventToString(event.event_type) |
138 << "\n" << event.nodes[0].DebugString(true); | 138 << "\n" << event.nodes[0].DebugString(true); |
139 } | 139 } |
140 **/ | 140 **/ |
141 #endif | 141 #endif |
142 | 142 |
143 Send(new AccessibilityHostMsg_Events(routing_id(), events, false)); | 143 Send(new AccessibilityHostMsg_Events(routing_id(), events)); |
144 | 144 |
145 // Increment the id, wrap back when we get past a million. | 145 // Increment the id, wrap back when we get past a million. |
146 next_id_++; | 146 next_id_++; |
147 if (next_id_ > 1000000) | 147 if (next_id_ > 1000000) |
148 next_id_ = kInitialId; | 148 next_id_ = kInitialId; |
149 } | 149 } |
150 | 150 |
151 } // namespace content | 151 } // namespace content |
OLD | NEW |