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

Side by Side Diff: third_party/WebKit/Source/core/frame/VisualViewport.h

Issue 2559273003: Blink Compositor Animation: Introduce CompositorAnimationHost correctly. (Closed)
Patch Set: Allocate on stack in unit tests. Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool userInputScrollable(ScrollbarOrientation) const override { return true; } 188 bool userInputScrollable(ScrollbarOrientation) const override { return true; }
189 bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; } 189 bool shouldPlaceVerticalScrollbarOnLeft() const override { return false; }
190 bool scrollAnimatorEnabled() const override; 190 bool scrollAnimatorEnabled() const override;
191 void scrollControlWasSetNeedsPaintInvalidation() override {} 191 void scrollControlWasSetNeedsPaintInvalidation() override {}
192 void updateScrollOffset(const ScrollOffset&, ScrollType) override; 192 void updateScrollOffset(const ScrollOffset&, ScrollType) override;
193 GraphicsLayer* layerForContainer() const override; 193 GraphicsLayer* layerForContainer() const override;
194 GraphicsLayer* layerForScrolling() const override; 194 GraphicsLayer* layerForScrolling() const override;
195 GraphicsLayer* layerForHorizontalScrollbar() const override; 195 GraphicsLayer* layerForHorizontalScrollbar() const override;
196 GraphicsLayer* layerForVerticalScrollbar() const override; 196 GraphicsLayer* layerForVerticalScrollbar() const override;
197 Widget* getWidget() override; 197 Widget* getWidget() override;
198 CompositorAnimationHost* compositorAnimationHost() const override;
198 CompositorAnimationTimeline* compositorAnimationTimeline() const override; 199 CompositorAnimationTimeline* compositorAnimationTimeline() const override;
199 IntRect visibleContentRect( 200 IntRect visibleContentRect(
200 IncludeScrollbarsInRect = ExcludeScrollbars) const override; 201 IncludeScrollbarsInRect = ExcludeScrollbars) const override;
201 202
202 // Visual Viewport API implementation. 203 // Visual Viewport API implementation.
203 double scrollLeft(); 204 double scrollLeft();
204 double scrollTop(); 205 double scrollTop();
205 double clientWidth(); 206 double clientWidth();
206 double clientHeight(); 207 double clientHeight();
207 double pageScale(); 208 double pageScale();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 float m_scale; 267 float m_scale;
267 IntSize m_size; 268 IntSize m_size;
268 float m_browserControlsAdjustment; 269 float m_browserControlsAdjustment;
269 float m_maxPageScale; 270 float m_maxPageScale;
270 bool m_trackPinchZoomStatsForPage; 271 bool m_trackPinchZoomStatsForPage;
271 }; 272 };
272 273
273 } // namespace blink 274 } // namespace blink
274 275
275 #endif // VisualViewport_h 276 #endif // VisualViewport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698