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

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

Issue 2237433004: Adds DevTools commands for forced viewport override. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adress Dmitry's comments + sync. Created 4 years, 3 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 25 matching lines...) Expand all
36 bool hasLayer(const WebLayer&); 36 bool hasLayer(const WebLayer&);
37 37
38 // blink::WebLayerTreeView implementation. 38 // blink::WebLayerTreeView implementation.
39 void setRootLayer(const blink::WebLayer&) override; 39 void setRootLayer(const blink::WebLayer&) override;
40 void clearRootLayer() override; 40 void clearRootLayer() override;
41 void attachCompositorAnimationTimeline(cc::AnimationTimeline*) override; 41 void attachCompositorAnimationTimeline(cc::AnimationTimeline*) override;
42 void detachCompositorAnimationTimeline(cc::AnimationTimeline*) override; 42 void detachCompositorAnimationTimeline(cc::AnimationTimeline*) override;
43 virtual void setViewportSize(const blink::WebSize& unusedDeprecated, 43 virtual void setViewportSize(const blink::WebSize& unusedDeprecated,
44 const blink::WebSize& deviceViewportSize); 44 const blink::WebSize& deviceViewportSize);
45 void setViewportSize(const blink::WebSize&) override; 45 void setViewportSize(const blink::WebSize&) override;
46 WebSize getViewportSize() const override;
46 void setDeviceScaleFactor(float) override; 47 void setDeviceScaleFactor(float) override;
47 void setBackgroundColor(blink::WebColor) override; 48 void setBackgroundColor(blink::WebColor) override;
48 void setHasTransparentBackground(bool) override; 49 void setHasTransparentBackground(bool) override;
49 void setVisible(bool) override; 50 void setVisible(bool) override;
50 void setPageScaleFactorAndLimits(float pageScaleFactor, 51 void setPageScaleFactorAndLimits(float pageScaleFactor,
51 float minimum, 52 float minimum,
52 float maximum) override; 53 float maximum) override;
53 void startPageScaleAnimation(const blink::WebPoint& destination, 54 void startPageScaleAnimation(const blink::WebPoint& destination,
54 bool useAnchor, 55 bool useAnchor,
55 float newPageScale, 56 float newPageScale,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void DidAbortSwapBuffers() override {} 99 void DidAbortSwapBuffers() override {}
99 100
100 private: 101 private:
101 cc::TestTaskGraphRunner m_taskGraphRunner; 102 cc::TestTaskGraphRunner m_taskGraphRunner;
102 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; 103 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost;
103 }; 104 };
104 105
105 } // namespace blink 106 } // namespace blink
106 107
107 #endif // WebLayerTreeViewImplForTesting_h 108 #endif // WebLayerTreeViewImplForTesting_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698