OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |