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

Unified Diff: webkit/tools/test_shell/accessibility_ui_element.cc

Issue 503050: Added a new method isChecked to AccessibilityUIElement... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/accessibility_ui_element.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/accessibility_ui_element.cc
===================================================================
--- webkit/tools/test_shell/accessibility_ui_element.cc (revision 34877)
+++ webkit/tools/test_shell/accessibility_ui_element.cc (working copy)
@@ -299,6 +299,7 @@
BindProperty("isEnabled", &AccessibilityUIElement::IsEnabledGetterCallback);
BindProperty("isRequired", &is_required_);
BindProperty("isSelected", &AccessibilityUIElement::IsSelectedGetterCallback);
+ BindProperty("isChecked", &AccessibilityUIElement::IsCheckedGetterCallback);
BindProperty("valueDescription", &value_description_);
BindFallbackMethod(&AccessibilityUIElement::FallbackCallback);
@@ -502,6 +503,10 @@
result->SetNull();
}
+void AccessibilityUIElement::IsCheckedGetterCallback(CppVariant* result) {
+ result->Set(accessibility_object().isChecked());
+}
+
void AccessibilityUIElement::RoleGetterCallback(CppVariant* result) {
result->Set(GetRole(accessibility_object()));
}
Property changes on: webkit\tools\test_shell\accessibility_ui_element.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/tools/test_shell/accessibility_ui_element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698