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

Side by Side Diff: Tools/DumpRenderTree/chromium/TestRunner/AccessibilityUIElementChromium.cpp

Issue 10984006: Merge 129036 - AX: A few control types are returning the wrong answer for isReadOnly (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/AccessibilityUIElementChromium.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 bindProperty("isSelectable", &AccessibilityUIElement::isSelectableGetterCall back); 341 bindProperty("isSelectable", &AccessibilityUIElement::isSelectableGetterCall back);
342 bindProperty("isMultiSelectable", &AccessibilityUIElement::isMultiSelectable GetterCallback); 342 bindProperty("isMultiSelectable", &AccessibilityUIElement::isMultiSelectable GetterCallback);
343 bindProperty("isSelectedOptionActive", &AccessibilityUIElement::isSelectedOp tionActiveGetterCallback); 343 bindProperty("isSelectedOptionActive", &AccessibilityUIElement::isSelectedOp tionActiveGetterCallback);
344 bindProperty("isExpanded", &AccessibilityUIElement::isExpandedGetterCallback ); 344 bindProperty("isExpanded", &AccessibilityUIElement::isExpandedGetterCallback );
345 bindProperty("isChecked", &AccessibilityUIElement::isCheckedGetterCallback); 345 bindProperty("isChecked", &AccessibilityUIElement::isCheckedGetterCallback);
346 bindProperty("isVisible", &AccessibilityUIElement::isVisibleGetterCallback); 346 bindProperty("isVisible", &AccessibilityUIElement::isVisibleGetterCallback);
347 bindProperty("isOffScreen", &AccessibilityUIElement::isOffScreenGetterCallba ck); 347 bindProperty("isOffScreen", &AccessibilityUIElement::isOffScreenGetterCallba ck);
348 bindProperty("isCollapsed", &AccessibilityUIElement::isCollapsedGetterCallba ck); 348 bindProperty("isCollapsed", &AccessibilityUIElement::isCollapsedGetterCallba ck);
349 bindProperty("hasPopup", &AccessibilityUIElement::hasPopupGetterCallback); 349 bindProperty("hasPopup", &AccessibilityUIElement::hasPopupGetterCallback);
350 bindProperty("isValid", &AccessibilityUIElement::isValidGetterCallback); 350 bindProperty("isValid", &AccessibilityUIElement::isValidGetterCallback);
351 bindProperty("isReadOnly", &AccessibilityUIElement::isReadOnlyGetterCallback );
351 bindProperty("orientation", &AccessibilityUIElement::orientationGetterCallba ck); 352 bindProperty("orientation", &AccessibilityUIElement::orientationGetterCallba ck);
352 353
353 // 354 //
354 // Methods 355 // Methods
355 // 356 //
356 357
357 bindMethod("allAttributes", &AccessibilityUIElement::allAttributesCallback); 358 bindMethod("allAttributes", &AccessibilityUIElement::allAttributesCallback);
358 bindMethod("attributesOfLinkedUIElements", &AccessibilityUIElement::attribut esOfLinkedUIElementsCallback); 359 bindMethod("attributesOfLinkedUIElements", &AccessibilityUIElement::attribut esOfLinkedUIElementsCallback);
359 bindMethod("attributesOfDocumentLinks", &AccessibilityUIElement::attributesO fDocumentLinksCallback); 360 bindMethod("attributesOfDocumentLinks", &AccessibilityUIElement::attributesO fDocumentLinksCallback);
360 bindMethod("attributesOfChildren", &AccessibilityUIElement::attributesOfChil drenCallback); 361 bindMethod("attributesOfChildren", &AccessibilityUIElement::attributesOfChil drenCallback);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 void AccessibilityUIElement::hasPopupGetterCallback(CppVariant* result) 578 void AccessibilityUIElement::hasPopupGetterCallback(CppVariant* result)
578 { 579 {
579 result->set(accessibilityObject().ariaHasPopup()); 580 result->set(accessibilityObject().ariaHasPopup());
580 } 581 }
581 582
582 void AccessibilityUIElement::isValidGetterCallback(CppVariant* result) 583 void AccessibilityUIElement::isValidGetterCallback(CppVariant* result)
583 { 584 {
584 result->set(!accessibilityObject().isDetached()); 585 result->set(!accessibilityObject().isDetached());
585 } 586 }
586 587
588 void AccessibilityUIElement::isReadOnlyGetterCallback(CppVariant* result)
589 {
590 result->set(accessibilityObject().isReadOnly());
591 }
592
587 void AccessibilityUIElement::orientationGetterCallback(CppVariant* result) 593 void AccessibilityUIElement::orientationGetterCallback(CppVariant* result)
588 { 594 {
589 result->set(getOrientation(accessibilityObject())); 595 result->set(getOrientation(accessibilityObject()));
590 } 596 }
591 597
592 // 598 //
593 // Methods 599 // Methods
594 // 600 //
595 601
596 void AccessibilityUIElement::allAttributesCallback(const CppArgumentList&, CppVa riant* result) 602 void AccessibilityUIElement::allAttributesCallback(const CppArgumentList&, CppVa riant* result)
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 m_elements.append(element); 895 m_elements.append(element);
890 return element; 896 return element;
891 } 897 }
892 898
893 AccessibilityUIElement* AccessibilityUIElementList::createRoot(const WebAccessib ilityObject& object) 899 AccessibilityUIElement* AccessibilityUIElementList::createRoot(const WebAccessib ilityObject& object)
894 { 900 {
895 AccessibilityUIElement* element = new RootAccessibilityUIElement(object, thi s); 901 AccessibilityUIElement* element = new RootAccessibilityUIElement(object, thi s);
896 m_elements.append(element); 902 m_elements.append(element);
897 return element; 903 return element;
898 } 904 }
OLDNEW
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/AccessibilityUIElementChromium.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698