| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 | 446 |
| 447 bool AXObject::isPasswordFieldAndShouldHideValue() const | 447 bool AXObject::isPasswordFieldAndShouldHideValue() const |
| 448 { | 448 { |
| 449 Settings* settings = document()->settings(); | 449 Settings* settings = document()->settings(); |
| 450 if (!settings || settings->accessibilityPasswordValuesEnabled()) | 450 if (!settings || settings->accessibilityPasswordValuesEnabled()) |
| 451 return false; | 451 return false; |
| 452 | 452 |
| 453 return isPasswordField(); | 453 return isPasswordField(); |
| 454 } | 454 } |
| 455 | 455 |
| 456 bool AXObject::isTextControl() const |
| 457 { |
| 458 switch (roleValue()) { |
| 459 case TextFieldRole: |
| 460 case ComboBoxRole: |
| 461 case SearchBoxRole: |
| 462 return true; |
| 463 default: |
| 464 return false; |
| 465 } |
| 466 } |
| 467 |
| 456 bool AXObject::isClickable() const | 468 bool AXObject::isClickable() const |
| 457 { | 469 { |
| 458 switch (roleValue()) { | 470 switch (roleValue()) { |
| 459 case ButtonRole: | 471 case ButtonRole: |
| 460 case CheckBoxRole: | 472 case CheckBoxRole: |
| 461 case ColorWellRole: | 473 case ColorWellRole: |
| 462 case ComboBoxRole: | 474 case ComboBoxRole: |
| 463 case ImageMapLinkRole: | 475 case ImageMapLinkRole: |
| 464 case LinkRole: | 476 case LinkRole: |
| 465 case ListBoxOptionRole: | 477 case ListBoxOptionRole: |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 } | 1299 } |
| 1288 | 1300 |
| 1289 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) | 1301 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) |
| 1290 { | 1302 { |
| 1291 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo
leNameVector(); | 1303 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo
leNameVector(); |
| 1292 | 1304 |
| 1293 return internalRoleNameVector->at(role); | 1305 return internalRoleNameVector->at(role); |
| 1294 } | 1306 } |
| 1295 | 1307 |
| 1296 } // namespace blink | 1308 } // namespace blink |
| OLD | NEW |