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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 virtual GraphicsLayer* layerForContainer() const; | 248 virtual GraphicsLayer* layerForContainer() const; |
249 virtual GraphicsLayer* layerForScrolling() const { return 0; } | 249 virtual GraphicsLayer* layerForScrolling() const { return 0; } |
250 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; } | 250 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; } |
251 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; } | 251 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; } |
252 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } | 252 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } |
253 bool hasLayerForHorizontalScrollbar() const; | 253 bool hasLayerForHorizontalScrollbar() const; |
254 bool hasLayerForVerticalScrollbar() const; | 254 bool hasLayerForVerticalScrollbar() const; |
255 bool hasLayerForScrollCorner() const; | 255 bool hasLayerForScrollCorner() const; |
256 | 256 |
| 257 void layerForScrollingDidChange(); |
| 258 |
257 void cancelProgrammaticScrollAnimation(); | 259 void cancelProgrammaticScrollAnimation(); |
258 | 260 |
259 protected: | 261 protected: |
260 ScrollableArea(); | 262 ScrollableArea(); |
261 virtual ~ScrollableArea(); | 263 virtual ~ScrollableArea(); |
262 | 264 |
263 void setScrollOrigin(const IntPoint&); | 265 void setScrollOrigin(const IntPoint&); |
264 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } | 266 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } |
265 | 267 |
266 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; | 268 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // vertical-lr / ltr NO NO | 324 // vertical-lr / ltr NO NO |
323 // vertical-lr / rtl NO YES | 325 // vertical-lr / rtl NO YES |
324 // vertical-rl / ltr YES NO | 326 // vertical-rl / ltr YES NO |
325 // vertical-rl / rtl YES YES | 327 // vertical-rl / rtl YES YES |
326 IntPoint m_scrollOrigin; | 328 IntPoint m_scrollOrigin; |
327 }; | 329 }; |
328 | 330 |
329 } // namespace blink | 331 } // namespace blink |
330 | 332 |
331 #endif // ScrollableArea_h | 333 #endif // ScrollableArea_h |
OLD | NEW |