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

Side by Side Diff: cc/input/input_handler.h

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 years, 1 month 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/debug/frame_rate_counter.cc ('k') | cc/input/top_controls_manager.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_INPUT_INPUT_HANDLER_H_ 5 #ifndef CC_INPUT_INPUT_HANDLER_H_
6 #define CC_INPUT_INPUT_HANDLER_H_ 6 #define CC_INPUT_INPUT_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/input/scrollbar.h" 11 #include "cc/input/scrollbar.h"
12 #include "ui/gfx/frame_time.h"
12 13
13 namespace gfx { 14 namespace gfx {
14 class Point; 15 class Point;
15 class PointF; 16 class PointF;
16 class Vector2d; 17 class Vector2d;
17 class Vector2dF; 18 class Vector2dF;
18 } 19 }
19 20
20 namespace ui { struct LatencyInfo; } 21 namespace ui { struct LatencyInfo; }
21 22
22 namespace cc { 23 namespace cc {
23 24
24 class LayerScrollOffsetDelegate; 25 class LayerScrollOffsetDelegate;
25 26
26 struct DidOverscrollParams { 27 struct DidOverscrollParams {
27 gfx::Vector2dF accumulated_overscroll; 28 gfx::Vector2dF accumulated_overscroll;
28 gfx::Vector2dF latest_overscroll_delta; 29 gfx::Vector2dF latest_overscroll_delta;
29 gfx::Vector2dF current_fling_velocity; 30 gfx::Vector2dF current_fling_velocity;
30 }; 31 };
31 32
32 class CC_EXPORT InputHandlerClient { 33 class CC_EXPORT InputHandlerClient {
33 public: 34 public:
34 virtual ~InputHandlerClient() {} 35 virtual ~InputHandlerClient() {}
35 36
36 virtual void WillShutdown() = 0; 37 virtual void WillShutdown() = 0;
37 virtual void Animate(base::TimeTicks time) = 0; 38 virtual void Animate(gfx::FrameTime time) = 0;
38 virtual void MainThreadHasStoppedFlinging() = 0; 39 virtual void MainThreadHasStoppedFlinging() = 0;
39 40
40 // Called when scroll deltas reaching the root scrolling layer go unused. 41 // Called when scroll deltas reaching the root scrolling layer go unused.
41 // The accumulated overscroll is scoped by the most recent call to 42 // The accumulated overscroll is scoped by the most recent call to
42 // InputHandler::ScrollBegin. 43 // InputHandler::ScrollBegin.
43 virtual void DidOverscroll(const DidOverscrollParams& params) = 0; 44 virtual void DidOverscroll(const DidOverscrollParams& params) = 0;
44 45
45 protected: 46 protected:
46 InputHandlerClient() {} 47 InputHandlerClient() {}
47 48
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 InputHandler() {} 134 InputHandler() {}
134 virtual ~InputHandler() {} 135 virtual ~InputHandler() {}
135 136
136 private: 137 private:
137 DISALLOW_COPY_AND_ASSIGN(InputHandler); 138 DISALLOW_COPY_AND_ASSIGN(InputHandler);
138 }; 139 };
139 140
140 } // namespace cc 141 } // namespace cc
141 142
142 #endif // CC_INPUT_INPUT_HANDLER_H_ 143 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « cc/debug/frame_rate_counter.cc ('k') | cc/input/top_controls_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698