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

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

Issue 1156903003: Remove obsolete overload of applyViewportDeltas from WebWidget API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « no previous file | 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Called to inform the WebWidget of the mouse cursor's visibility. 143 // Called to inform the WebWidget of the mouse cursor's visibility.
144 virtual void setCursorVisibilityState(bool isVisible) { } 144 virtual void setCursorVisibilityState(bool isVisible) { }
145 145
146 // Check whether the given point hits any registered touch event handlers. 146 // Check whether the given point hits any registered touch event handlers.
147 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } 147 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
148 148
149 // Applies viewport related properties during a commit from the compositor 149 // Applies viewport related properties during a commit from the compositor
150 // thread. 150 // thread.
151 virtual void applyViewportDeltas( 151 virtual void applyViewportDeltas(
152 const WebSize& scrollDelta,
153 float scaleFactor,
154 float topControlsShownRatioDelta) { }
155
156 // Applies viewport related properties during a commit from the compositor
157 // thread.
158 virtual void applyViewportDeltas(
159 const WebFloatSize& pinchViewportDelta, 152 const WebFloatSize& pinchViewportDelta,
160 const WebFloatSize& mainFrameDelta, 153 const WebFloatSize& mainFrameDelta,
161 const WebFloatSize& elasticOverscrollDelta, 154 const WebFloatSize& elasticOverscrollDelta,
162 float scaleFactor, 155 float scaleFactor,
163 float topControlsShownRatioDelta) { } 156 float topControlsShownRatioDelta) { }
164 157
165 // Records composite or render events for the Performance Timeline. 158 // Records composite or render events for the Performance Timeline.
166 // See http://w3c.github.io/frame-timing/ for definition of terms. 159 // See http://w3c.github.io/frame-timing/ for definition of terms.
167 enum FrameTimingEventType { 160 enum FrameTimingEventType {
168 CompositeEvent, 161 CompositeEvent,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // control what are valid states for top controls and if it should animate. 275 // control what are valid states for top controls and if it should animate.
283 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 276 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
284 277
285 protected: 278 protected:
286 ~WebWidget() { } 279 ~WebWidget() { }
287 }; 280 };
288 281
289 } // namespace blink 282 } // namespace blink
290 283
291 #endif 284 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698