Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: public/platform/WebLayerTreeView.h

Issue 513053003: Made Blink aware of top controls offset (Blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added top_controls_content_offset Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Sets the current page scale factor and minimum / maximum limits. Both lim its are initially 1 (no page scale allowed). 86 // Sets the current page scale factor and minimum / maximum limits. Both lim its are initially 1 (no page scale allowed).
87 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu m, float maximum) = 0; 87 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu m, float maximum) = 0;
88 88
89 // Starts an animation of the page scale to a target scale factor and scroll offset. 89 // Starts an animation of the page scale to a target scale factor and scroll offset.
90 // If useAnchor is true, destination is a point on the screen that will rema in fixed for the duration of the animation. 90 // If useAnchor is true, destination is a point on the screen that will rema in fixed for the duration of the animation.
91 // If useAnchor is false, destination is the final top-left scroll position. 91 // If useAnchor is false, destination is the final top-left scroll position.
92 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn chor, float newPageScale, double durationSec) = 0; 92 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn chor, float newPageScale, double durationSec) = 0;
93 93
94 virtual void heuristicsForGpuRasterizationUpdated(bool) { } 94 virtual void heuristicsForGpuRasterizationUpdated(bool) { }
95 95
96 // Sets the offset from the top of the screen that the contents are displace d by due to top controls showing.
97 virtual void setTopControlsContentOffset(float) { }
98
96 99
97 // Flow control and scheduling --------------------------------------- 100 // Flow control and scheduling ---------------------------------------
98 101
99 // Indicates that an animation needs to be updated. 102 // Indicates that an animation needs to be updated.
100 virtual void setNeedsAnimate() = 0; 103 virtual void setNeedsAnimate() = 0;
101 104
102 // Indicates whether a commit is pending. 105 // Indicates whether a commit is pending.
103 virtual bool commitRequested() const = 0; 106 virtual bool commitRequested() const = 0;
104 107
105 // Relays the end of a fling animation. 108 // Relays the end of a fling animation.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Toggles continuous painting 151 // Toggles continuous painting
149 virtual void setContinuousPaintingEnabled(bool) { } 152 virtual void setContinuousPaintingEnabled(bool) { }
150 153
151 // Toggles scroll bottleneck rects on the HUD layer 154 // Toggles scroll bottleneck rects on the HUD layer
152 virtual void setShowScrollBottleneckRects(bool) { } 155 virtual void setShowScrollBottleneckRects(bool) { }
153 }; 156 };
154 157
155 } // namespace blink 158 } // namespace blink
156 159
157 #endif // WebLayerTreeView_h 160 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698