Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_INPUT_HANDLER_CLIENT_WRA PPER_H_ | |
| 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_INPUT_HANDLER_CLIENT_WRA PPER_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "cc/input/input_handler.h" | |
| 10 | |
| 11 namespace cc { | |
| 12 class InputHandler; | |
| 13 class InputHandlerClient; | |
| 14 class LayerScrollOffsetDelegate; | |
| 15 } | |
| 16 | |
| 17 namespace content { | |
| 18 | |
| 19 class SynchronousCompositorClient; | |
| 20 | |
|
joth
2013/05/16 18:21:42
commentette?
| |
| 21 class SynchronousCompositorInputHandlerClientWrapper | |
| 22 : public cc::InputHandlerClient { | |
| 23 public: | |
| 24 SynchronousCompositorInputHandlerClientWrapper( | |
| 25 scoped_ptr<cc::InputHandlerClient> wrapped_client, | |
| 26 cc::LayerScrollOffsetDelegate* layer_scroll_offset_delegate); | |
| 27 virtual ~SynchronousCompositorInputHandlerClientWrapper(); | |
| 28 | |
| 29 virtual void BindToHandler(cc::InputHandler* handler) OVERRIDE; | |
| 30 virtual void Animate(base::TimeTicks time) OVERRIDE; | |
| 31 virtual void MainThreadHasStoppedFlinging() OVERRIDE; | |
| 32 | |
| 33 private: | |
| 34 scoped_ptr<cc::InputHandlerClient> wrapped_client_; | |
| 35 cc::LayerScrollOffsetDelegate* layer_scroll_offset_delegate_; | |
| 36 cc::InputHandler* handler_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorInputHandlerClientWrapper); | |
| 39 }; | |
| 40 | |
| 41 } // namespace content | |
| 42 | |
| 43 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_INPUT_HANDLER_CLIENT_ WRAPPER_H_ | |
| 44 | |
| OLD | NEW |