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

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

Issue 882683003: Normalize top controls offset to (0, 1), Blink-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename to shownratio Created 5 years, 10 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
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebWidget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Starts an animation of the page scale to a target scale factor and scroll offset. 81 // Starts an animation of the page scale to a target scale factor and scroll offset.
82 // If useAnchor is true, destination is a point on the screen that will rema in fixed for the duration of the animation. 82 // If useAnchor is true, destination is a point on the screen that will rema in fixed for the duration of the animation.
83 // If useAnchor is false, destination is the final top-left scroll position. 83 // If useAnchor is false, destination is the final top-left scroll position.
84 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn chor, float newPageScale, double durationSec) = 0; 84 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn chor, float newPageScale, double durationSec) = 0;
85 85
86 virtual void heuristicsForGpuRasterizationUpdated(bool) { } 86 virtual void heuristicsForGpuRasterizationUpdated(bool) { }
87 87
88 // Sets the offset from the top of the screen that the contents are displace d by due to top controls showing. 88 // Sets the offset from the top of the screen that the contents are displace d by due to top controls showing.
89 virtual void setTopControlsContentOffset(float) { } 89 virtual void setTopControlsContentOffset(float) { }
90 90
91
92 // Flow control and scheduling --------------------------------------- 91 // Flow control and scheduling ---------------------------------------
93 92
94 // Indicates that an animation needs to be updated. 93 // Indicates that an animation needs to be updated.
95 virtual void setNeedsAnimate() = 0; 94 virtual void setNeedsAnimate() = 0;
96 95
97 // Indicates whether a commit is pending. 96 // Indicates whether a commit is pending.
98 virtual bool commitRequested() const = 0; 97 virtual bool commitRequested() const = 0;
99 98
100 // Relays the end of a fling animation. 99 // Relays the end of a fling animation.
101 virtual void didStopFlinging() { } 100 virtual void didStopFlinging() { }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Toggles continuous painting 143 // Toggles continuous painting
145 virtual void setContinuousPaintingEnabled(bool) { } 144 virtual void setContinuousPaintingEnabled(bool) { }
146 145
147 // Toggles scroll bottleneck rects on the HUD layer 146 // Toggles scroll bottleneck rects on the HUD layer
148 virtual void setShowScrollBottleneckRects(bool) { } 147 virtual void setShowScrollBottleneckRects(bool) { }
149 }; 148 };
150 149
151 } // namespace blink 150 } // namespace blink
152 151
153 #endif // WebLayerTreeView_h 152 #endif // WebLayerTreeView_h
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698