| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef SKY_ENGINE_WEB_GRAPHICSLAYERFACTORYCHROMIUM_H_ | 26 #ifndef SKY_ENGINE_WEB_GRAPHICSLAYERFACTORYCHROMIUM_H_ |
| 27 #define SKY_ENGINE_WEB_GRAPHICSLAYERFACTORYCHROMIUM_H_ | 27 #define SKY_ENGINE_WEB_GRAPHICSLAYERFACTORYCHROMIUM_H_ |
| 28 | 28 |
| 29 #include "sky/engine/platform/graphics/GraphicsLayerFactory.h" | 29 #include "sky/engine/platform/graphics/GraphicsLayerFactory.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 class WebViewImpl; | |
| 33 | 32 |
| 34 class GraphicsLayerFactoryChromium final : public GraphicsLayerFactory { | 33 class GraphicsLayerFactoryChromium final : public GraphicsLayerFactory { |
| 35 public: | 34 public: |
| 36 explicit GraphicsLayerFactoryChromium(WebViewImpl*); | 35 explicit GraphicsLayerFactoryChromium(); |
| 37 | |
| 38 virtual ~GraphicsLayerFactoryChromium(); | 36 virtual ~GraphicsLayerFactoryChromium(); |
| 39 | |
| 40 virtual PassOwnPtr<GraphicsLayer> createGraphicsLayer(GraphicsLayerClient*)
override; | 37 virtual PassOwnPtr<GraphicsLayer> createGraphicsLayer(GraphicsLayerClient*)
override; |
| 41 | |
| 42 private: | |
| 43 // The owner of this GraphicsLayerFactoryChromium. | |
| 44 WebViewImpl* m_webView; | |
| 45 }; | 38 }; |
| 46 | 39 |
| 47 } // namespace blink | 40 } // namespace blink |
| 48 | 41 |
| 49 #endif // SKY_ENGINE_WEB_GRAPHICSLAYERFACTORYCHROMIUM_H_ | 42 #endif // SKY_ENGINE_WEB_GRAPHICSLAYERFACTORYCHROMIUM_H_ |
| OLD | NEW |