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

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

Issue 2393003002: reflow comments in modules/accessiblity (Closed)
Patch Set: Created 4 years, 2 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 properties->addItem( 116 properties->addItem(
117 createProperty(AXGlobalStatesEnum::Invalid, 117 createProperty(AXGlobalStatesEnum::Invalid,
118 createValue("spelling", AXValueTypeEnum::Token))); 118 createValue("spelling", AXValueTypeEnum::Token)));
119 break; 119 break;
120 case InvalidStateGrammar: 120 case InvalidStateGrammar:
121 properties->addItem( 121 properties->addItem(
122 createProperty(AXGlobalStatesEnum::Invalid, 122 createProperty(AXGlobalStatesEnum::Invalid,
123 createValue("grammar", AXValueTypeEnum::Token))); 123 createValue("grammar", AXValueTypeEnum::Token)));
124 break; 124 break;
125 default: 125 default:
126 // TODO(aboxhall): expose invalid: <nothing> and source: aria-invalid as i nvalid value 126 // TODO(aboxhall): expose invalid: <nothing> and source: aria-invalid as
127 // invalid value
127 properties->addItem(createProperty( 128 properties->addItem(createProperty(
128 AXGlobalStatesEnum::Invalid, 129 AXGlobalStatesEnum::Invalid,
129 createValue(axObject->ariaInvalidValue(), AXValueTypeEnum::String))); 130 createValue(axObject->ariaInvalidValue(), AXValueTypeEnum::String)));
130 break; 131 break;
131 } 132 }
132 } 133 }
133 134
134 bool roleAllowsMultiselectable(AccessibilityRole role) { 135 bool roleAllowsMultiselectable(AccessibilityRole role) {
135 return role == GridRole || role == ListBoxRole || role == TabListRole || 136 return role == GridRole || role == ListBoxRole || role == TabListRole ||
136 role == TreeGridRole || role == TreeRole; 137 role == TreeGridRole || role == TreeRole;
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } 512 }
512 } 513 }
513 514
514 DEFINE_TRACE(InspectorAccessibilityAgent) { 515 DEFINE_TRACE(InspectorAccessibilityAgent) {
515 visitor->trace(m_page); 516 visitor->trace(m_page);
516 visitor->trace(m_domAgent); 517 visitor->trace(m_domAgent);
517 InspectorBaseAgent::trace(visitor); 518 InspectorBaseAgent::trace(visitor);
518 } 519 }
519 520
520 } // namespace blink 521 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698