| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual void setVisible(bool) { } | 82 virtual void setVisible(bool) { } |
| 83 | 83 |
| 84 // Sets the current page scale factor and minimum / maximum limits. Both lim
its are initially 1 (no page scale allowed). | 84 // Sets the current page scale factor and minimum / maximum limits. Both lim
its are initially 1 (no page scale allowed). |
| 85 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu
m, float maximum) { } | 85 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu
m, float maximum) { } |
| 86 | 86 |
| 87 // Starts an animation of the page scale to a target scale factor and scroll
offset. | 87 // Starts an animation of the page scale to a target scale factor and scroll
offset. |
| 88 // If useAnchor is true, destination is a point on the screen that will rema
in fixed for the duration of the animation. | 88 // If useAnchor is true, destination is a point on the screen that will rema
in fixed for the duration of the animation. |
| 89 // If useAnchor is false, destination is the final top-left scroll position. | 89 // If useAnchor is false, destination is the final top-left scroll position. |
| 90 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) { } | 90 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) { } |
| 91 | 91 |
| 92 // Returns true if the page scale animation had started. |
| 93 virtual bool hasPendingPageScaleAnimation() const { return false; } |
| 94 |
| 92 virtual void heuristicsForGpuRasterizationUpdated(bool) { } | 95 virtual void heuristicsForGpuRasterizationUpdated(bool) { } |
| 93 | 96 |
| 94 // Sets the amount that the top controls are showing, from 0 (hidden) to 1 | 97 // Sets the amount that the top controls are showing, from 0 (hidden) to 1 |
| 95 // (fully shown). | 98 // (fully shown). |
| 96 virtual void setTopControlsShownRatio(float) { } | 99 virtual void setTopControlsShownRatio(float) { } |
| 97 | 100 |
| 98 // Update top controls permitted and current states | 101 // Update top controls permitted and current states |
| 99 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 102 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
| 100 | 103 |
| 101 // Set top controls height. If |shrinkViewport| is set to true, then Blink s
hrunk the viewport clip | 104 // Set top controls height. If |shrinkViewport| is set to true, then Blink s
hrunk the viewport clip |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // Toggles the debug borders on layers | 165 // Toggles the debug borders on layers |
| 163 virtual void setShowDebugBorders(bool) { } | 166 virtual void setShowDebugBorders(bool) { } |
| 164 | 167 |
| 165 // Toggles scroll bottleneck rects on the HUD layer | 168 // Toggles scroll bottleneck rects on the HUD layer |
| 166 virtual void setShowScrollBottleneckRects(bool) { } | 169 virtual void setShowScrollBottleneckRects(bool) { } |
| 167 }; | 170 }; |
| 168 | 171 |
| 169 } // namespace blink | 172 } // namespace blink |
| 170 | 173 |
| 171 #endif // WebLayerTreeView_h | 174 #endif // WebLayerTreeView_h |
| OLD | NEW |