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

Unified Diff: third_party/WebKit/Source/web/WebAXObject.cpp

Issue 2694903010: AX checked state changes (Closed)
Patch Set: git cl try Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebAXObject.cpp
diff --git a/third_party/WebKit/Source/web/WebAXObject.cpp b/third_party/WebKit/Source/web/WebAXObject.cpp
index 91eeccd79dc5859cd59a077df7850baf2e33b08a..71831f744a4404d51f3e72e9f0dd6ba1a52d6fe8 100644
--- a/third_party/WebKit/Source/web/WebAXObject.cpp
+++ b/third_party/WebKit/Source/web/WebAXObject.cpp
@@ -280,18 +280,18 @@ WebAXAriaCurrentState WebAXObject::AriaCurrentState() const {
return static_cast<WebAXAriaCurrentState>(private_->GetAriaCurrentState());
}
-bool WebAXObject::IsButtonStateMixed() const {
+bool WebAXObject::IsCheckable() const {
if (IsDetached())
return false;
- return private_->CheckboxOrRadioValue() == kButtonStateMixed;
+ return private_->IsCheckable();
}
-bool WebAXObject::IsChecked() const {
+WebAXCheckedState WebAXObject::CheckedState() const {
if (IsDetached())
- return false;
+ return WebAXCheckedFalse;
- return private_->IsChecked();
+ return static_cast<WebAXCheckedState>(private_->CheckedState());
}
bool WebAXObject::IsClickable() const {

Powered by Google App Engine
This is Rietveld 408576698