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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 } | 382 } |
383 | 383 |
384 bool WebAXObject::isVertical() const | 384 bool WebAXObject::isVertical() const |
385 { | 385 { |
386 if (isDetached()) | 386 if (isDetached()) |
387 return 0; | 387 return 0; |
388 | 388 |
389 return m_private->orientation() == AccessibilityOrientationVertical; | 389 return m_private->orientation() == AccessibilityOrientationVertical; |
390 } | 390 } |
391 | 391 |
| 392 WebAXOrientation WebAXObject::orientation() const |
| 393 { |
| 394 if (isDetached()) |
| 395 return WebAXOrientationUndefined; |
| 396 |
| 397 return static_cast<WebAXOrientation>(m_private->orientation()); |
| 398 } |
| 399 |
392 bool WebAXObject::isVisible() const | 400 bool WebAXObject::isVisible() const |
393 { | 401 { |
394 if (isDetached()) | 402 if (isDetached()) |
395 return 0; | 403 return 0; |
396 | 404 |
397 return m_private->isVisible(); | 405 return m_private->isVisible(); |
398 } | 406 } |
399 | 407 |
400 bool WebAXObject::isVisited() const | 408 bool WebAXObject::isVisited() const |
401 { | 409 { |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 m_private = object; | 1222 m_private = object; |
1215 return *this; | 1223 return *this; |
1216 } | 1224 } |
1217 | 1225 |
1218 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1226 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
1219 { | 1227 { |
1220 return m_private.get(); | 1228 return m_private.get(); |
1221 } | 1229 } |
1222 | 1230 |
1223 } // namespace blink | 1231 } // namespace blink |
OLD | NEW |