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

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

Issue 554183004: Add an alternate paintContents method to WebContentLayerClient. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: opaquerecttracking: expectations Created 6 years, 3 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 | Annotate | Revision Log
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 public: 51 public:
52 static PassOwnPtr<LinkHighlight> create(Node*, WebViewImpl*); 52 static PassOwnPtr<LinkHighlight> create(Node*, WebViewImpl*);
53 virtual ~LinkHighlight(); 53 virtual ~LinkHighlight();
54 54
55 WebContentLayer* contentLayer(); 55 WebContentLayer* contentLayer();
56 WebLayer* clipLayer(); 56 WebLayer* clipLayer();
57 void startHighlightAnimationIfNeeded(); 57 void startHighlightAnimationIfNeeded();
58 void updateGeometry(); 58 void updateGeometry();
59 59
60 // WebContentLayerClient implementation. 60 // WebContentLayerClient implementation.
61 virtual void paintContents(WebCanvas*, const WebRect& clipRect, bool canPain tLCDText, WebFloatRect& opaque, 61 virtual void paintContents(WebCanvas*, const WebRect& clipRect, bool canPain tLCDText, WebFloatRect& opaque, WebContentLayerClient::GraphicsContextStatus = G raphicsContextEnabled) OVERRIDE;
62 WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) O VERRIDE; 62 virtual void paintContents(WebCanvas*, const WebRect& clipRect, bool canPain tLCDText, WebContentLayerClient::GraphicsContextStatus) OVERRIDE;
63 63
64 // WebCompositorAnimationDelegate implementation. 64 // WebCompositorAnimationDelegate implementation.
65 virtual void notifyAnimationStarted(double monotonicTime, blink::WebComposit orAnimation::TargetProperty) OVERRIDE; 65 virtual void notifyAnimationStarted(double monotonicTime, blink::WebComposit orAnimation::TargetProperty) OVERRIDE;
66 virtual void notifyAnimationFinished(double monotonicTime, blink::WebComposi torAnimation::TargetProperty) OVERRIDE; 66 virtual void notifyAnimationFinished(double monotonicTime, blink::WebComposi torAnimation::TargetProperty) OVERRIDE;
67 67
68 // LinkHighlightClient inplementation. 68 // LinkHighlightClient inplementation.
69 virtual void invalidate() OVERRIDE; 69 virtual void invalidate() OVERRIDE;
70 virtual WebLayer* layer() OVERRIDE; 70 virtual WebLayer* layer() OVERRIDE;
71 virtual void clearCurrentGraphicsLayer() OVERRIDE; 71 virtual void clearCurrentGraphicsLayer() OVERRIDE;
72 72
(...skipping 21 matching lines...) Expand all
94 GraphicsLayer* m_currentGraphicsLayer; 94 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

Powered by Google App Engine
This is Rietveld 408576698