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

Side by Side Diff: Source/web/WebAXObject.cpp

Issue 736943002: Support aria-grabbed attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update enum name Created 6 years, 1 month 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
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/web/WebAXEnums.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 bool WebAXObject::isAnchor() const 208 bool WebAXObject::isAnchor() const
209 { 209 {
210 if (isDetached()) 210 if (isDetached())
211 return 0; 211 return 0;
212 212
213 return m_private->isAnchor(); 213 return m_private->isAnchor();
214 } 214 }
215 215
216 WebAXOptionalBool WebAXObject::isAriaGrabbed() const
217 {
218 if (isDetached())
219 return WebAXOptionalBoolUndefined;
220
221 return static_cast<WebAXOptionalBool>(m_private->isAriaGrabbed());
222 }
223
216 bool WebAXObject::isAriaReadOnly() const 224 bool WebAXObject::isAriaReadOnly() const
217 { 225 {
218 if (isDetached()) 226 if (isDetached())
219 return 0; 227 return 0;
220 228
221 return equalIgnoringCase(m_private->getAttribute(HTMLNames::aria_readonlyAtt r), "true"); 229 return equalIgnoringCase(m_private->getAttribute(HTMLNames::aria_readonlyAtt r), "true");
222 } 230 }
223 231
224 bool WebAXObject::isButtonStateMixed() const 232 bool WebAXObject::isButtonStateMixed() const
225 { 233 {
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 m_private = object; 1222 m_private = object;
1215 return *this; 1223 return *this;
1216 } 1224 }
1217 1225
1218 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1226 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1219 { 1227 {
1220 return m_private.get(); 1228 return m_private.get();
1221 } 1229 }
1222 1230
1223 } // namespace blink 1231 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/web/WebAXEnums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698