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

Side by Side Diff: content/renderer/android/synchronous_compositor_input_handler_client_wrapper.h

Issue 15002007: Delegate root layer scroll offset to android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698