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

Side by Side Diff: blimp/client/core/input/blimp_input_handler_wrapper.h

Issue 2341873002: Handle touchpad flings with passive event listeners on compositor thread. (Closed)
Patch Set: Add dcheck for blimp Created 4 years, 3 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 | blimp/client/core/input/blimp_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ 5 #ifndef BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_
6 #define BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ 6 #define BLIMP_CLIENT_CORE_INPUT_BLIMP_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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // thread. 47 // thread.
48 void HandleWebGestureEvent(const blink::WebGestureEvent& gesture_event); 48 void HandleWebGestureEvent(const blink::WebGestureEvent& gesture_event);
49 49
50 void InitOnCompositorThread(cc::InputHandler* input_handler); 50 void InitOnCompositorThread(cc::InputHandler* input_handler);
51 51
52 private: 52 private:
53 // InputHandlerProxyClient implementation. 53 // InputHandlerProxyClient implementation.
54 void WillShutdown() override; 54 void WillShutdown() override;
55 void TransferActiveWheelFlingAnimation( 55 void TransferActiveWheelFlingAnimation(
56 const blink::WebActiveWheelFlingParameters& params) override; 56 const blink::WebActiveWheelFlingParameters& params) override;
57 void DispatchNonBlockingEventToMainThread(
58 ui::ScopedWebInputEvent event,
59 const ui::LatencyInfo& latency_info) override;
57 blink::WebGestureCurve* CreateFlingAnimationCurve( 60 blink::WebGestureCurve* CreateFlingAnimationCurve(
58 blink::WebGestureDevice device_source, 61 blink::WebGestureDevice device_source,
59 const blink::WebFloatPoint& velocity, 62 const blink::WebFloatPoint& velocity,
60 const blink::WebSize& cumulative_scroll) override; 63 const blink::WebSize& cumulative_scroll) override;
61 void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll, 64 void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll,
62 const gfx::Vector2dF& latest_overscroll_delta, 65 const gfx::Vector2dF& latest_overscroll_delta,
63 const gfx::Vector2dF& current_fling_velocity, 66 const gfx::Vector2dF& current_fling_velocity,
64 const gfx::PointF& causal_event_viewport_point) override; 67 const gfx::PointF& causal_event_viewport_point) override;
65 void DidStartFlinging() override; 68 void DidStartFlinging() override;
66 void DidStopFlinging() override; 69 void DidStopFlinging() override;
(...skipping 17 matching lines...) Expand all
84 // beyond this point. 87 // beyond this point.
85 base::WeakPtrFactory<BlimpInputHandlerWrapper> weak_factory_; 88 base::WeakPtrFactory<BlimpInputHandlerWrapper> weak_factory_;
86 89
87 DISALLOW_COPY_AND_ASSIGN(BlimpInputHandlerWrapper); 90 DISALLOW_COPY_AND_ASSIGN(BlimpInputHandlerWrapper);
88 }; 91 };
89 92
90 } // namespace client 93 } // namespace client
91 } // namespace blimp 94 } // namespace blimp
92 95
93 #endif // BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ 96 #endif // BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/core/input/blimp_input_handler_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698