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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 } | 390 } |
391 | 391 |
392 bool WebAXObject::isVertical() const | 392 bool WebAXObject::isVertical() const |
393 { | 393 { |
394 if (isDetached()) | 394 if (isDetached()) |
395 return 0; | 395 return 0; |
396 | 396 |
397 return m_private->orientation() == AccessibilityOrientationVertical; | 397 return m_private->orientation() == AccessibilityOrientationVertical; |
398 } | 398 } |
399 | 399 |
| 400 WebAXOrientation WebAXObject::orientation() const |
| 401 { |
| 402 if (isDetached()) |
| 403 return WebAXOrientationUndefined; |
| 404 |
| 405 return static_cast<WebAXOrientation>(m_private->orientation()); |
| 406 } |
| 407 |
400 bool WebAXObject::isVisible() const | 408 bool WebAXObject::isVisible() const |
401 { | 409 { |
402 if (isDetached()) | 410 if (isDetached()) |
403 return 0; | 411 return 0; |
404 | 412 |
405 return m_private->isVisible(); | 413 return m_private->isVisible(); |
406 } | 414 } |
407 | 415 |
408 bool WebAXObject::isVisited() const | 416 bool WebAXObject::isVisited() const |
409 { | 417 { |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 m_private = object; | 1238 m_private = object; |
1231 return *this; | 1239 return *this; |
1232 } | 1240 } |
1233 | 1241 |
1234 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1242 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
1235 { | 1243 { |
1236 return m_private.get(); | 1244 return m_private.get(); |
1237 } | 1245 } |
1238 | 1246 |
1239 } // namespace blink | 1247 } // namespace blink |
OLD | NEW |