| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 virtual DoublePoint maximumScrollPositionDouble() const override; | 175 virtual DoublePoint maximumScrollPositionDouble() const override; |
| 176 virtual int visibleHeight() const override { return visibleRect().height();
}; | 176 virtual int visibleHeight() const override { return visibleRect().height();
}; |
| 177 virtual int visibleWidth() const override { return visibleRect().width(); }; | 177 virtual int visibleWidth() const override { return visibleRect().width(); }; |
| 178 virtual IntSize contentsSize() const override; | 178 virtual IntSize contentsSize() const override; |
| 179 virtual bool scrollbarsCanBeActive() const override { return false; } | 179 virtual bool scrollbarsCanBeActive() const override { return false; } |
| 180 virtual IntRect scrollableAreaBoundingBox() const override; | 180 virtual IntRect scrollableAreaBoundingBox() const override; |
| 181 virtual bool userInputScrollable(ScrollbarOrientation) const override { retu
rn true; } | 181 virtual bool userInputScrollable(ScrollbarOrientation) const override { retu
rn true; } |
| 182 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override { return fa
lse; } | 182 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override { return fa
lse; } |
| 183 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; | 183 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; |
| 184 virtual void invalidateScrollCornerRect(const IntRect&) override { } | 184 virtual void invalidateScrollCornerRect(const IntRect&) override { } |
| 185 virtual void setScrollOffset(const IntPoint&) override; | 185 virtual void setScrollOffset(const IntPoint&, ScrollType) override; |
| 186 virtual void setScrollOffset(const DoublePoint&) override; | 186 virtual void setScrollOffset(const DoublePoint&, ScrollType) override; |
| 187 virtual GraphicsLayer* layerForContainer() const override; | 187 virtual GraphicsLayer* layerForContainer() const override; |
| 188 virtual GraphicsLayer* layerForScrolling() const override; | 188 virtual GraphicsLayer* layerForScrolling() const override; |
| 189 virtual GraphicsLayer* layerForHorizontalScrollbar() const override; | 189 virtual GraphicsLayer* layerForHorizontalScrollbar() const override; |
| 190 virtual GraphicsLayer* layerForVerticalScrollbar() const override; | 190 virtual GraphicsLayer* layerForVerticalScrollbar() const override; |
| 191 | 191 |
| 192 private: | 192 private: |
| 193 explicit PinchViewport(FrameHost&); | 193 explicit PinchViewport(FrameHost&); |
| 194 | 194 |
| 195 // GraphicsLayerClient implementation. | 195 // GraphicsLayerClient implementation. |
| 196 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& inClip) override; | 196 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& inClip) override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 223 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. | 223 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. |
| 224 FloatPoint m_offset; | 224 FloatPoint m_offset; |
| 225 float m_scale; | 225 float m_scale; |
| 226 IntSize m_size; | 226 IntSize m_size; |
| 227 float m_topControlsAdjustment; | 227 float m_topControlsAdjustment; |
| 228 }; | 228 }; |
| 229 | 229 |
| 230 } // namespace blink | 230 } // namespace blink |
| 231 | 231 |
| 232 #endif // PinchViewport_h | 232 #endif // PinchViewport_h |
| OLD | NEW |