Chromium Code Reviews| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 case AccessibilityOrientationHorizontal: | 69 case AccessibilityOrientationHorizontal: |
| 70 return m_horizontalScrollbar ? m_horizontalScrollbar.get() : 0; | 70 return m_horizontalScrollbar ? m_horizontalScrollbar.get() : 0; |
| 71 } | 71 } |
| 72 | 72 |
| 73 return 0; | 73 return 0; |
| 74 } | 74 } |
| 75 | 75 |
| 76 // If this is WebKit1 then the native scroll view needs to return the | 76 // If this is WebKit1 then the native scroll view needs to return the |
| 77 // AX information (because there are no scroll bar children in the ScrollView ob ject in WK1). | 77 // AX information (because there are no scroll bar children in the ScrollView ob ject in WK1). |
| 78 // In WebKit2, the ScrollView object will return the AX information (because the re are no platform widgets). | 78 // In WebKit2, the ScrollView object will return the AX information (because the re are no platform widgets). |
| 79 bool AccessibilityScrollView::isAttachment() const | 79 bool AccessibilityScrollView::isAttachment() const |
|
eseidel
2013/04/05 01:59:24
What is this even for? I feel like we should grep
dmazzoni
2013/04/05 23:01:14
I don't really understand what this is for and I p
| |
| 80 { | 80 { |
| 81 return m_scrollView && m_scrollView->platformWidget(); | 81 return false; |
| 82 } | 82 } |
| 83 | 83 |
| 84 Widget* AccessibilityScrollView::widgetForAttachmentView() const | 84 Widget* AccessibilityScrollView::widgetForAttachmentView() const |
| 85 { | 85 { |
| 86 return m_scrollView; | 86 return m_scrollView; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void AccessibilityScrollView::updateChildrenIfNecessary() | 89 void AccessibilityScrollView::updateChildrenIfNecessary() |
| 90 { | 90 { |
| 91 if (m_childrenDirty) | 91 if (m_childrenDirty) |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 return m_scrollView; | 236 return m_scrollView; |
| 237 } | 237 } |
| 238 | 238 |
| 239 void AccessibilityScrollView::scrollTo(const IntPoint& point) const | 239 void AccessibilityScrollView::scrollTo(const IntPoint& point) const |
| 240 { | 240 { |
| 241 if (m_scrollView) | 241 if (m_scrollView) |
| 242 m_scrollView->setScrollPosition(point); | 242 m_scrollView->setScrollPosition(point); |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // namespace WebCore | 245 } // namespace WebCore |
| OLD | NEW |