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

Side by Side Diff: public/web/WebWidget.h

Issue 761303003: Add argument to pass elastic overscroll delta to Blink (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix up types Created 6 years 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/PinchViewportTest.cpp ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebWidget_h 31 #ifndef WebWidget_h
32 #define WebWidget_h 32 #define WebWidget_h
33 33
34 #include "../platform/WebCanvas.h" 34 #include "../platform/WebCanvas.h"
35 #include "../platform/WebCommon.h" 35 #include "../platform/WebCommon.h"
36 #include "../platform/WebFloatSize.h"
36 #include "../platform/WebPoint.h" 37 #include "../platform/WebPoint.h"
37 #include "../platform/WebRect.h" 38 #include "../platform/WebRect.h"
38 #include "../platform/WebSize.h" 39 #include "../platform/WebSize.h"
39 #include "WebBeginFrameArgs.h" 40 #include "WebBeginFrameArgs.h"
40 #include "WebCompositionUnderline.h" 41 #include "WebCompositionUnderline.h"
41 #include "WebTextDirection.h" 42 #include "WebTextDirection.h"
42 #include "WebTextInputInfo.h" 43 #include "WebTextInputInfo.h"
43 44
44 namespace blink { 45 namespace blink {
45 46
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual void applyViewportDeltas( 143 virtual void applyViewportDeltas(
143 const WebSize& scrollDelta, 144 const WebSize& scrollDelta,
144 float scaleFactor, 145 float scaleFactor,
145 float topControlsDelta) { } 146 float topControlsDelta) { }
146 147
147 // Applies viewport related properties during a commit from the compositor 148 // Applies viewport related properties during a commit from the compositor
148 // thread. 149 // thread.
149 virtual void applyViewportDeltas( 150 virtual void applyViewportDeltas(
150 const WebSize& pinchViewportDelta, 151 const WebSize& pinchViewportDelta,
151 const WebSize& mainFrameDelta, 152 const WebSize& mainFrameDelta,
153 const WebFloatSize& elasticOverscrollDelta,
154 float scaleFactor,
155 float topControlsDelta) { }
156 // TODO(ccameron): Delete this when all callers are removed.
157 virtual void applyViewportDeltas(
158 const WebSize& pinchViewportDelta,
159 const WebSize& mainFrameDelta,
152 float scaleFactor, 160 float scaleFactor,
153 float topControlsDelta) { } 161 float topControlsDelta) { }
154 162
155 // Called to inform the WebWidget that mouse capture was lost. 163 // Called to inform the WebWidget that mouse capture was lost.
156 virtual void mouseCaptureLost() { } 164 virtual void mouseCaptureLost() { }
157 165
158 // Called to inform the WebWidget that it has gained or lost keyboard focus. 166 // Called to inform the WebWidget that it has gained or lost keyboard focus.
159 virtual void setFocus(bool) { } 167 virtual void setFocus(bool) { }
160 168
161 // Called to inform the WebWidget of a new composition text. 169 // Called to inform the WebWidget of a new composition text.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Sets the height subtracted from the Widget to accomodate the top controls . 272 // Sets the height subtracted from the Widget to accomodate the top controls .
265 virtual void setTopControlsLayoutHeight(float) { } 273 virtual void setTopControlsLayoutHeight(float) { }
266 274
267 protected: 275 protected:
268 ~WebWidget() { } 276 ~WebWidget() { }
269 }; 277 };
270 278
271 } // namespace blink 279 } // namespace blink
272 280
273 #endif 281 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/PinchViewportTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698