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

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

Issue 2151713002: Less strict checked state changes and introduce disabled state for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Read disabled state. Created 4 years, 5 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 | « chrome/common/extensions/api/automation.idl ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8
9 namespace content { 9 namespace content {
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 state |= (1 << ui::AX_STATE_REQUIRED); 59 state |= (1 << ui::AX_STATE_REQUIRED);
60 60
61 if (o.canSetSelectedAttribute()) 61 if (o.canSetSelectedAttribute())
62 state |= (1 << ui::AX_STATE_SELECTABLE); 62 state |= (1 << ui::AX_STATE_SELECTABLE);
63 63
64 if (o.isEditable()) 64 if (o.isEditable())
65 state |= (1 << ui::AX_STATE_EDITABLE); 65 state |= (1 << ui::AX_STATE_EDITABLE);
66 66
67 if (o.isEnabled()) 67 if (o.isEnabled())
68 state |= (1 << ui::AX_STATE_ENABLED); 68 state |= (1 << ui::AX_STATE_ENABLED);
69 else
70 state |= (1 << ui::AX_STATE_DISABLED);
dmazzoni 2016/07/18 04:23:37 nit: indentation
69 71
70 if (o.isSelected()) 72 if (o.isSelected())
71 state |= (1 << ui::AX_STATE_SELECTED); 73 state |= (1 << ui::AX_STATE_SELECTED);
72 74
73 if (o.isRichlyEditable()) 75 if (o.isRichlyEditable())
74 state |= (1 << ui::AX_STATE_RICHLY_EDITABLE); 76 state |= (1 << ui::AX_STATE_RICHLY_EDITABLE);
75 77
76 if (o.isVisited()) 78 if (o.isVisited())
77 state |= (1 << ui::AX_STATE_VISITED); 79 state |= (1 << ui::AX_STATE_VISITED);
78 80
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 case blink::WebAXDescriptionFromPlaceholder: 547 case blink::WebAXDescriptionFromPlaceholder:
546 return ui::AX_DESCRIPTION_FROM_PLACEHOLDER; 548 return ui::AX_DESCRIPTION_FROM_PLACEHOLDER;
547 case blink::WebAXDescriptionFromRelatedElement: 549 case blink::WebAXDescriptionFromRelatedElement:
548 return ui::AX_DESCRIPTION_FROM_RELATED_ELEMENT; 550 return ui::AX_DESCRIPTION_FROM_RELATED_ELEMENT;
549 } 551 }
550 NOTREACHED(); 552 NOTREACHED();
551 return ui::AX_DESCRIPTION_FROM_NONE; 553 return ui::AX_DESCRIPTION_FROM_NONE;
552 } 554 }
553 555
554 } // namespace content. 556 } // namespace content.
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698