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

Side by Side Diff: cc/trees/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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TREES_LAYER_TREE_HOST_CLIENT_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_CLIENT_H_
6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 25 matching lines...) Expand all
36 // state. (The "compositing state" will result in a mutated layer tree on the 36 // state. (The "compositing state" will result in a mutated layer tree on the
37 // LayerTreeHost via additional interface indirections which lead back to 37 // LayerTreeHost via additional interface indirections which lead back to
38 // mutations on the LayerTreeHost.) 38 // mutations on the LayerTreeHost.)
39 virtual void UpdateLayerTreeHost() = 0; 39 virtual void UpdateLayerTreeHost() = 0;
40 virtual void ApplyViewportDeltas( 40 virtual void ApplyViewportDeltas(
41 const gfx::Vector2dF& inner_delta, 41 const gfx::Vector2dF& inner_delta,
42 const gfx::Vector2dF& outer_delta, 42 const gfx::Vector2dF& outer_delta,
43 const gfx::Vector2dF& elastic_overscroll_delta, 43 const gfx::Vector2dF& elastic_overscroll_delta,
44 float page_scale, 44 float page_scale,
45 float top_controls_delta) = 0; 45 float top_controls_delta) = 0;
46 virtual void RecordWheelAndTouchScrollingCount(
47 bool has_scrolled_by_wheel,
48 bool has_scrolled_by_touch) = 0;
46 // Request an CompositorFrameSink from the client. When the client has one it 49 // Request an CompositorFrameSink from the client. When the client has one it
47 // should call LayerTreeHost::SetCompositorFrameSink. This will result in 50 // should call LayerTreeHost::SetCompositorFrameSink. This will result in
48 // either DidFailToInitializeCompositorFrameSink or 51 // either DidFailToInitializeCompositorFrameSink or
49 // DidInitializeCompositorFrameSink being called. 52 // DidInitializeCompositorFrameSink being called.
50 virtual void RequestNewCompositorFrameSink() = 0; 53 virtual void RequestNewCompositorFrameSink() = 0;
51 virtual void DidInitializeCompositorFrameSink() = 0; 54 virtual void DidInitializeCompositorFrameSink() = 0;
52 virtual void DidFailToInitializeCompositorFrameSink() = 0; 55 virtual void DidFailToInitializeCompositorFrameSink() = 0;
53 virtual void WillCommit() = 0; 56 virtual void WillCommit() = 0;
54 virtual void DidCommit() = 0; 57 virtual void DidCommit() = 0;
55 virtual void DidCommitAndDrawFrame() = 0; 58 virtual void DidCommitAndDrawFrame() = 0;
56 virtual void DidReceiveCompositorFrameAck() = 0; 59 virtual void DidReceiveCompositorFrameAck() = 0;
57 virtual void DidCompletePageScaleAnimation() = 0; 60 virtual void DidCompletePageScaleAnimation() = 0;
58 61
59 protected: 62 protected:
60 virtual ~LayerTreeHostClient() {} 63 virtual ~LayerTreeHostClient() {}
61 }; 64 };
62 65
63 } // namespace cc 66 } // namespace cc
64 67
65 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 68 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698