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

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

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: TODO for GRC usage added. 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void WillBeginMainFrame() override {} 79 void WillBeginMainFrame() override {}
80 void DidBeginMainFrame() override {} 80 void DidBeginMainFrame() override {}
81 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} 81 void BeginMainFrame(const cc::BeginFrameArgs& args) override {}
82 void BeginMainFrameNotExpectedSoon() override {} 82 void BeginMainFrameNotExpectedSoon() override {}
83 void UpdateLayerTreeHost() override; 83 void UpdateLayerTreeHost() override;
84 void ApplyViewportDeltas(const gfx::Vector2dF& innerDelta, 84 void ApplyViewportDeltas(const gfx::Vector2dF& innerDelta,
85 const gfx::Vector2dF& outerDelta, 85 const gfx::Vector2dF& outerDelta,
86 const gfx::Vector2dF& elasticOverscrollDelta, 86 const gfx::Vector2dF& elasticOverscrollDelta,
87 float pageScale, 87 float pageScale,
88 float browserControlsDelta) override; 88 float browserControlsDelta) override;
89 void RecordWheelAndTouchScrollingCount(bool hasScrolledByWheel,
90 bool hasScrolledByTouch) override;
89 void RequestNewCompositorFrameSink() override; 91 void RequestNewCompositorFrameSink() override;
90 void DidInitializeCompositorFrameSink() override {} 92 void DidInitializeCompositorFrameSink() override {}
91 void DidFailToInitializeCompositorFrameSink() override; 93 void DidFailToInitializeCompositorFrameSink() override;
92 void WillCommit() override {} 94 void WillCommit() override {}
93 void DidCommit() override {} 95 void DidCommit() override {}
94 void DidCommitAndDrawFrame() override {} 96 void DidCommitAndDrawFrame() override {}
95 void DidReceiveCompositorFrameAck() override {} 97 void DidReceiveCompositorFrameAck() override {}
96 void DidCompletePageScaleAnimation() override {} 98 void DidCompletePageScaleAnimation() override {}
97 99
98 // cc::LayerTreeHostSingleThreadClient implementation. 100 // cc::LayerTreeHostSingleThreadClient implementation.
99 void DidSubmitCompositorFrame() override {} 101 void DidSubmitCompositorFrame() override {}
100 void DidLoseCompositorFrameSink() override {} 102 void DidLoseCompositorFrameSink() override {}
101 103
102 private: 104 private:
103 cc::TestTaskGraphRunner m_taskGraphRunner; 105 cc::TestTaskGraphRunner m_taskGraphRunner;
104 std::unique_ptr<cc::AnimationHost> m_animationHost; 106 std::unique_ptr<cc::AnimationHost> m_animationHost;
105 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; 107 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost;
106 }; 108 };
107 109
108 } // namespace blink 110 } // namespace blink
109 111
110 #endif // WebLayerTreeViewImplForTesting_h 112 #endif // WebLayerTreeViewImplForTesting_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698