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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp

Issue 2863703003: A11y: Rename AXSupportedAction to AXDefaultActionVerb. (Closed)
Patch Set: Rebase. 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
Index: third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp
index 39bfb8dde2daae98e48f5f9ac9f885e932f03086..5240cd4df82c643cca1b98162edc402144fa6d45 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp
@@ -1008,28 +1008,28 @@ AccessibilityOrientation AXObjectImpl::Orientation() const {
return kAccessibilityOrientationUndefined;
}
-AXSupportedAction AXObjectImpl::Action() const {
+AXDefaultActionVerb AXObjectImpl::Action() const {
if (!ActionElement())
- return AXSupportedAction::kNone;
+ return AXDefaultActionVerb::kNone;
switch (RoleValue()) {
case kButtonRole:
case kToggleButtonRole:
- return AXSupportedAction::kPress;
+ return AXDefaultActionVerb::kPress;
case kTextFieldRole:
- return AXSupportedAction::kActivate;
+ return AXDefaultActionVerb::kActivate;
case kRadioButtonRole:
- return AXSupportedAction::kSelect;
+ return AXDefaultActionVerb::kSelect;
case kCheckBoxRole:
case kSwitchRole:
- return CheckedState() == kButtonStateOff ? AXSupportedAction::kCheck
- : AXSupportedAction::kUncheck;
+ return CheckedState() == kButtonStateOff ? AXDefaultActionVerb::kCheck
+ : AXDefaultActionVerb::kUncheck;
case kLinkRole:
- return AXSupportedAction::kJump;
+ return AXDefaultActionVerb::kJump;
case kPopUpButtonRole:
- return AXSupportedAction::kOpen;
+ return AXDefaultActionVerb::kOpen;
default:
- return AXSupportedAction::kClick;
+ return AXDefaultActionVerb::kClick;
}
}
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObjectImpl.h ('k') | third_party/WebKit/Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698