Chromium Code Reviews| Index: Source/core/accessibility/AXObject.cpp |
| diff --git a/Source/core/accessibility/AXObject.cpp b/Source/core/accessibility/AXObject.cpp |
| index 89f6e47099b1cfdc9644fefe8fbceac54b1d5804..59ff4d6d60ad959a3cc337c4e9e8caf5ccecc622 100644 |
| --- a/Source/core/accessibility/AXObject.cpp |
| +++ b/Source/core/accessibility/AXObject.cpp |
| @@ -34,6 +34,7 @@ |
| #include "core/editing/VisibleUnits.h" |
| #include "core/editing/htmlediting.h" |
| #include "core/frame/LocalFrame.h" |
| +#include "core/frame/Settings.h" |
| #include "core/rendering/RenderListItem.h" |
| #include "core/rendering/RenderTheme.h" |
| #include "core/rendering/RenderView.h" |
| @@ -214,6 +215,18 @@ bool AXObject::isMenuRelated() const |
| } |
| } |
| +bool AXObject::isPasswordFieldAndShouldHideValue() const |
| +{ |
| + if (!isPasswordField()) |
| + return false; |
| + |
| + Settings* settings = document()->settings(); |
| + if (!settings || settings->accessibilityPasswordValuesEnabled()) |
| + return false; |
| + |
| + return true; |
|
Mike West
2014/11/07 09:51:28
Nit: This seems slightly more readable if you drop
dmazzoni
2014/11/07 22:33:42
Done.
|
| +} |
| + |
| bool AXObject::isTextControl() const |
| { |
| switch (roleValue()) { |