| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 AXObject* AXScrollView::scrollBar(AccessibilityOrientation orientation) | 59 AXObject* AXScrollView::scrollBar(AccessibilityOrientation orientation) |
| 60 { | 60 { |
| 61 updateScrollbars(); | 61 updateScrollbars(); |
| 62 | 62 |
| 63 switch (orientation) { | 63 switch (orientation) { |
| 64 case AccessibilityOrientationVertical: | 64 case AccessibilityOrientationVertical: |
| 65 return m_verticalScrollbar ? m_verticalScrollbar.get() : 0; | 65 return m_verticalScrollbar ? m_verticalScrollbar.get() : 0; |
| 66 case AccessibilityOrientationHorizontal: | 66 case AccessibilityOrientationHorizontal: |
| 67 return m_horizontalScrollbar ? m_horizontalScrollbar.get() : 0; | 67 return m_horizontalScrollbar ? m_horizontalScrollbar.get() : 0; |
| 68 case AccessibilityOrientationUndefined: |
| 69 return 0; |
| 68 } | 70 } |
| 69 | 71 |
| 70 return 0; | 72 return 0; |
| 71 } | 73 } |
| 72 | 74 |
| 73 // If this is WebKit1 then the native scroll view needs to return the | 75 // If this is WebKit1 then the native scroll view needs to return the |
| 74 // AX information (because there are no scroll bar children in the FrameView obj
ect in WK1). | 76 // AX information (because there are no scroll bar children in the FrameView obj
ect in WK1). |
| 75 // In WebKit2, the FrameView object will return the AX information (because ther
e are no platform widgets). | 77 // In WebKit2, the FrameView object will return the AX information (because ther
e are no platform widgets). |
| 76 bool AXScrollView::isAttachment() const | 78 bool AXScrollView::isAttachment() const |
| 77 { | 79 { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 return m_scrollView; | 246 return m_scrollView; |
| 245 } | 247 } |
| 246 | 248 |
| 247 void AXScrollView::scrollTo(const IntPoint& point) const | 249 void AXScrollView::scrollTo(const IntPoint& point) const |
| 248 { | 250 { |
| 249 if (m_scrollView) | 251 if (m_scrollView) |
| 250 m_scrollView->setScrollPosition(point); | 252 m_scrollView->setScrollPosition(point); |
| 251 } | 253 } |
| 252 | 254 |
| 253 } // namespace blink | 255 } // namespace blink |
| OLD | NEW |