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

Side by Side Diff: Source/modules/accessibility/AXNodeObject.cpp

Issue 1045693002: Expose multiline attribute from blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: modifying ariaIsMultiline to isMultiline to support html textarea element Created 5 years, 8 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 /* 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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/modules/accessibility/AXObject.h » ('j') | Source/modules/accessibility/AXObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698