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

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: m Created 4 years, 4 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 8
9 namespace content { 9 namespace content {
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 if (o.isRequired()) 58 if (o.isRequired())
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_DISABLED);
69 69
70 if (o.isSelected()) 70 if (o.isSelected())
71 state |= (1 << ui::AX_STATE_SELECTED); 71 state |= (1 << ui::AX_STATE_SELECTED);
72 72
73 if (o.isRichlyEditable()) 73 if (o.isRichlyEditable())
74 state |= (1 << ui::AX_STATE_RICHLY_EDITABLE); 74 state |= (1 << ui::AX_STATE_RICHLY_EDITABLE);
75 75
76 if (o.isVisited()) 76 if (o.isVisited())
77 state |= (1 << ui::AX_STATE_VISITED); 77 state |= (1 << ui::AX_STATE_VISITED);
78 78
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 case blink::WebAXDescriptionFromPlaceholder: 545 case blink::WebAXDescriptionFromPlaceholder:
546 return ui::AX_DESCRIPTION_FROM_PLACEHOLDER; 546 return ui::AX_DESCRIPTION_FROM_PLACEHOLDER;
547 case blink::WebAXDescriptionFromRelatedElement: 547 case blink::WebAXDescriptionFromRelatedElement:
548 return ui::AX_DESCRIPTION_FROM_RELATED_ELEMENT; 548 return ui::AX_DESCRIPTION_FROM_RELATED_ELEMENT;
549 } 549 }
550 NOTREACHED(); 550 NOTREACHED();
551 return ui::AX_DESCRIPTION_FROM_NONE; 551 return ui::AX_DESCRIPTION_FROM_NONE;
552 } 552 }
553 553
554 } // namespace content. 554 } // namespace content.
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win_unittest.cc ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698