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

Side by Side Diff: third_party/WebKit/Source/web/LinkHighlightImpl.h

Issue 1587073011: Plumb NotifyAnimationAborted from the compositor to blink animation delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize aborted_ in unittest Created 4 years, 11 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void startHighlightAnimationIfNeeded(); 59 void startHighlightAnimationIfNeeded();
60 void updateGeometry(); 60 void updateGeometry();
61 61
62 // WebContentLayerClient implementation. 62 // WebContentLayerClient implementation.
63 gfx::Rect paintableRegion() override; 63 gfx::Rect paintableRegion() override;
64 void paintContents(WebDisplayItemList*, WebContentLayerClient::PaintingContr olSetting) override; 64 void paintContents(WebDisplayItemList*, WebContentLayerClient::PaintingContr olSetting) override;
65 65
66 // WebCompositorAnimationDelegate implementation. 66 // WebCompositorAnimationDelegate implementation.
67 void notifyAnimationStarted(double monotonicTime, int group) override; 67 void notifyAnimationStarted(double monotonicTime, int group) override;
68 void notifyAnimationFinished(double monotonicTime, int group) override; 68 void notifyAnimationFinished(double monotonicTime, int group) override;
69 void notifyAnimationAborted(double monotonicTime, int group) override { }
69 70
70 // LinkHighlight implementation. 71 // LinkHighlight implementation.
71 void invalidate() override; 72 void invalidate() override;
72 WebLayer* layer() override; 73 WebLayer* layer() override;
73 void clearCurrentGraphicsLayer() override; 74 void clearCurrentGraphicsLayer() override;
74 75
75 // WebCompositorAnimationPlayerClient implementation. 76 // WebCompositorAnimationPlayerClient implementation.
76 WebCompositorAnimationPlayer* compositorPlayer() const override; 77 WebCompositorAnimationPlayer* compositorPlayer() const override;
77 78
78 GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGrap hicsLayer; } 79 GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGrap hicsLayer; }
(...skipping 20 matching lines...) Expand all
99 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; 100 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer;
100 101
101 bool m_geometryNeedsUpdate; 102 bool m_geometryNeedsUpdate;
102 bool m_isAnimating; 103 bool m_isAnimating;
103 double m_startTime; 104 double m_startTime;
104 }; 105 };
105 106
106 } // namespace blink 107 } // namespace blink
107 108
108 #endif // LinkHighlightImpl_h 109 #endif // LinkHighlightImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698