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

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: Fix the order. Created 5 years, 9 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
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 setCompositorAnimationTimeline(WebCompositorAnimationTimeline*) { }
57 59
58 // View properties --------------------------------------------------- 60 // View properties ---------------------------------------------------
59 61
60 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; 62 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0;
61 // Gives the viewport size in physical device pixels. 63 // Gives the viewport size in physical device pixels.
62 virtual WebSize deviceViewportSize() const = 0; 64 virtual WebSize deviceViewportSize() const = 0;
63 65
64 virtual void setDeviceScaleFactor(float) = 0; 66 virtual void setDeviceScaleFactor(float) = 0;
65 virtual float deviceScaleFactor() const = 0; 67 virtual float deviceScaleFactor() const = 0;
66 68
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Toggles continuous painting 152 // Toggles continuous painting
151 virtual void setContinuousPaintingEnabled(bool) { } 153 virtual void setContinuousPaintingEnabled(bool) { }
152 154
153 // Toggles scroll bottleneck rects on the HUD layer 155 // Toggles scroll bottleneck rects on the HUD layer
154 virtual void setShowScrollBottleneckRects(bool) { } 156 virtual void setShowScrollBottleneckRects(bool) { }
155 }; 157 };
156 158
157 } // namespace blink 159 } // namespace blink
158 160
159 #endif // WebLayerTreeView_h 161 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698