Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "content/renderer/gpu/input_handler_wrapper.h" | 5 #include "base/message_loop/message_loop_proxy.h" |
| 6 | |
| 7 #include "content/renderer/gpu/input_event_filter.h" | 6 #include "content/renderer/gpu/input_event_filter.h" |
| 8 #include "content/renderer/gpu/input_handler_manager.h" | 7 #include "content/renderer/gpu/input_handler_manager.h" |
| 8 #include "content/renderer/gpu/input_handler_wrapper.h" | |
|
apatrick_chromium
2013/07/11 18:41:06
We like to make the header file corresponding to t
Mostyn Bramley-Moore
2013/07/11 18:45:17
I did this to avoid a presubmit warning- I'll chan
Mostyn Bramley-Moore
2013/07/11 18:53:05
Done.
| |
| 9 #include "third_party/WebKit/public/platform/Platform.h" | 9 #include "third_party/WebKit/public/platform/Platform.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 InputHandlerWrapper::InputHandlerWrapper( | 13 InputHandlerWrapper::InputHandlerWrapper( |
| 14 InputHandlerManager* input_handler_manager, | 14 InputHandlerManager* input_handler_manager, |
| 15 int routing_id, | 15 int routing_id, |
| 16 const scoped_refptr<base::MessageLoopProxy>& main_loop, | 16 const scoped_refptr<base::MessageLoopProxy>& main_loop, |
| 17 const base::WeakPtr<cc::InputHandler>& input_handler, | 17 const base::WeakPtr<cc::InputHandler>& input_handler, |
| 18 const base::WeakPtr<RenderViewImpl>& render_view_impl) | 18 const base::WeakPtr<RenderViewImpl>& render_view_impl) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 } | 50 } |
| 51 | 51 |
| 52 void InputHandlerWrapper::DidOverscroll(gfx::Vector2dF accumulated_overscroll, | 52 void InputHandlerWrapper::DidOverscroll(gfx::Vector2dF accumulated_overscroll, |
| 53 gfx::Vector2dF current_fling_velocity) { | 53 gfx::Vector2dF current_fling_velocity) { |
| 54 input_handler_manager_->DidOverscroll(routing_id_, | 54 input_handler_manager_->DidOverscroll(routing_id_, |
| 55 accumulated_overscroll, | 55 accumulated_overscroll, |
| 56 current_fling_velocity); | 56 current_fling_velocity); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace content | 59 } // namespace content |
| OLD | NEW |