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

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: Added missing compositor_bindings call 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 virtual void startPageScaleAnimation(const IntSize& targetPosition, 58 virtual void startPageScaleAnimation(const IntSize& targetPosition,
59 bool anchorPoint, 59 bool anchorPoint,
60 float pageScale, 60 float pageScale,
61 base::TimeTicks startTime, 61 base::TimeTicks startTime,
62 base::TimeDelta duration) = 0; 62 base::TimeDelta duration) = 0;
63 63
64 // Request another callback to InputHandler::animate(). 64 // Request another callback to InputHandler::animate().
65 virtual void scheduleAnimation() = 0; 65 virtual void scheduleAnimation() = 0;
66 66
67 virtual bool checkTouchEventHandlerRegionHit(const gfx::Point&) = 0;
68
67 protected: 69 protected:
68 InputHandlerClient() { } 70 InputHandlerClient() { }
69 virtual ~InputHandlerClient() { } 71 virtual ~InputHandlerClient() { }
70 72
71 private: 73 private:
72 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); 74 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient);
73 }; 75 };
74 76
75 class CC_EXPORT InputHandler { 77 class CC_EXPORT InputHandler {
76 public: 78 public:
77 virtual ~InputHandler() { } 79 virtual ~InputHandler() { }
78 80
79 virtual void bindToClient(InputHandlerClient*) = 0; 81 virtual void bindToClient(InputHandlerClient*) = 0;
80 virtual void animate(base::TimeTicks time) = 0; 82 virtual void animate(base::TimeTicks time) = 0;
81 83
82 protected: 84 protected:
83 InputHandler() { } 85 InputHandler() { }
84 86
85 private: 87 private:
86 DISALLOW_COPY_AND_ASSIGN(InputHandler); 88 DISALLOW_COPY_AND_ASSIGN(InputHandler);
87 }; 89 };
88 90
89 } 91 }
90 92
91 #endif // CC_INPUT_HANDLER_H_ 93 #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