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

Side by Side Diff: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.h

Issue 2784783002: DNS: Testing for [blink] Support (semi-)transparent background colors.
Patch Set: test with !hasAlpha instead of alpha > 0 Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebLayerTreeViewImplForTesting_h 5 #ifndef WebLayerTreeViewImplForTesting_h
6 #define WebLayerTreeViewImplForTesting_h 6 #define WebLayerTreeViewImplForTesting_h
7 7
8 #include "cc/test/test_task_graph_runner.h" 8 #include "cc/test/test_task_graph_runner.h"
9 #include "cc/trees/layer_tree_host_client.h" 9 #include "cc/trees/layer_tree_host_client.h"
10 #include "cc/trees/layer_tree_host_single_thread_client.h" 10 #include "cc/trees/layer_tree_host_single_thread_client.h"
(...skipping 29 matching lines...) Expand all
40 // blink::WebLayerTreeView implementation. 40 // blink::WebLayerTreeView implementation.
41 void setRootLayer(const blink::WebLayer&) override; 41 void setRootLayer(const blink::WebLayer&) override;
42 void clearRootLayer() override; 42 void clearRootLayer() override;
43 cc::AnimationHost* compositorAnimationHost() override; 43 cc::AnimationHost* compositorAnimationHost() override;
44 virtual void setViewportSize(const blink::WebSize& unusedDeprecated, 44 virtual void setViewportSize(const blink::WebSize& unusedDeprecated,
45 const blink::WebSize& deviceViewportSize); 45 const blink::WebSize& deviceViewportSize);
46 void setViewportSize(const blink::WebSize&) override; 46 void setViewportSize(const blink::WebSize&) override;
47 WebSize getViewportSize() const override; 47 WebSize getViewportSize() const override;
48 void setDeviceScaleFactor(float) override; 48 void setDeviceScaleFactor(float) override;
49 void setBackgroundColor(blink::WebColor) override; 49 void setBackgroundColor(blink::WebColor) override;
50 void setHasTransparentBackground(bool) override;
51 void setVisible(bool) override; 50 void setVisible(bool) override;
52 void setPageScaleFactorAndLimits(float pageScaleFactor, 51 void setPageScaleFactorAndLimits(float pageScaleFactor,
53 float minimum, 52 float minimum,
54 float maximum) override; 53 float maximum) override;
55 void startPageScaleAnimation(const blink::WebPoint& destination, 54 void startPageScaleAnimation(const blink::WebPoint& destination,
56 bool useAnchor, 55 bool useAnchor,
57 float newPageScale, 56 float newPageScale,
58 double durationSec) override; 57 double durationSec) override;
59 void setNeedsBeginFrame() override; 58 void setNeedsBeginFrame() override;
60 void setNeedsCompositorUpdate() override; 59 void setNeedsCompositorUpdate() override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 102
104 private: 103 private:
105 cc::TestTaskGraphRunner m_taskGraphRunner; 104 cc::TestTaskGraphRunner m_taskGraphRunner;
106 std::unique_ptr<cc::AnimationHost> m_animationHost; 105 std::unique_ptr<cc::AnimationHost> m_animationHost;
107 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; 106 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost;
108 }; 107 };
109 108
110 } // namespace blink 109 } // namespace blink
111 110
112 #endif // WebLayerTreeViewImplForTesting_h 111 #endif // WebLayerTreeViewImplForTesting_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698