| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 return static_cast<WebAXAriaCurrentState>(private_->GetAriaCurrentState()); | 283 return static_cast<WebAXAriaCurrentState>(private_->GetAriaCurrentState()); |
| 284 } | 284 } |
| 285 | 285 |
| 286 bool WebAXObject::IsCheckable() const { | 286 bool WebAXObject::IsCheckable() const { |
| 287 if (IsDetached()) | 287 if (IsDetached()) |
| 288 return false; | 288 return false; |
| 289 | 289 |
| 290 return private_->IsCheckable(); | 290 return private_->IsCheckable(); |
| 291 } | 291 } |
| 292 | 292 |
| 293 WebAXCheckedState WebAXObject::CheckedState() const { | 293 WebAXButtonState WebAXObject::CheckedState() const { |
| 294 if (IsDetached()) | 294 if (IsDetached()) |
| 295 return WebAXCheckedFalse; | 295 return WebAXButtonStateOff; |
| 296 | 296 |
| 297 return static_cast<WebAXCheckedState>(private_->CheckedState()); | 297 return static_cast<WebAXButtonState>(private_->CheckedState()); |
| 298 } |
| 299 |
| 300 WebAXButtonState WebAXObject::PressedState() const { |
| 301 if (IsDetached()) |
| 302 return WebAXButtonStateOff; |
| 303 |
| 304 return static_cast<WebAXButtonState>(private_->PressedState()); |
| 298 } | 305 } |
| 299 | 306 |
| 300 bool WebAXObject::IsClickable() const { | 307 bool WebAXObject::IsClickable() const { |
| 301 if (IsDetached()) | 308 if (IsDetached()) |
| 302 return false; | 309 return false; |
| 303 | 310 |
| 304 return private_->IsClickable(); | 311 return private_->IsClickable(); |
| 305 } | 312 } |
| 306 | 313 |
| 307 bool WebAXObject::IsCollapsed() const { | 314 bool WebAXObject::IsCollapsed() const { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 return private_->IsOffScreen(); | 388 return private_->IsOffScreen(); |
| 382 } | 389 } |
| 383 | 390 |
| 384 bool WebAXObject::IsPasswordField() const { | 391 bool WebAXObject::IsPasswordField() const { |
| 385 if (IsDetached()) | 392 if (IsDetached()) |
| 386 return false; | 393 return false; |
| 387 | 394 |
| 388 return private_->IsPasswordField(); | 395 return private_->IsPasswordField(); |
| 389 } | 396 } |
| 390 | 397 |
| 391 bool WebAXObject::IsPressed() const { | |
| 392 if (IsDetached()) | |
| 393 return false; | |
| 394 | |
| 395 return private_->IsPressed(); | |
| 396 } | |
| 397 | |
| 398 bool WebAXObject::IsReadOnly() const { | 398 bool WebAXObject::IsReadOnly() const { |
| 399 if (IsDetached()) | 399 if (IsDetached()) |
| 400 return false; | 400 return false; |
| 401 | 401 |
| 402 return private_->IsReadOnly(); | 402 return private_->IsReadOnly(); |
| 403 } | 403 } |
| 404 | 404 |
| 405 bool WebAXObject::IsRequired() const { | 405 bool WebAXObject::IsRequired() const { |
| 406 if (IsDetached()) | 406 if (IsDetached()) |
| 407 return false; | 407 return false; |
| (...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1556 WebAXObject& WebAXObject::operator=(AXObjectImpl* object) { | 1556 WebAXObject& WebAXObject::operator=(AXObjectImpl* object) { |
| 1557 private_ = object; | 1557 private_ = object; |
| 1558 return *this; | 1558 return *this; |
| 1559 } | 1559 } |
| 1560 | 1560 |
| 1561 WebAXObject::operator AXObjectImpl*() const { | 1561 WebAXObject::operator AXObjectImpl*() const { |
| 1562 return private_.Get(); | 1562 return private_.Get(); |
| 1563 } | 1563 } |
| 1564 | 1564 |
| 1565 } // namespace blink | 1565 } // namespace blink |
| OLD | NEW |