| 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 WebCompositorSupport_h | 27 #define WebCompositorSupport_h |
| 28 | 28 |
| 29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
| 30 #include "WebFloatPoint.h" | 30 #include "WebFloatPoint.h" |
| 31 #include "WebLayerTreeView.h" | 31 #include "WebLayerTreeView.h" |
| 32 #include "WebScrollbar.h" | 32 #include "WebScrollbar.h" |
| 33 #include "WebScrollbarThemePainter.h" | 33 #include "WebScrollbarThemePainter.h" |
| 34 | 34 |
| 35 namespace cc { | 35 namespace cc { |
| 36 class Layer; | 36 class Layer; |
| 37 class TextureLayerClient; |
| 37 } | 38 } |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 | 41 |
| 41 class WebContentLayer; | 42 class WebContentLayer; |
| 42 class WebContentLayerClient; | 43 class WebContentLayerClient; |
| 43 class WebExternalTextureLayer; | 44 class WebExternalTextureLayer; |
| 44 class WebExternalTextureLayerClient; | |
| 45 class WebImageLayer; | 45 class WebImageLayer; |
| 46 class WebLayer; | 46 class WebLayer; |
| 47 class WebScrollbarLayer; | 47 class WebScrollbarLayer; |
| 48 class WebScrollbarThemeGeometry; | 48 class WebScrollbarThemeGeometry; |
| 49 | 49 |
| 50 class WebCompositorSupport { | 50 class WebCompositorSupport { |
| 51 public: | 51 public: |
| 52 | 52 |
| 53 // Layers ------------------------------------------------------- | 53 // Layers ------------------------------------------------------- |
| 54 | 54 |
| 55 virtual WebLayer* createLayer() { return nullptr; } | 55 virtual WebLayer* createLayer() { return nullptr; } |
| 56 | 56 |
| 57 virtual WebLayer* createLayerFromCCLayer(cc::Layer*) { return nullptr; } | 57 virtual WebLayer* createLayerFromCCLayer(cc::Layer*) { return nullptr; } |
| 58 | 58 |
| 59 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
nullptr; } | 59 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
nullptr; } |
| 60 | 60 |
| 61 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return nullptr; } | 61 virtual WebExternalTextureLayer* createExternalTextureLayer(cc::TextureLayer
Client*) { return nullptr; } |
| 62 | 62 |
| 63 virtual WebImageLayer* createImageLayer() { return nullptr; } | 63 virtual WebImageLayer* createImageLayer() { return nullptr; } |
| 64 | 64 |
| 65 // The ownership of the WebScrollbarThemeGeometry pointer is passed to Chrom
ium. | 65 // The ownership of the WebScrollbarThemeGeometry pointer is passed to Chrom
ium. |
| 66 virtual WebScrollbarLayer* createScrollbarLayer(WebScrollbar*, WebScrollbarT
hemePainter, WebScrollbarThemeGeometry*) { return nullptr; } | 66 virtual WebScrollbarLayer* createScrollbarLayer(WebScrollbar*, WebScrollbarT
hemePainter, WebScrollbarThemeGeometry*) { return nullptr; } |
| 67 | 67 |
| 68 virtual WebScrollbarLayer* createSolidColorScrollbarLayer(WebScrollbar::Orie
ntation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar) {
return nullptr; } | 68 virtual WebScrollbarLayer* createSolidColorScrollbarLayer(WebScrollbar::Orie
ntation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar) {
return nullptr; } |
| 69 | 69 |
| 70 protected: | 70 protected: |
| 71 virtual ~WebCompositorSupport() { } | 71 virtual ~WebCompositorSupport() { } |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } | 74 } |
| 75 | 75 |
| 76 #endif // WebCompositorSupport_h | 76 #endif // WebCompositorSupport_h |
| OLD | NEW |