| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 18 matching lines...) Expand all Loading... |
| 29 #include "WebColor.h" | 29 #include "WebColor.h" |
| 30 #include "WebCommon.h" | 30 #include "WebCommon.h" |
| 31 #include "WebFloatPoint.h" | 31 #include "WebFloatPoint.h" |
| 32 #include "WebNonCopyable.h" | 32 #include "WebNonCopyable.h" |
| 33 #include "WebPrivateOwnPtr.h" | 33 #include "WebPrivateOwnPtr.h" |
| 34 #include "WebSize.h" | 34 #include "WebSize.h" |
| 35 #include "WebTopControlsState.h" | 35 #include "WebTopControlsState.h" |
| 36 | 36 |
| 37 class SkBitmap; | 37 class SkBitmap; |
| 38 | 38 |
| 39 namespace cc { |
| 40 class AnimationTimeline; |
| 41 } |
| 42 |
| 39 namespace blink { | 43 namespace blink { |
| 40 | 44 |
| 41 class WebCompositeAndReadbackAsyncCallback; | 45 class WebCompositeAndReadbackAsyncCallback; |
| 42 class WebCompositorAnimationTimeline; | |
| 43 class WebLayer; | 46 class WebLayer; |
| 44 class WebLayoutAndPaintAsyncCallback; | 47 class WebLayoutAndPaintAsyncCallback; |
| 45 struct WebPoint; | 48 struct WebPoint; |
| 46 struct WebSelectionBound; | 49 struct WebSelectionBound; |
| 47 class WebSelection; | 50 class WebSelection; |
| 48 class WebWidget; | 51 class WebWidget; |
| 49 | 52 |
| 50 class WebLayerTreeView { | 53 class WebLayerTreeView { |
| 51 public: | 54 public: |
| 52 virtual ~WebLayerTreeView() { } | 55 virtual ~WebLayerTreeView() { } |
| 53 | 56 |
| 54 // Initialization and lifecycle -------------------------------------- | 57 // Initialization and lifecycle -------------------------------------- |
| 55 | 58 |
| 56 // Sets the root of the tree. The root is set by way of the constructor. | 59 // Sets the root of the tree. The root is set by way of the constructor. |
| 57 virtual void setRootLayer(const WebLayer&) { } | 60 virtual void setRootLayer(const WebLayer&) { } |
| 58 virtual void clearRootLayer() { } | 61 virtual void clearRootLayer() { } |
| 59 | 62 |
| 60 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } | 63 virtual void attachCompositorAnimationTimeline(cc::AnimationTimeline*) { } |
| 61 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } | 64 virtual void detachCompositorAnimationTimeline(cc::AnimationTimeline*) { } |
| 62 | 65 |
| 63 // View properties --------------------------------------------------- | 66 // View properties --------------------------------------------------- |
| 64 | 67 |
| 65 virtual void setViewportSize(const WebSize& deviceViewportSize) { } | 68 virtual void setViewportSize(const WebSize& deviceViewportSize) { } |
| 66 | 69 |
| 67 virtual void setDeviceScaleFactor(float) { } | 70 virtual void setDeviceScaleFactor(float) { } |
| 68 | 71 |
| 69 // Sets the background color for the viewport. | 72 // Sets the background color for the viewport. |
| 70 virtual void setBackgroundColor(WebColor) { } | 73 virtual void setBackgroundColor(WebColor) { } |
| 71 | 74 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // Toggles the debug borders on layers | 162 // Toggles the debug borders on layers |
| 160 virtual void setShowDebugBorders(bool) { } | 163 virtual void setShowDebugBorders(bool) { } |
| 161 | 164 |
| 162 // Toggles scroll bottleneck rects on the HUD layer | 165 // Toggles scroll bottleneck rects on the HUD layer |
| 163 virtual void setShowScrollBottleneckRects(bool) { } | 166 virtual void setShowScrollBottleneckRects(bool) { } |
| 164 }; | 167 }; |
| 165 | 168 |
| 166 } // namespace blink | 169 } // namespace blink |
| 167 | 170 |
| 168 #endif // WebLayerTreeView_h | 171 #endif // WebLayerTreeView_h |
| OLD | NEW |