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

Side by Side Diff: cc/test/stub_layer_tree_host_client.h

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: TODO for GRC usage added. Created 3 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
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ 5 #ifndef CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_
6 #define CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ 6 #define CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_
7 7
8 #include "cc/trees/layer_tree_host_client.h" 8 #include "cc/trees/layer_tree_host_client.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 class StubLayerTreeHostClient : public LayerTreeHostClient { 12 class StubLayerTreeHostClient : public LayerTreeHostClient {
13 public: 13 public:
14 ~StubLayerTreeHostClient() override; 14 ~StubLayerTreeHostClient() override;
15 15
16 // LayerTreeHostClient implementation. 16 // LayerTreeHostClient implementation.
17 void WillBeginMainFrame() override {} 17 void WillBeginMainFrame() override {}
18 void DidBeginMainFrame() override {} 18 void DidBeginMainFrame() override {}
19 void BeginMainFrame(const BeginFrameArgs& args) override {} 19 void BeginMainFrame(const BeginFrameArgs& args) override {}
20 void BeginMainFrameNotExpectedSoon() override {} 20 void BeginMainFrameNotExpectedSoon() override {}
21 void UpdateLayerTreeHost() override {} 21 void UpdateLayerTreeHost() override {}
22 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 22 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
23 const gfx::Vector2dF& outer_delta, 23 const gfx::Vector2dF& outer_delta,
24 const gfx::Vector2dF& elastic_overscroll_delta, 24 const gfx::Vector2dF& elastic_overscroll_delta,
25 float page_scale, 25 float page_scale,
26 float top_controls_delta) override {} 26 float top_controls_delta) override {}
27 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel,
28 bool has_scrolled_by_touch) override {}
27 void RequestNewCompositorFrameSink() override {} 29 void RequestNewCompositorFrameSink() override {}
28 void DidInitializeCompositorFrameSink() override {} 30 void DidInitializeCompositorFrameSink() override {}
29 void DidFailToInitializeCompositorFrameSink() override {} 31 void DidFailToInitializeCompositorFrameSink() override {}
30 void WillCommit() override {} 32 void WillCommit() override {}
31 void DidCommit() override {} 33 void DidCommit() override {}
32 void DidCommitAndDrawFrame() override {} 34 void DidCommitAndDrawFrame() override {}
33 void DidReceiveCompositorFrameAck() override {} 35 void DidReceiveCompositorFrameAck() override {}
34 void DidCompletePageScaleAnimation() override {} 36 void DidCompletePageScaleAnimation() override {}
35 }; 37 };
36 38
37 } // namespace cc 39 } // namespace cc
38 40
39 #endif // CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ 41 #endif // CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698