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

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

Issue 1163433003: Remove WebViewImpl helper methods for setting scroll offset. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed outerViewport to layoutViewport Created 5 years, 6 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/WebViewTest.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 /* 2 /*
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // thread. 150 // thread.
151 virtual void applyViewportDeltas( 151 virtual void applyViewportDeltas(
152 const WebSize& scrollDelta, 152 const WebSize& scrollDelta,
153 float scaleFactor, 153 float scaleFactor,
154 float topControlsShownRatioDelta) { } 154 float topControlsShownRatioDelta) { }
155 155
156 // Applies viewport related properties during a commit from the compositor 156 // Applies viewport related properties during a commit from the compositor
157 // thread. 157 // thread.
158 virtual void applyViewportDeltas( 158 virtual void applyViewportDeltas(
159 const WebFloatSize& pinchViewportDelta, 159 const WebFloatSize& pinchViewportDelta,
160 const WebFloatSize& mainFrameDelta, 160 const WebFloatSize& layoutViewportDelta,
161 const WebFloatSize& elasticOverscrollDelta, 161 const WebFloatSize& elasticOverscrollDelta,
162 float scaleFactor, 162 float scaleFactor,
163 float topControlsShownRatioDelta) { } 163 float topControlsShownRatioDelta) { }
164 164
165 // Records composite or render events for the Performance Timeline. 165 // Records composite or render events for the Performance Timeline.
166 // See http://w3c.github.io/frame-timing/ for definition of terms. 166 // See http://w3c.github.io/frame-timing/ for definition of terms.
167 enum FrameTimingEventType { 167 enum FrameTimingEventType {
168 CompositeEvent, 168 CompositeEvent,
169 RenderEvent, 169 RenderEvent,
170 }; 170 };
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // control what are valid states for top controls and if it should animate. 282 // control what are valid states for top controls and if it should animate.
283 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 283 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
284 284
285 protected: 285 protected:
286 ~WebWidget() { } 286 ~WebWidget() { }
287 }; 287 };
288 288
289 } // namespace blink 289 } // namespace blink
290 290
291 #endif 291 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698