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

Side by Side Diff: Source/platform/scroll/ScrollAnimatorNone.h

Issue 905463007: Update ScrollAnimator's copy of the layer dimensions after layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: contentsResized -> updateAfterLayout 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/platform/scroll/ScrollAnimator.h ('k') | Source/platform/scroll/ScrollAnimatorNone.cpp » ('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 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 explicit ScrollAnimatorNone(ScrollableArea*); 44 explicit ScrollAnimatorNone(ScrollableArea*);
45 virtual ~ScrollAnimatorNone(); 45 virtual ~ScrollAnimatorNone();
46 46
47 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, flo at delta) override; 47 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, flo at delta) override;
48 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&) override; 48 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&) override;
49 49
50 virtual void cancelAnimations() override; 50 virtual void cancelAnimations() override;
51 virtual void serviceScrollAnimations() override; 51 virtual void serviceScrollAnimations() override;
52 virtual bool hasRunningAnimation() const override; 52 virtual bool hasRunningAnimation() const override;
53 53
54 virtual void updateAfterLayout() override;
54 virtual void willEndLiveResize() override; 55 virtual void willEndLiveResize() override;
55 virtual void didAddVerticalScrollbar(Scrollbar*) override; 56 virtual void didAddVerticalScrollbar(Scrollbar*) override;
56 virtual void didAddHorizontalScrollbar(Scrollbar*) override; 57 virtual void didAddHorizontalScrollbar(Scrollbar*) override;
57 58
58 enum Curve { 59 enum Curve {
59 Linear, 60 Linear,
60 Quadratic, 61 Quadratic,
61 Cubic, 62 Cubic,
62 Quartic, 63 Quartic,
63 Bounce 64 Bounce
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 PerAxisData m_horizontalData; 145 PerAxisData m_horizontalData;
145 PerAxisData m_verticalData; 146 PerAxisData m_verticalData;
146 147
147 double m_startTime; 148 double m_startTime;
148 bool m_animationActive; 149 bool m_animationActive;
149 }; 150 };
150 151
151 } // namespace blink 152 } // namespace blink
152 153
153 #endif // ScrollAnimatorNone_h 154 #endif // ScrollAnimatorNone_h
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollAnimator.h ('k') | Source/platform/scroll/ScrollAnimatorNone.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698