OLD | NEW |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // WebAnimationDelegate implementation. | 63 // WebAnimationDelegate implementation. |
64 virtual void notifyAnimationStarted(double time) OVERRIDE; | 64 virtual void notifyAnimationStarted(double time) OVERRIDE; |
65 virtual void notifyAnimationFinished(double time) OVERRIDE; | 65 virtual void notifyAnimationFinished(double time) OVERRIDE; |
66 | 66 |
67 // LinkHighlightClient inplementation. | 67 // LinkHighlightClient inplementation. |
68 virtual void invalidate() OVERRIDE; | 68 virtual void invalidate() OVERRIDE; |
69 virtual WebLayer* layer() OVERRIDE; | 69 virtual WebLayer* layer() OVERRIDE; |
70 virtual void clearCurrentGraphicsLayer() OVERRIDE; | 70 virtual void clearCurrentGraphicsLayer() OVERRIDE; |
71 | 71 |
72 WebCore::GraphicsLayerChromium* currentGraphicsLayerForTesting() const { ret
urn m_currentGraphicsLayer; } | |
73 | |
74 private: | 72 private: |
75 LinkHighlight(WebCore::Node*, WebViewImpl*); | 73 LinkHighlight(WebCore::Node*, WebViewImpl*); |
76 | 74 |
77 void releaseResources(); | 75 void releaseResources(); |
78 | 76 |
79 WebCore::RenderLayer* computeEnclosingCompositingLayer(); | 77 WebCore::RenderLayer* computeEnclosingCompositingLayer(); |
80 void clearGraphicsLayerLinkHighlightPointer(); | 78 void clearGraphicsLayerLinkHighlightPointer(); |
81 // This function computes the highlight path, and returns true if it has cha
nged | 79 // This function computes the highlight path, and returns true if it has cha
nged |
82 // size since the last call to this function. | 80 // size since the last call to this function. |
83 bool computeHighlightLayerPathAndPosition(WebCore::RenderLayer*); | 81 bool computeHighlightLayerPathAndPosition(WebCore::RenderLayer*); |
84 | 82 |
85 OwnPtr<WebContentLayer> m_contentLayer; | 83 OwnPtr<WebContentLayer> m_contentLayer; |
86 OwnPtr<WebLayer> m_clipLayer; | 84 OwnPtr<WebLayer> m_clipLayer; |
87 WebCore::Path m_path; | 85 WebCore::Path m_path; |
88 | 86 |
89 RefPtr<WebCore::Node> m_node; | 87 RefPtr<WebCore::Node> m_node; |
90 OwnPtr<WebAnimation> m_animation; | 88 OwnPtr<WebAnimation> m_animation; |
91 WebViewImpl* m_owningWebViewImpl; | 89 WebViewImpl* m_owningWebViewImpl; |
92 WebCore::GraphicsLayerChromium* m_currentGraphicsLayer; | 90 WebCore::GraphicsLayerChromium* m_currentGraphicsLayer; |
93 bool m_usingNonCompositedContentHost; | 91 bool m_usingNonCompositedContentHost; |
94 | 92 |
95 bool m_geometryNeedsUpdate; | 93 bool m_geometryNeedsUpdate; |
96 bool m_isAnimating; | 94 bool m_isAnimating; |
97 double m_startTime; | 95 double m_startTime; |
98 }; | 96 }; |
99 | 97 |
100 } // namespace WebKit | 98 } // namespace WebKit |
101 | 99 |
102 #endif | 100 #endif |
OLD | NEW |