| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |