| OLD | NEW |
| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void Animate(base::TimeTicks time) = 0; | 56 virtual void Animate(base::TimeTicks time) = 0; |
| 57 virtual void MainThreadHasStoppedFlinging() = 0; | 57 virtual void MainThreadHasStoppedFlinging() = 0; |
| 58 virtual void ReconcileElasticOverscrollAndRootScroll() = 0; | 58 virtual void ReconcileElasticOverscrollAndRootScroll() = 0; |
| 59 virtual void UpdateRootLayerStateForSynchronousInputHandler( | 59 virtual void UpdateRootLayerStateForSynchronousInputHandler( |
| 60 const gfx::ScrollOffset& total_scroll_offset, | 60 const gfx::ScrollOffset& total_scroll_offset, |
| 61 const gfx::ScrollOffset& max_scroll_offset, | 61 const gfx::ScrollOffset& max_scroll_offset, |
| 62 const gfx::SizeF& scrollable_size, | 62 const gfx::SizeF& scrollable_size, |
| 63 float page_scale_factor, | 63 float page_scale_factor, |
| 64 float min_page_scale_factor, | 64 float min_page_scale_factor, |
| 65 float max_page_scale_factor) = 0; | 65 float max_page_scale_factor) = 0; |
| 66 virtual void DeliverInputForBeginFrame() = 0; |
| 66 | 67 |
| 67 protected: | 68 protected: |
| 68 InputHandlerClient() {} | 69 InputHandlerClient() {} |
| 69 | 70 |
| 70 private: | 71 private: |
| 71 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); | 72 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 // The InputHandler is a way for the embedders to interact with the impl thread | 75 // The InputHandler is a way for the embedders to interact with the impl thread |
| 75 // side of the compositor implementation. There is one InputHandler per | 76 // side of the compositor implementation. There is one InputHandler per |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 InputHandler() {} | 213 InputHandler() {} |
| 213 virtual ~InputHandler() {} | 214 virtual ~InputHandler() {} |
| 214 | 215 |
| 215 private: | 216 private: |
| 216 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 217 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 } // namespace cc | 220 } // namespace cc |
| 220 | 221 |
| 221 #endif // CC_INPUT_INPUT_HANDLER_H_ | 222 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |