OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // Mark/unmark a layer as a container for fixed position layers. | 62 // Mark/unmark a layer as a container for fixed position layers. |
63 virtual void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool)
; | 63 virtual void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool)
; |
64 | 64 |
65 // Attach/detach layer position to ancestor fixed position container. | 65 // Attach/detach layer position to ancestor fixed position container. |
66 virtual void setLayerIsFixedToContainerLayer(GraphicsLayer*, bool); | 66 virtual void setLayerIsFixedToContainerLayer(GraphicsLayer*, bool); |
67 | 67 |
68 // Should be called whenever the scrollable layer for the given scroll area
changes. | 68 // Should be called whenever the scrollable layer for the given scroll area
changes. |
69 virtual void scrollableAreaScrollLayerDidChange(ScrollableArea*, GraphicsLay
er*); | 69 virtual void scrollableAreaScrollLayerDidChange(ScrollableArea*, GraphicsLay
er*); |
70 | 70 |
71 // Should be called whenever touch handlers are registered, removed, or move
d. | |
72 virtual void touchEventTargetRectsDidChange(const Document*) OVERRIDE; | |
73 | |
74 private: | 71 private: |
75 virtual void recomputeWheelEventHandlerCountForFrameView(FrameView*); | 72 virtual void recomputeWheelEventHandlerCountForFrameView(FrameView*); |
76 virtual void setShouldUpdateScrollLayerPositionOnMainThread(MainThreadScroll
ingReasons); | 73 virtual void setShouldUpdateScrollLayerPositionOnMainThread(MainThreadScroll
ingReasons); |
77 | 74 |
78 void setScrollLayer(GraphicsLayer*); | 75 void setScrollLayer(GraphicsLayer*); |
79 void setNonFastScrollableRegion(const Region&); | 76 void setNonFastScrollableRegion(const Region&); |
80 void setTouchEventTargetRects(const Vector<IntRect>&); | |
81 void setWheelEventHandlerCount(unsigned); | 77 void setWheelEventHandlerCount(unsigned); |
82 PassOwnPtr<WebKit::WebScrollbarLayer> createScrollbarLayer(Scrollbar*, WebKi
t::WebLayer* scrollLayer, GraphicsLayer* scrollbarGraphicsLayer, FrameView*); | 78 PassOwnPtr<WebKit::WebScrollbarLayer> createScrollbarLayer(Scrollbar*, WebKi
t::WebLayer* scrollLayer, GraphicsLayer* scrollbarGraphicsLayer, FrameView*); |
83 | 79 |
84 ScrollingCoordinatorPrivate* m_private; | 80 ScrollingCoordinatorPrivate* m_private; |
85 }; | 81 }; |
86 | 82 |
87 } // namespace WebCore | 83 } // namespace WebCore |
88 | 84 |
89 #endif // ScrollingCoordinatorChromium_h | 85 #endif // ScrollingCoordinatorChromium_h |
OLD | NEW |