OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override { return fa
lse; } | 142 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override { return fa
lse; } |
143 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; | 143 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; |
144 virtual void invalidateScrollCornerRect(const IntRect&) override { } | 144 virtual void invalidateScrollCornerRect(const IntRect&) override { } |
145 virtual void setScrollOffset(const IntPoint&) override; | 145 virtual void setScrollOffset(const IntPoint&) override; |
146 virtual GraphicsLayer* layerForContainer() const override; | 146 virtual GraphicsLayer* layerForContainer() const override; |
147 virtual GraphicsLayer* layerForScrolling() const override; | 147 virtual GraphicsLayer* layerForScrolling() const override; |
148 virtual GraphicsLayer* layerForHorizontalScrollbar() const override; | 148 virtual GraphicsLayer* layerForHorizontalScrollbar() const override; |
149 virtual GraphicsLayer* layerForVerticalScrollbar() const override; | 149 virtual GraphicsLayer* layerForVerticalScrollbar() const override; |
150 | 150 |
151 // GraphicsLayerClient implementation. | 151 // GraphicsLayerClient implementation. |
152 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me) override; | |
153 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& inClip) override; | 152 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& inClip) override; |
154 virtual String debugName(const GraphicsLayer*) override; | 153 virtual String debugName(const GraphicsLayer*) override; |
155 | 154 |
156 void setupScrollbar(blink::WebScrollbar::Orientation); | 155 void setupScrollbar(blink::WebScrollbar::Orientation); |
157 FloatPoint clampOffsetToBoundaries(const FloatPoint&); | 156 FloatPoint clampOffsetToBoundaries(const FloatPoint&); |
158 void clampToBoundaries(); | 157 void clampToBoundaries(); |
159 | 158 |
160 LocalFrame* mainFrame() const; | 159 LocalFrame* mainFrame() const; |
161 | 160 |
162 FrameHost& frameHost() const | 161 FrameHost& frameHost() const |
(...skipping 14 matching lines...) Expand all Loading... |
177 | 176 |
178 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. | 177 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. |
179 FloatPoint m_offset; | 178 FloatPoint m_offset; |
180 float m_scale; | 179 float m_scale; |
181 IntSize m_size; | 180 IntSize m_size; |
182 }; | 181 }; |
183 | 182 |
184 } // namespace blink | 183 } // namespace blink |
185 | 184 |
186 #endif // PinchViewport_h | 185 #endif // PinchViewport_h |
OLD | NEW |