OLD | NEW |
---|---|
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
274 return m_private->ariaAutoComplete(); | 274 return m_private->ariaAutoComplete(); |
275 } | 275 } |
276 | 276 |
277 WebAXAriaCurrentState WebAXObject::ariaCurrentState() const { | 277 WebAXAriaCurrentState WebAXObject::ariaCurrentState() const { |
278 if (isDetached()) | 278 if (isDetached()) |
279 return WebAXAriaCurrentStateUndefined; | 279 return WebAXAriaCurrentStateUndefined; |
280 | 280 |
281 return static_cast<WebAXAriaCurrentState>(m_private->ariaCurrentState()); | 281 return static_cast<WebAXAriaCurrentState>(m_private->ariaCurrentState()); |
282 } | 282 } |
283 | 283 |
284 bool WebAXObject::isButtonStateMixed() const { | 284 bool WebAXObject::isButtonStateMixed() const { |
dmazzoni
2017/02/16 20:56:04
i'd like you to replace this with a tristate, i.e.
aleventhal
2017/02/24 21:44:02
Done.
| |
285 if (isDetached()) | 285 if (isDetached()) |
286 return false; | 286 return false; |
287 | 287 |
288 return m_private->checkboxOrRadioValue() == ButtonStateMixed; | 288 return m_private->checkboxOrRadioState() == ButtonStateMixed; |
289 } | 289 } |
290 | 290 |
291 bool WebAXObject::isChecked() const { | 291 bool WebAXObject::isChecked() const { |
292 if (isDetached()) | 292 if (isDetached()) |
293 return false; | 293 return false; |
294 | 294 |
295 return m_private->isChecked(); | 295 return m_private->isChecked(); |
296 } | 296 } |
297 | 297 |
298 bool WebAXObject::isClickable() const { | 298 bool WebAXObject::isClickable() const { |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1532 WebAXObject& WebAXObject::operator=(AXObject* object) { | 1532 WebAXObject& WebAXObject::operator=(AXObject* object) { |
1533 m_private = object; | 1533 m_private = object; |
1534 return *this; | 1534 return *this; |
1535 } | 1535 } |
1536 | 1536 |
1537 WebAXObject::operator AXObject*() const { | 1537 WebAXObject::operator AXObject*() const { |
1538 return m_private.get(); | 1538 return m_private.get(); |
1539 } | 1539 } |
1540 | 1540 |
1541 } // namespace blink | 1541 } // namespace blink |
OLD | NEW |