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

Side by Side Diff: content/renderer/input/input_handler_wrapper.h

Issue 2265393002: Refactor compositor event handling path to be callback-based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 // InputHandlerProxyClient implementation. 39 // InputHandlerProxyClient implementation.
40 void WillShutdown() override; 40 void WillShutdown() override;
41 void TransferActiveWheelFlingAnimation( 41 void TransferActiveWheelFlingAnimation(
42 const blink::WebActiveWheelFlingParameters& params) override; 42 const blink::WebActiveWheelFlingParameters& params) override;
43 blink::WebGestureCurve* CreateFlingAnimationCurve( 43 blink::WebGestureCurve* CreateFlingAnimationCurve(
44 blink::WebGestureDevice deviceSource, 44 blink::WebGestureDevice deviceSource,
45 const blink::WebFloatPoint& velocity, 45 const blink::WebFloatPoint& velocity,
46 const blink::WebSize& cumulativeScroll) override; 46 const blink::WebSize& cumulativeScroll) override;
47 void DidOverscroll( 47 void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll,
48 const gfx::Vector2dF& accumulated_overscroll, 48 const gfx::Vector2dF& latest_overscroll_delta,
49 const gfx::Vector2dF& latest_overscroll_delta, 49 const gfx::Vector2dF& current_fling_velocity,
50 const gfx::Vector2dF& current_fling_velocity, 50 const gfx::PointF& causal_event_viewport_point,
51 const gfx::PointF& causal_event_viewport_point) override; 51 bool bundle_ack_with_triggering_event) override;
52 void DidStartFlinging() override; 52 void DidStartFlinging() override;
53 void DidStopFlinging() override; 53 void DidStopFlinging() override;
54 void DidAnimateForInput() override; 54 void DidAnimateForInput() override;
55 55
56 private: 56 private:
57 InputHandlerManager* input_handler_manager_; 57 InputHandlerManager* input_handler_manager_;
58 int routing_id_; 58 int routing_id_;
59 ui::InputHandlerProxy input_handler_proxy_; 59 ui::InputHandlerProxy input_handler_proxy_;
60 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 60 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
61 61
62 // Can only be accessed on the main thread. 62 // Can only be accessed on the main thread.
63 base::WeakPtr<RenderViewImpl> render_view_impl_; 63 base::WeakPtr<RenderViewImpl> render_view_impl_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); 65 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper);
66 }; 66 };
67 67
68 } // namespace content 68 } // namespace content
69 69
70 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ 70 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698