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

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

Issue 2707263011: Test aria-pressed=mixed on windows (Closed)
Patch Set: git cl try Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/web/WebAXEnums.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de6fcdde2f09775dea30c3e9102bccfd33510ddb..b51a21ff7d9766e7958f937cf877fd94899a6735 100644
--- a/third_party/WebKit/Source/web/WebAXObject.cpp
+++ b/third_party/WebKit/Source/web/WebAXObject.cpp
@@ -290,11 +290,18 @@ bool WebAXObject::IsCheckable() const {
return private_->IsCheckable();
}
-WebAXCheckedState WebAXObject::CheckedState() const {
+WebAXButtonState WebAXObject::CheckedState() const {
if (IsDetached())
- return WebAXCheckedFalse;
+ return WebAXButtonStateOff;
- return static_cast<WebAXCheckedState>(private_->CheckedState());
+ return static_cast<WebAXButtonState>(private_->CheckedState());
+}
+
+WebAXButtonState WebAXObject::PressedState() const {
+ if (IsDetached())
+ return WebAXButtonStateOff;
+
+ return static_cast<WebAXButtonState>(private_->PressedState());
}
bool WebAXObject::IsClickable() const {
@@ -388,13 +395,6 @@ bool WebAXObject::IsPasswordField() const {
return private_->IsPasswordField();
}
-bool WebAXObject::IsPressed() const {
- if (IsDetached())
- return false;
-
- return private_->IsPressed();
-}
-
bool WebAXObject::IsReadOnly() const {
if (IsDetached())
return false;
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/web/WebAXEnums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698