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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.cpp

Issue 2793913007: Switch to equalIgnoringASCIICase throughout modules/accessibility (Closed)
Patch Set: Created 3 years, 8 months 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
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "modules/accessibility/InspectorAccessibilityAgent.h" 5 #include "modules/accessibility/InspectorAccessibilityAgent.h"
6 6
7 #include "core/HTMLNames.h" 7 #include "core/HTMLNames.h"
8 #include "core/dom/AXObjectCache.h" 8 #include "core/dom/AXObjectCache.h"
9 #include "core/dom/DOMNodeIds.h" 9 #include "core/dom/DOMNodeIds.h"
10 #include "core/dom/Element.h" 10 #include "core/dom/Element.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 289 }
290 290
291 if (role == ToggleButtonRole) { 291 if (role == ToggleButtonRole) {
292 if (!axObject.isPressed()) { 292 if (!axObject.isPressed()) {
293 properties.addItem( 293 properties.addItem(
294 createProperty(AXWidgetStatesEnum::Pressed, 294 createProperty(AXWidgetStatesEnum::Pressed,
295 createValue("false", AXValueTypeEnum::Tristate))); 295 createValue("false", AXValueTypeEnum::Tristate)));
296 } else { 296 } else {
297 const AtomicString& pressedAttr = 297 const AtomicString& pressedAttr =
298 axObject.getAttribute(HTMLNames::aria_pressedAttr); 298 axObject.getAttribute(HTMLNames::aria_pressedAttr);
299 if (equalIgnoringCase(pressedAttr, "mixed")) 299 if (equalIgnoringASCIICase(pressedAttr, "mixed"))
300 properties.addItem( 300 properties.addItem(
301 createProperty(AXWidgetStatesEnum::Pressed, 301 createProperty(AXWidgetStatesEnum::Pressed,
302 createValue("mixed", AXValueTypeEnum::Tristate))); 302 createValue("mixed", AXValueTypeEnum::Tristate)));
303 else 303 else
304 properties.addItem( 304 properties.addItem(
305 createProperty(AXWidgetStatesEnum::Pressed, 305 createProperty(AXWidgetStatesEnum::Pressed,
306 createValue("true", AXValueTypeEnum::Tristate))); 306 createValue("true", AXValueTypeEnum::Tristate)));
307 } 307 }
308 } 308 }
309 309
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 } 732 }
733 } 733 }
734 734
735 DEFINE_TRACE(InspectorAccessibilityAgent) { 735 DEFINE_TRACE(InspectorAccessibilityAgent) {
736 visitor->trace(m_page); 736 visitor->trace(m_page);
737 visitor->trace(m_domAgent); 737 visitor->trace(m_domAgent);
738 InspectorBaseAgent::trace(visitor); 738 InspectorBaseAgent::trace(visitor);
739 } 739 }
740 740
741 } // namespace blink 741 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXTableCell.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698