| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 { | 150 { |
| 151 return scrollbar->Widget::convertToContainingView(scrollbarPoint); | 151 return scrollbar->Widget::convertToContainingView(scrollbarPoint); |
| 152 } | 152 } |
| 153 virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar* scrol
lbar, const IntPoint& parentPoint) const | 153 virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar* scrol
lbar, const IntPoint& parentPoint) const |
| 154 { | 154 { |
| 155 return scrollbar->Widget::convertFromContainingView(parentPoint); | 155 return scrollbar->Widget::convertFromContainingView(parentPoint); |
| 156 } | 156 } |
| 157 | 157 |
| 158 virtual Scrollbar* horizontalScrollbar() const { return 0; } | 158 virtual Scrollbar* horizontalScrollbar() const { return 0; } |
| 159 virtual Scrollbar* verticalScrollbar() const { return 0; } | 159 virtual Scrollbar* verticalScrollbar() const { return 0; } |
| 160 virtual bool isScrollViewScrollbar(const Widget* child) const { return false
; } |
| 160 | 161 |
| 161 // scrollPosition is relative to the scrollOrigin. i.e. If the page is RTL | 162 // scrollPosition is relative to the scrollOrigin. i.e. If the page is RTL |
| 162 // then scrollPosition will be negative. | 163 // then scrollPosition will be negative. |
| 163 virtual IntPoint scrollPosition() const = 0; | 164 virtual IntPoint scrollPosition() const = 0; |
| 164 virtual IntPoint minimumScrollPosition() const = 0; | 165 virtual IntPoint minimumScrollPosition() const = 0; |
| 165 virtual IntPoint maximumScrollPosition() const = 0; | 166 virtual IntPoint maximumScrollPosition() const = 0; |
| 166 | 167 |
| 167 virtual IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollba
rs) const; | 168 virtual IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollba
rs) const; |
| 168 virtual int visibleHeight() const { return visibleContentRect().height(); } | 169 virtual int visibleHeight() const { return visibleContentRect().height(); } |
| 169 virtual int visibleWidth() const { return visibleContentRect().width(); } | 170 virtual int visibleWidth() const { return visibleContentRect().width(); } |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // vertical-lr / ltr NO NO | 295 // vertical-lr / ltr NO NO |
| 295 // vertical-lr / rtl NO YES | 296 // vertical-lr / rtl NO YES |
| 296 // vertical-rl / ltr YES NO | 297 // vertical-rl / ltr YES NO |
| 297 // vertical-rl / rtl YES YES | 298 // vertical-rl / rtl YES YES |
| 298 IntPoint m_scrollOrigin; | 299 IntPoint m_scrollOrigin; |
| 299 }; | 300 }; |
| 300 | 301 |
| 301 } // namespace blink | 302 } // namespace blink |
| 302 | 303 |
| 303 #endif // ScrollableArea_h | 304 #endif // ScrollableArea_h |
| OLD | NEW |