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

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

Issue 136173004: Early terminate flings when scrolling impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/renderer/input/input_handler_manager.h" 9 #include "content/renderer/input/input_handler_manager.h"
10 #include "content/renderer/input/input_handler_proxy.h" 10 #include "content/renderer/input/input_handler_proxy.h"
(...skipping 15 matching lines...) Expand all
26 InputHandlerProxy* input_handler_proxy() { return &input_handler_proxy_; } 26 InputHandlerProxy* input_handler_proxy() { return &input_handler_proxy_; }
27 27
28 // InputHandlerProxyClient implementation. 28 // InputHandlerProxyClient implementation.
29 virtual void WillShutdown() OVERRIDE; 29 virtual void WillShutdown() OVERRIDE;
30 virtual void TransferActiveWheelFlingAnimation( 30 virtual void TransferActiveWheelFlingAnimation(
31 const blink::WebActiveWheelFlingParameters& params) OVERRIDE; 31 const blink::WebActiveWheelFlingParameters& params) OVERRIDE;
32 virtual blink::WebGestureCurve* CreateFlingAnimationCurve( 32 virtual blink::WebGestureCurve* CreateFlingAnimationCurve(
33 int deviceSource, 33 int deviceSource,
34 const blink::WebFloatPoint& velocity, 34 const blink::WebFloatPoint& velocity,
35 const blink::WebSize& cumulativeScroll) OVERRIDE; 35 const blink::WebSize& cumulativeScroll) OVERRIDE;
36 virtual void DidOverscroll(const cc::DidOverscrollParams& params) OVERRIDE; 36 virtual void DidOverscroll(const DidOverscrollParams& params) OVERRIDE;
37 virtual void DidStopFlinging() OVERRIDE; 37 virtual void DidStopFlinging() OVERRIDE;
38 38
39 private: 39 private:
40 InputHandlerManager* input_handler_manager_; 40 InputHandlerManager* input_handler_manager_;
41 int routing_id_; 41 int routing_id_;
42 InputHandlerProxy input_handler_proxy_; 42 InputHandlerProxy input_handler_proxy_;
43 scoped_refptr<base::MessageLoopProxy> main_loop_; 43 scoped_refptr<base::MessageLoopProxy> main_loop_;
44 44
45 // Can only be accessed on the main thread. 45 // Can only be accessed on the main thread.
46 base::WeakPtr<RenderViewImpl> render_view_impl_; 46 base::WeakPtr<RenderViewImpl> render_view_impl_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); 48 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper);
49 }; 49 };
50 50
51 } // namespace content 51 } // namespace content
52 52
53 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ 53 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_proxy_unittest.cc ('k') | content/renderer/input/input_handler_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698