| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 return private_->AriaAutoComplete(); | 273 return private_->AriaAutoComplete(); |
| 274 } | 274 } |
| 275 | 275 |
| 276 WebAXAriaCurrentState WebAXObject::AriaCurrentState() const { | 276 WebAXAriaCurrentState WebAXObject::AriaCurrentState() const { |
| 277 if (IsDetached()) | 277 if (IsDetached()) |
| 278 return kWebAXAriaCurrentStateUndefined; | 278 return kWebAXAriaCurrentStateUndefined; |
| 279 | 279 |
| 280 return static_cast<WebAXAriaCurrentState>(private_->GetAriaCurrentState()); | 280 return static_cast<WebAXAriaCurrentState>(private_->GetAriaCurrentState()); |
| 281 } | 281 } |
| 282 | 282 |
| 283 bool WebAXObject::IsButtonStateMixed() const { | 283 bool WebAXObject::IsCheckable() const { |
| 284 if (IsDetached()) | 284 if (IsDetached()) |
| 285 return false; | 285 return false; |
| 286 | 286 |
| 287 return private_->CheckboxOrRadioValue() == kButtonStateMixed; | 287 return private_->IsCheckable(); |
| 288 } | 288 } |
| 289 | 289 |
| 290 bool WebAXObject::IsChecked() const { | 290 WebAXCheckedState WebAXObject::CheckedState() const { |
| 291 if (IsDetached()) | 291 if (IsDetached()) |
| 292 return false; | 292 return WebAXCheckedFalse; |
| 293 | 293 |
| 294 return private_->IsChecked(); | 294 return static_cast<WebAXCheckedState>(private_->CheckedState()); |
| 295 } | 295 } |
| 296 | 296 |
| 297 bool WebAXObject::IsClickable() const { | 297 bool WebAXObject::IsClickable() const { |
| 298 if (IsDetached()) | 298 if (IsDetached()) |
| 299 return false; | 299 return false; |
| 300 | 300 |
| 301 return private_->IsClickable(); | 301 return private_->IsClickable(); |
| 302 } | 302 } |
| 303 | 303 |
| 304 bool WebAXObject::IsCollapsed() const { | 304 bool WebAXObject::IsCollapsed() const { |
| (...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 WebAXObject& WebAXObject::operator=(AXObject* object) { | 1553 WebAXObject& WebAXObject::operator=(AXObject* object) { |
| 1554 private_ = object; | 1554 private_ = object; |
| 1555 return *this; | 1555 return *this; |
| 1556 } | 1556 } |
| 1557 | 1557 |
| 1558 WebAXObject::operator AXObject*() const { | 1558 WebAXObject::operator AXObject*() const { |
| 1559 return private_.Get(); | 1559 return private_.Get(); |
| 1560 } | 1560 } |
| 1561 | 1561 |
| 1562 } // namespace blink | 1562 } // namespace blink |
| OLD | NEW |