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

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

Issue 1952863003: Implemented the "aria-current" state on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed switch statements to handle NONE case. Created 4 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 234 }
235 235
236 WebString WebAXObject::ariaAutoComplete() const 236 WebString WebAXObject::ariaAutoComplete() const
237 { 237 {
238 if (isDetached()) 238 if (isDetached())
239 return WebString(); 239 return WebString();
240 240
241 return m_private->ariaAutoComplete(); 241 return m_private->ariaAutoComplete();
242 } 242 }
243 243
244 WebAXAriaCurrentState WebAXObject::ariaCurrentState() const
245 {
246 if (isDetached())
247 return WebAXAriaCurrentStateUndefined;
248
249 return static_cast<WebAXAriaCurrentState>(m_private->ariaCurrentState());
250 }
251
244 bool WebAXObject::isButtonStateMixed() const 252 bool WebAXObject::isButtonStateMixed() const
245 { 253 {
246 if (isDetached()) 254 if (isDetached())
247 return false; 255 return false;
248 256
249 return m_private->checkboxOrRadioValue() == ButtonStateMixed; 257 return m_private->checkboxOrRadioValue() == ButtonStateMixed;
250 } 258 }
251 259
252 bool WebAXObject::isChecked() const 260 bool WebAXObject::isChecked() const
253 { 261 {
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 m_private = object; 1535 m_private = object;
1528 return *this; 1536 return *this;
1529 } 1537 }
1530 1538
1531 WebAXObject::operator AXObject*() const 1539 WebAXObject::operator AXObject*() const
1532 { 1540 {
1533 return m_private.get(); 1541 return m_private.get();
1534 } 1542 }
1535 1543
1536 } // namespace blink 1544 } // 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