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

Side by Side Diff: cc/input_handler.h

Issue 11402002: Add API for hit testing layer_impl touchEventHandlerRegions from the host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed call to haveTouchEventHandlersAt Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/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 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_HANDLER_H_ 5 #ifndef CC_INPUT_HANDLER_H_
6 #define CC_INPUT_HANDLER_H_ 6 #define CC_INPUT_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Point; 13 class Point;
14 class PointF;
14 class Vector2d; 15 class Vector2d;
15 } 16 }
16 17
17 namespace cc { 18 namespace cc {
18 19
19 // The InputHandler is a way for the embedders to interact with 20 // The InputHandler is a way for the embedders to interact with
20 // the impl thread side of the compositor implementation. 21 // the impl thread side of the compositor implementation.
21 // 22 //
22 // There is one InputHandler for every LayerTreeHost. It is 23 // There is one InputHandler for every LayerTreeHost. It is
23 // created on the main thread and used only on the impl thread. 24 // created on the main thread and used only on the impl thread.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 56
56 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, 57 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset,
57 bool anchorPoint, 58 bool anchorPoint,
58 float pageScale, 59 float pageScale,
59 base::TimeTicks startTime, 60 base::TimeTicks startTime,
60 base::TimeDelta duration) = 0; 61 base::TimeDelta duration) = 0;
61 62
62 // Request another callback to InputHandler::animate(). 63 // Request another callback to InputHandler::animate().
63 virtual void scheduleAnimation() = 0; 64 virtual void scheduleAnimation() = 0;
64 65
66 virtual bool haveTouchEventHandlersAt(const gfx::Point&) = 0;
67
65 protected: 68 protected:
66 InputHandlerClient() { } 69 InputHandlerClient() { }
67 virtual ~InputHandlerClient() { } 70 virtual ~InputHandlerClient() { }
68 71
69 private: 72 private:
70 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); 73 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient);
71 }; 74 };
72 75
73 class CC_EXPORT InputHandler { 76 class CC_EXPORT InputHandler {
74 public: 77 public:
75 virtual ~InputHandler() { } 78 virtual ~InputHandler() { }
76 79
77 virtual void bindToClient(InputHandlerClient*) = 0; 80 virtual void bindToClient(InputHandlerClient*) = 0;
78 virtual void animate(base::TimeTicks time) = 0; 81 virtual void animate(base::TimeTicks time) = 0;
79 82
80 protected: 83 protected:
81 InputHandler() { } 84 InputHandler() { }
82 85
83 private: 86 private:
84 DISALLOW_COPY_AND_ASSIGN(InputHandler); 87 DISALLOW_COPY_AND_ASSIGN(InputHandler);
85 }; 88 };
86 89
87 } 90 }
88 91
89 #endif // CC_INPUT_HANDLER_H_ 92 #endif // CC_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698