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

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

Issue 880653004: Blink side of changes to enable cache clearing without a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Better use of enum. 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/graphics/ContentLayerDelegate.cpp ('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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 public: 49 public:
50 static PassOwnPtr<LinkHighlight> create(Node*, WebViewImpl*); 50 static PassOwnPtr<LinkHighlight> create(Node*, WebViewImpl*);
51 virtual ~LinkHighlight(); 51 virtual ~LinkHighlight();
52 52
53 WebContentLayer* contentLayer(); 53 WebContentLayer* contentLayer();
54 WebLayer* clipLayer(); 54 WebLayer* clipLayer();
55 void startHighlightAnimationIfNeeded(); 55 void startHighlightAnimationIfNeeded();
56 void updateGeometry(); 56 void updateGeometry();
57 57
58 // WebContentLayerClient implementation. 58 // WebContentLayerClient implementation.
59 virtual void paintContents(WebCanvas*, const WebRect& clipRect, WebContentLa yerClient::GraphicsContextStatus) override; 59 virtual void paintContents(WebCanvas*, const WebRect& clipRect, WebContentLa yerClient::PaintingControlSetting) override;
60 virtual void paintContents(WebDisplayItemList*, const WebRect& clipRect, Web ContentLayerClient::GraphicsContextStatus) override { } 60 virtual void paintContents(WebDisplayItemList*, const WebRect& clipRect, Web ContentLayerClient::PaintingControlSetting) override { }
61 61
62 // WebCompositorAnimationDelegate implementation. 62 // WebCompositorAnimationDelegate implementation.
63 virtual void notifyAnimationStarted(double monotonicTime, int group) overrid e; 63 virtual void notifyAnimationStarted(double monotonicTime, int group) overrid e;
64 virtual void notifyAnimationFinished(double monotonicTime, int group) overri de; 64 virtual void notifyAnimationFinished(double monotonicTime, int group) overri de;
65 65
66 // LinkHighlightClient inplementation. 66 // LinkHighlightClient implementation.
67 virtual void invalidate() override; 67 virtual void invalidate() override;
68 virtual WebLayer* layer() override; 68 virtual WebLayer* layer() override;
69 virtual void clearCurrentGraphicsLayer() override; 69 virtual void clearCurrentGraphicsLayer() override;
70 70
71 GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGrap hicsLayer; } 71 GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGrap hicsLayer; }
72 72
73 private: 73 private:
74 LinkHighlight(Node*, WebViewImpl*); 74 LinkHighlight(Node*, WebViewImpl*);
75 75
76 void releaseResources(); 76 void releaseResources();
(...skipping 16 matching lines...) Expand all
93 GraphicsLayer* m_currentGraphicsLayer; 93 GraphicsLayer* m_currentGraphicsLayer;
94 94
95 bool m_geometryNeedsUpdate; 95 bool m_geometryNeedsUpdate;
96 bool m_isAnimating; 96 bool m_isAnimating;
97 double m_startTime; 97 double m_startTime;
98 }; 98 };
99 99
100 } // namespace blink 100 } // namespace blink
101 101
102 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/ContentLayerDelegate.cpp ('k') | Source/web/LinkHighlight.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698