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

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

Issue 662313003: Add isExpanded() API to WebAXObject.h to get aria-expanded attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/accessibility/AXObject.cpp ('k') | public/web/WebAXObject.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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } 267 }
268 268
269 bool WebAXObject::isEnabled() const 269 bool WebAXObject::isEnabled() const
270 { 270 {
271 if (isDetached()) 271 if (isDetached())
272 return 0; 272 return 0;
273 273
274 return m_private->isEnabled(); 274 return m_private->isEnabled();
275 } 275 }
276 276
277 bool WebAXObject::isExpanded() const
278 {
279 if (isDetached())
280 return 0;
281
282 return m_private->isExpanded();
283 }
284
277 bool WebAXObject::isFocused() const 285 bool WebAXObject::isFocused() const
278 { 286 {
279 if (isDetached()) 287 if (isDetached())
280 return 0; 288 return 0;
281 289
282 return m_private->isFocused(); 290 return m_private->isFocused();
283 } 291 }
284 292
285 bool WebAXObject::isHovered() const 293 bool WebAXObject::isHovered() const
286 { 294 {
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 m_private = object; 1171 m_private = object;
1164 return *this; 1172 return *this;
1165 } 1173 }
1166 1174
1167 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1175 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1168 { 1176 {
1169 return m_private.get(); 1177 return m_private.get();
1170 } 1178 }
1171 1179
1172 } // namespace blink 1180 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObject.cpp ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698