OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 305 |
306 AccessibilityRole role = ariaRoleToWebCoreRole(ariaRole); | 306 AccessibilityRole role = ariaRoleToWebCoreRole(ariaRole); |
307 | 307 |
308 // ARIA states if an item can get focus, it should not be presentational. | 308 // ARIA states if an item can get focus, it should not be presentational. |
309 if ((role == NoneRole || role == PresentationalRole) && canSetFocusAttribute
()) | 309 if ((role == NoneRole || role == PresentationalRole) && canSetFocusAttribute
()) |
310 return UnknownRole; | 310 return UnknownRole; |
311 | 311 |
312 if (role == ButtonRole) | 312 if (role == ButtonRole) |
313 role = buttonRoleType(); | 313 role = buttonRoleType(); |
314 | 314 |
315 if (role == TextAreaRole && !ariaIsMultiline()) | 315 if (role == TextAreaRole && !isMultiline()) |
316 role = TextFieldRole; | 316 role = TextFieldRole; |
317 | 317 |
318 role = remapAriaRoleDueToParent(role); | 318 role = remapAriaRoleDueToParent(role); |
319 | 319 |
320 if (role) | 320 if (role) |
321 return role; | 321 return role; |
322 | 322 |
323 return UnknownRole; | 323 return UnknownRole; |
324 } | 324 } |
325 | 325 |
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1997 float range = maxValueForRange() - minValueForRange(); | 1997 float range = maxValueForRange() - minValueForRange(); |
1998 float value = valueForRange(); | 1998 float value = valueForRange(); |
1999 | 1999 |
2000 value += range * (percentChange / 100); | 2000 value += range * (percentChange / 100); |
2001 setValue(String::number(value)); | 2001 setValue(String::number(value)); |
2002 | 2002 |
2003 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
true); | 2003 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
true); |
2004 } | 2004 } |
2005 | 2005 |
2006 } // namespace blink | 2006 } // namespace blink |
OLD | NEW |