Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: public/platform/WebLayerTreeView.h

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Format. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « public/platform/WebCompositorSupport.h ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 21 matching lines...) Expand all
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 blink { 39 namespace blink {
40 40
41 class WebCompositeAndReadbackAsyncCallback; 41 class WebCompositeAndReadbackAsyncCallback;
42 class WebCompositorAnimationTimeline;
42 class WebLayer; 43 class WebLayer;
43 struct WebPoint; 44 struct WebPoint;
44 struct WebSelectionBound; 45 struct WebSelectionBound;
45 class WebWidget; 46 class WebWidget;
46 47
47 class WebLayerTreeView { 48 class WebLayerTreeView {
48 public: 49 public:
49 virtual ~WebLayerTreeView() { } 50 virtual ~WebLayerTreeView() { }
50 51
51 // Initialization and lifecycle -------------------------------------- 52 // Initialization and lifecycle --------------------------------------
52 53
53 // Sets the root of the tree. The root is set by way of the constructor. 54 // Sets the root of the tree. The root is set by way of the constructor.
54 virtual void setRootLayer(const WebLayer&) = 0; 55 virtual void setRootLayer(const WebLayer&) = 0;
55 virtual void clearRootLayer() = 0; 56 virtual void clearRootLayer() = 0;
56 57
58 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin e*) { }
59 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin e*) { }
57 60
58 // View properties --------------------------------------------------- 61 // View properties ---------------------------------------------------
59 62
60 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; 63 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0;
61 // Gives the viewport size in physical device pixels. 64 // Gives the viewport size in physical device pixels.
62 virtual WebSize deviceViewportSize() const = 0; 65 virtual WebSize deviceViewportSize() const = 0;
63 66
64 virtual void setDeviceScaleFactor(float) = 0; 67 virtual void setDeviceScaleFactor(float) = 0;
65 virtual float deviceScaleFactor() const = 0; 68 virtual float deviceScaleFactor() const = 0;
66 69
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Toggles continuous painting 153 // Toggles continuous painting
151 virtual void setContinuousPaintingEnabled(bool) { } 154 virtual void setContinuousPaintingEnabled(bool) { }
152 155
153 // Toggles scroll bottleneck rects on the HUD layer 156 // Toggles scroll bottleneck rects on the HUD layer
154 virtual void setShowScrollBottleneckRects(bool) { } 157 virtual void setShowScrollBottleneckRects(bool) { }
155 }; 158 };
156 159
157 } // namespace blink 160 } // namespace blink
158 161
159 #endif // WebLayerTreeView_h 162 #endif // WebLayerTreeView_h
OLDNEW
« no previous file with comments | « public/platform/WebCompositorSupport.h ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698