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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.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
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/InspectorTypeBuilderHelper.h" 5 #include "modules/accessibility/InspectorTypeBuilderHelper.h"
6 6
7 #include "core/dom/DOMNodeIds.h" 7 #include "core/dom/DOMNodeIds.h"
8 #include "modules/accessibility/AXObject.h" 8 #include "modules/accessibility/AXObject.h"
9 #include "modules/accessibility/AXObjectCacheImpl.h" 9 #include "modules/accessibility/AXObjectCacheImpl.h"
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 case AXNameFromValue: 173 case AXNameFromValue:
174 return AXValueSourceTypeEnum::Attribute; 174 return AXValueSourceTypeEnum::Attribute;
175 case AXNameFromContents: 175 case AXNameFromContents:
176 return AXValueSourceTypeEnum::Contents; 176 return AXValueSourceTypeEnum::Contents;
177 case AXNameFromPlaceholder: 177 case AXNameFromPlaceholder:
178 return AXValueSourceTypeEnum::Placeholder; 178 return AXValueSourceTypeEnum::Placeholder;
179 case AXNameFromCaption: 179 case AXNameFromCaption:
180 case AXNameFromRelatedElement: 180 case AXNameFromRelatedElement:
181 return AXValueSourceTypeEnum::RelatedElement; 181 return AXValueSourceTypeEnum::RelatedElement;
182 default: 182 default:
183 return AXValueSourceTypeEnum:: 183 return AXValueSourceTypeEnum::Implicit; // TODO(aboxhall): what to do
184 Implicit; // TODO(aboxhall): what to do here? 184 // here?
185 } 185 }
186 } 186 }
187 187
188 String nativeSourceType(AXTextFromNativeHTML nativeSource) { 188 String nativeSourceType(AXTextFromNativeHTML nativeSource) {
189 switch (nativeSource) { 189 switch (nativeSource) {
190 case AXTextFromNativeHTMLFigcaption: 190 case AXTextFromNativeHTMLFigcaption:
191 return AXValueNativeSourceTypeEnum::Figcaption; 191 return AXValueNativeSourceTypeEnum::Figcaption;
192 case AXTextFromNativeHTMLLabel: 192 case AXTextFromNativeHTMLLabel:
193 return AXValueNativeSourceTypeEnum::Label; 193 return AXValueNativeSourceTypeEnum::Label;
194 case AXTextFromNativeHTMLLabelFor: 194 case AXTextFromNativeHTMLLabelFor:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 if (nameSource.superseded) 234 if (nameSource.superseded)
235 valueSource->setSuperseded(true); 235 valueSource->setSuperseded(true);
236 if (nameSource.invalid) 236 if (nameSource.invalid)
237 valueSource->setInvalid(true); 237 valueSource->setInvalid(true);
238 if (nameSource.nativeSource != AXTextFromNativeHTMLUninitialized) 238 if (nameSource.nativeSource != AXTextFromNativeHTMLUninitialized)
239 valueSource->setNativeSource(nativeSourceType(nameSource.nativeSource)); 239 valueSource->setNativeSource(nativeSourceType(nameSource.nativeSource));
240 return valueSource; 240 return valueSource;
241 } 241 }
242 242
243 } // namespace blink 243 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698