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

Side by Side Diff: webkit/renderer/compositor_bindings/web_to_ccinput_handler_adapter.h

Issue 13844021: Move compositor thread input handling logic into content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 2012 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CCINPUT_HANDLER_ADAPTER_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CCINPUT_HANDLER_ADAPTER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/input/input_handler.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandler.h"
11 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h"
12
13 namespace WebKit {
14
15 class WebToCCInputHandlerAdapter : public cc::InputHandlerClient {
16 public:
17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT static
18 scoped_ptr<WebToCCInputHandlerAdapter> create(
19 scoped_ptr<WebInputHandler>);
20 virtual ~WebToCCInputHandlerAdapter();
21
22 // cc::InputHandlerClient implementation.
23 virtual void BindToHandler(cc::InputHandler*) OVERRIDE;
24 virtual void Animate(base::TimeTicks time) OVERRIDE;
25 virtual void MainThreadHasStoppedFlinging() OVERRIDE;
26
27 private:
28 explicit WebToCCInputHandlerAdapter(scoped_ptr<WebInputHandler>);
29
30 class HandlerAdapter;
31 scoped_ptr<HandlerAdapter> handler_adapter_;
32 scoped_ptr<WebInputHandler> handler_;
33
34 DISALLOW_COPY_AND_ASSIGN(WebToCCInputHandlerAdapter);
35 };
36
37 } // namespace webkit
38
39 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CCINPUT_HANDLER_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698