Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1111)

Side by Side Diff: content/renderer/accessibility/renderer_accessibility_focus_only.cc

Issue 84293002: LOG(INFO) -> VLOG(0) in content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/common/accessibility_node_data.h" 7 #include "content/common/accessibility_node_data.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 if (node_has_focus) { 125 if (node_has_focus) {
126 child.state = 126 child.state =
127 (1 << blink::WebAXStateFocusable) | 127 (1 << blink::WebAXStateFocusable) |
128 (1 << blink::WebAXStateFocused); 128 (1 << blink::WebAXStateFocused);
129 if (!node_is_editable_text) 129 if (!node_is_editable_text)
130 child.state |= (1 << blink::WebAXStateReadonly); 130 child.state |= (1 << blink::WebAXStateReadonly);
131 } 131 }
132 132
133 #ifndef NDEBUG 133 #ifndef NDEBUG
134 if (logging_) { 134 if (logging_) {
135 LOG(INFO) << "Accessibility update: \n" 135 VLOG(0) << "Accessibility update: \n"
136 << "routing id=" << routing_id() 136 << "routing id=" << routing_id()
137 << " event=" 137 << " event="
138 << AccessibilityEventToString(event.event_type) 138 << AccessibilityEventToString(event.event_type)
139 << "\n" << event.nodes[0].DebugString(true); 139 << "\n" << event.nodes[0].DebugString(true);
140 } 140 }
141 #endif 141 #endif
142 142
143 Send(new AccessibilityHostMsg_Events(routing_id(), events)); 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698