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

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: Testing more points on the boundaries and also added test for deviceScaleFactor and pageScaleFactor 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') | cc/layer_tree_host_common.cc » ('J')
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"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, 56 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset,
57 bool anchorPoint, 57 bool anchorPoint,
58 float pageScale, 58 float pageScale,
59 base::TimeTicks startTime, 59 base::TimeTicks startTime,
60 base::TimeDelta duration) = 0; 60 base::TimeDelta duration) = 0;
61 61
62 // Request another callback to InputHandler::animate(). 62 // Request another callback to InputHandler::animate().
63 virtual void scheduleAnimation() = 0; 63 virtual void scheduleAnimation() = 0;
64 64
65 virtual bool checkTouchEventHandlerRegionHit(const gfx::Point&) = 0;
66
65 protected: 67 protected:
66 InputHandlerClient() { } 68 InputHandlerClient() { }
67 virtual ~InputHandlerClient() { } 69 virtual ~InputHandlerClient() { }
68 70
69 private: 71 private:
70 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); 72 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient);
71 }; 73 };
72 74
73 class CC_EXPORT InputHandler { 75 class CC_EXPORT InputHandler {
74 public: 76 public:
75 virtual ~InputHandler() { } 77 virtual ~InputHandler() { }
76 78
77 virtual void bindToClient(InputHandlerClient*) = 0; 79 virtual void bindToClient(InputHandlerClient*) = 0;
78 virtual void animate(base::TimeTicks time) = 0; 80 virtual void animate(base::TimeTicks time) = 0;
79 81
80 protected: 82 protected:
81 InputHandler() { } 83 InputHandler() { }
82 84
83 private: 85 private:
84 DISALLOW_COPY_AND_ASSIGN(InputHandler); 86 DISALLOW_COPY_AND_ASSIGN(InputHandler);
85 }; 87 };
86 88
87 } 89 }
88 90
89 #endif // CC_INPUT_HANDLER_H_ 91 #endif // CC_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_common.h » ('j') | cc/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698