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

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

Issue 2000403003: [forbots] IWYU for ax_enums.h Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/blink_ax_enum_conversion.h" 5 #include "content/renderer/accessibility/blink_ax_enum_conversion.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/accessibility/ax_enums.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 uint32_t AXStateFromBlink(const blink::WebAXObject& o) { 12 uint32_t AXStateFromBlink(const blink::WebAXObject& o) {
12 uint32_t state = 0; 13 uint32_t state = 0;
13 if (o.isChecked()) 14 if (o.isChecked())
14 state |= (1 << ui::AX_STATE_CHECKED); 15 state |= (1 << ui::AX_STATE_CHECKED);
15 16
16 blink::WebAXExpanded expanded = o.isExpanded(); 17 blink::WebAXExpanded expanded = o.isExpanded();
17 if (expanded) { 18 if (expanded) {
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 case blink::WebAXDescriptionFromPlaceholder: 546 case blink::WebAXDescriptionFromPlaceholder:
546 return ui::AX_DESCRIPTION_FROM_PLACEHOLDER; 547 return ui::AX_DESCRIPTION_FROM_PLACEHOLDER;
547 case blink::WebAXDescriptionFromRelatedElement: 548 case blink::WebAXDescriptionFromRelatedElement:
548 return ui::AX_DESCRIPTION_FROM_RELATED_ELEMENT; 549 return ui::AX_DESCRIPTION_FROM_RELATED_ELEMENT;
549 } 550 }
550 NOTREACHED(); 551 NOTREACHED();
551 return ui::AX_DESCRIPTION_FROM_NONE; 552 return ui::AX_DESCRIPTION_FROM_NONE;
552 } 553 }
553 554
554 } // namespace content. 555 } // namespace content.
OLDNEW
« no previous file with comments | « content/renderer/accessibility/blink_ax_enum_conversion.h ('k') | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698