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

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

Issue 2854683002: Send a GSB to main thread before switching to it in the middle of scrolling. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | content/renderer/input/input_handler_wrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 blink::WebGestureCurve* CreateFlingAnimationCurve( 48 blink::WebGestureCurve* CreateFlingAnimationCurve(
49 blink::WebGestureDevice deviceSource, 49 blink::WebGestureDevice deviceSource,
50 const blink::WebFloatPoint& velocity, 50 const blink::WebFloatPoint& velocity,
51 const blink::WebSize& cumulativeScroll) override; 51 const blink::WebSize& cumulativeScroll) override;
52 void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll, 52 void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll,
53 const gfx::Vector2dF& latest_overscroll_delta, 53 const gfx::Vector2dF& latest_overscroll_delta,
54 const gfx::Vector2dF& current_fling_velocity, 54 const gfx::Vector2dF& current_fling_velocity,
55 const gfx::PointF& causal_event_viewport_point) override; 55 const gfx::PointF& causal_event_viewport_point) override;
56 void DidStopFlinging() override; 56 void DidStopFlinging() override;
57 void DidAnimateForInput() override; 57 void DidAnimateForInput() override;
58 void GenerateScrollBeginAndSendToMainThread(
59 const blink::WebGestureEvent& update_event) override;
58 60
59 private: 61 private:
60 InputHandlerManager* input_handler_manager_; 62 InputHandlerManager* input_handler_manager_;
61 int routing_id_; 63 int routing_id_;
62 ui::InputHandlerProxy input_handler_proxy_; 64 ui::InputHandlerProxy input_handler_proxy_;
63 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 65 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
64 66
65 // Can only be accessed on the main thread. 67 // Can only be accessed on the main thread.
66 base::WeakPtr<RenderWidget> render_widget_; 68 base::WeakPtr<RenderWidget> render_widget_;
67 69
68 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); 70 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper);
69 }; 71 };
70 72
71 } // namespace content 73 } // namespace content
72 74
73 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ 75 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/input/input_handler_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698