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

Side by Side Diff: Source/web/LinkHighlight.h

Issue 185633002: Adding monotonic only API to Blink's animation delegate interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding BLINK_PLATFORM_EXPORT back in. Created 6 years, 9 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/graphics/GraphicsLayerClient.h ('k') | Source/web/LinkHighlight.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 WebContentLayer* contentLayer(); 57 WebContentLayer* contentLayer();
58 WebLayer* clipLayer(); 58 WebLayer* clipLayer();
59 void startHighlightAnimationIfNeeded(); 59 void startHighlightAnimationIfNeeded();
60 void updateGeometry(); 60 void updateGeometry();
61 61
62 // WebContentLayerClient implementation. 62 // WebContentLayerClient implementation.
63 virtual void paintContents(WebCanvas*, const WebRect& clipRect, bool canPain tLCDText, WebFloatRect& opaque) OVERRIDE; 63 virtual void paintContents(WebCanvas*, const WebRect& clipRect, bool canPain tLCDText, WebFloatRect& opaque) OVERRIDE;
64 64
65 // WebAnimationDelegate implementation. 65 // WebAnimationDelegate implementation.
66 virtual void notifyAnimationStarted(double wallClockTime, double monotonicTi me, blink::WebAnimation::TargetProperty) OVERRIDE; 66 virtual void notifyAnimationStarted(double monotonicTime, blink::WebAnimatio n::TargetProperty) OVERRIDE;
67 virtual void notifyAnimationFinished(double wallClockTime, double monotonicT ime, blink::WebAnimation::TargetProperty) OVERRIDE; 67 virtual void notifyAnimationFinished(double monotonicTime, blink::WebAnimati on::TargetProperty) OVERRIDE;
68 68
69 // LinkHighlightClient inplementation. 69 // LinkHighlightClient inplementation.
70 virtual void invalidate() OVERRIDE; 70 virtual void invalidate() OVERRIDE;
71 virtual WebLayer* layer() OVERRIDE; 71 virtual WebLayer* layer() OVERRIDE;
72 virtual void clearCurrentGraphicsLayer() OVERRIDE; 72 virtual void clearCurrentGraphicsLayer() OVERRIDE;
73 73
74 WebCore::GraphicsLayer* currentGraphicsLayerForTesting() const { return m_cu rrentGraphicsLayer; } 74 WebCore::GraphicsLayer* currentGraphicsLayerForTesting() const { return m_cu rrentGraphicsLayer; }
75 75
76 private: 76 private:
77 LinkHighlight(WebCore::Node*, WebViewImpl*); 77 LinkHighlight(WebCore::Node*, WebViewImpl*);
(...skipping 16 matching lines...) Expand all
94 WebCore::GraphicsLayer* m_currentGraphicsLayer; 94 WebCore::GraphicsLayer* m_currentGraphicsLayer;
95 95
96 bool m_geometryNeedsUpdate; 96 bool m_geometryNeedsUpdate;
97 bool m_isAnimating; 97 bool m_isAnimating;
98 double m_startTime; 98 double m_startTime;
99 }; 99 };
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif 103 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayerClient.h ('k') | Source/web/LinkHighlight.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698