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

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

Issue 2166703003: Implement Main Thread RAF Aligned Input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_main_thread_queue
Patch Set: Clean prototype up 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 18 matching lines...) Expand all
29 const base::WeakPtr<cc::InputHandler>& input_handler, 29 const base::WeakPtr<cc::InputHandler>& input_handler,
30 const base::WeakPtr<RenderViewImpl>& render_view_impl, 30 const base::WeakPtr<RenderViewImpl>& render_view_impl,
31 bool enable_smooth_scrolling); 31 bool enable_smooth_scrolling);
32 ~InputHandlerWrapper() override; 32 ~InputHandlerWrapper() override;
33 33
34 int routing_id() const { return routing_id_; } 34 int routing_id() const { return routing_id_; }
35 ui::InputHandlerProxy* input_handler_proxy() { 35 ui::InputHandlerProxy* input_handler_proxy() {
36 return &input_handler_proxy_; 36 return &input_handler_proxy_;
37 } 37 }
38 38
39 void NeedsMainFrame();
40
39 // InputHandlerProxyClient implementation. 41 // InputHandlerProxyClient implementation.
40 void WillShutdown() override; 42 void WillShutdown() override;
41 void TransferActiveWheelFlingAnimation( 43 void TransferActiveWheelFlingAnimation(
42 const blink::WebActiveWheelFlingParameters& params) override; 44 const blink::WebActiveWheelFlingParameters& params) override;
43 blink::WebGestureCurve* CreateFlingAnimationCurve( 45 blink::WebGestureCurve* CreateFlingAnimationCurve(
44 blink::WebGestureDevice deviceSource, 46 blink::WebGestureDevice deviceSource,
45 const blink::WebFloatPoint& velocity, 47 const blink::WebFloatPoint& velocity,
46 const blink::WebSize& cumulativeScroll) override; 48 const blink::WebSize& cumulativeScroll) override;
47 void DidOverscroll( 49 void DidOverscroll(
48 const gfx::Vector2dF& accumulated_overscroll, 50 const gfx::Vector2dF& accumulated_overscroll,
(...skipping 12 matching lines...) Expand all
61 63
62 // Can only be accessed on the main thread. 64 // Can only be accessed on the main thread.
63 base::WeakPtr<RenderViewImpl> render_view_impl_; 65 base::WeakPtr<RenderViewImpl> render_view_impl_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); 67 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper);
66 }; 68 };
67 69
68 } // namespace content 70 } // namespace content
69 71
70 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ 72 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698