| 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 16 matching lines...) Expand all Loading... |
| 27 #define LinkHighlightImpl_h | 27 #define LinkHighlightImpl_h |
| 28 | 28 |
| 29 #include "platform/animation/CompositorAnimationPlayer.h" | 29 #include "platform/animation/CompositorAnimationPlayer.h" |
| 30 #include "platform/animation/CompositorAnimationPlayerClient.h" | 30 #include "platform/animation/CompositorAnimationPlayerClient.h" |
| 31 #include "platform/graphics/LinkHighlight.h" | 31 #include "platform/graphics/LinkHighlight.h" |
| 32 #include "platform/graphics/Path.h" | 32 #include "platform/graphics/Path.h" |
| 33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 34 #include "public/platform/WebCompositorAnimationDelegate.h" | 34 #include "public/platform/WebCompositorAnimationDelegate.h" |
| 35 #include "public/platform/WebContentLayer.h" | 35 #include "public/platform/WebContentLayer.h" |
| 36 #include "public/platform/WebContentLayerClient.h" | 36 #include "public/platform/WebContentLayerClient.h" |
| 37 #include "web/WebExport.h" |
| 37 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
| 38 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
| 39 | 40 |
| 40 namespace blink { | 41 namespace blink { |
| 41 | 42 |
| 42 class GraphicsLayer; | 43 class GraphicsLayer; |
| 43 class LayoutBoxModelObject; | 44 class LayoutBoxModelObject; |
| 44 class Node; | 45 class Node; |
| 45 class WebContentLayer; | 46 class WebContentLayer; |
| 46 class WebLayer; | 47 class WebLayer; |
| 47 class WebViewImpl; | 48 class WebViewImpl; |
| 48 | 49 |
| 49 class LinkHighlightImpl final : public LinkHighlight | 50 class WEB_EXPORT LinkHighlightImpl final : public LinkHighlight |
| 50 , public WebContentLayerClient | 51 , public WebContentLayerClient |
| 51 , public WebCompositorAnimationDelegate | 52 , public WebCompositorAnimationDelegate |
| 52 , public CompositorAnimationPlayerClient { | 53 , public CompositorAnimationPlayerClient { |
| 53 public: | 54 public: |
| 54 static PassOwnPtr<LinkHighlightImpl> create(Node*, WebViewImpl*); | 55 static PassOwnPtr<LinkHighlightImpl> create(Node*, WebViewImpl*); |
| 55 ~LinkHighlightImpl() override; | 56 ~LinkHighlightImpl() override; |
| 56 | 57 |
| 57 WebContentLayer* contentLayer(); | 58 WebContentLayer* contentLayer(); |
| 58 WebLayer* clipLayer(); | 59 WebLayer* clipLayer(); |
| 59 void startHighlightAnimationIfNeeded(); | 60 void startHighlightAnimationIfNeeded(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 OwnPtr<CompositorAnimationPlayer> m_compositorPlayer; | 101 OwnPtr<CompositorAnimationPlayer> m_compositorPlayer; |
| 101 | 102 |
| 102 bool m_geometryNeedsUpdate; | 103 bool m_geometryNeedsUpdate; |
| 103 bool m_isAnimating; | 104 bool m_isAnimating; |
| 104 double m_startTime; | 105 double m_startTime; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace blink | 108 } // namespace blink |
| 108 | 109 |
| 109 #endif // LinkHighlightImpl_h | 110 #endif // LinkHighlightImpl_h |
| OLD | NEW |