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

Side by Side Diff: third_party/WebKit/Source/web/WebAXObject.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 Document* document = private_->GetDocument(); 162 Document* document = private_->GetDocument();
163 if (!document || !document->View()) 163 if (!document || !document->View())
164 return false; 164 return false;
165 document->View()->UpdateLifecycleToCompositingCleanPlusScrolling(); 165 document->View()->UpdateLifecycleToCompositingCleanPlusScrolling();
166 } 166 }
167 167
168 // Doing a layout can cause this object to be invalid, so check again. 168 // Doing a layout can cause this object to be invalid, so check again.
169 return !IsDetached(); 169 return !IsDetached();
170 } 170 }
171 171
172 WebAXSupportedAction WebAXObject::Action() const { 172 WebAXDefaultActionVerb WebAXObject::Action() const {
173 if (IsDetached()) 173 if (IsDetached())
174 return WebAXSupportedAction::kNone; 174 return WebAXDefaultActionVerb::kNone;
175 175
176 return static_cast<WebAXSupportedAction>(private_->Action()); 176 return static_cast<WebAXDefaultActionVerb>(private_->Action());
177 } 177 }
178 178
179 bool WebAXObject::CanDecrement() const { 179 bool WebAXObject::CanDecrement() const {
180 if (IsDetached()) 180 if (IsDetached())
181 return false; 181 return false;
182 182
183 return private_->IsSlider(); 183 return private_->IsSlider();
184 } 184 }
185 185
186 bool WebAXObject::CanIncrement() const { 186 bool WebAXObject::CanIncrement() const {
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 WebAXObject& WebAXObject::operator=(AXObjectImpl* object) { 1554 WebAXObject& WebAXObject::operator=(AXObjectImpl* object) {
1555 private_ = object; 1555 private_ = object;
1556 return *this; 1556 return *this;
1557 } 1557 }
1558 1558
1559 WebAXObject::operator AXObjectImpl*() const { 1559 WebAXObject::operator AXObjectImpl*() const {
1560 return private_.Get(); 1560 return private_.Get();
1561 } 1561 }
1562 1562
1563 } // namespace blink 1563 } // namespace blink
OLDNEW
« 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