OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_manager.h" | 5 #include "content/renderer/gpu/input_handler_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "cc/input/input_handler.h" | 10 #include "cc/input/input_handler.h" |
11 #include "content/renderer/gpu/input_event_filter.h" | 11 #include "content/renderer/gpu/input_event_filter.h" |
12 #include "content/renderer/gpu/input_handler_manager_client.h" | 12 #include "content/renderer/gpu/input_handler_manager_client.h" |
13 #include "content/renderer/gpu/input_handler_wrapper.h" | 13 #include "content/renderer/gpu/input_handler_wrapper.h" |
14 | 14 |
15 using WebKit::WebInputEvent; | 15 using blink::WebInputEvent; |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 InputEventAckState InputEventDispositionToAck( | 21 InputEventAckState InputEventDispositionToAck( |
22 InputHandlerProxy::EventDisposition disposition) { | 22 InputHandlerProxy::EventDisposition disposition) { |
23 switch (disposition) { | 23 switch (disposition) { |
24 case InputHandlerProxy::DID_HANDLE: | 24 case InputHandlerProxy::DID_HANDLE: |
25 return INPUT_EVENT_ACK_STATE_CONSUMED; | 25 return INPUT_EVENT_ACK_STATE_CONSUMED; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 122 } |
123 | 123 |
124 void InputHandlerManager::DidOverscroll(int routing_id, | 124 void InputHandlerManager::DidOverscroll(int routing_id, |
125 const cc::DidOverscrollParams& params) { | 125 const cc::DidOverscrollParams& params) { |
126 client_->DidOverscroll(routing_id, params); | 126 client_->DidOverscroll(routing_id, params); |
127 } | 127 } |
128 | 128 |
129 | 129 |
130 | 130 |
131 } // namespace content | 131 } // namespace content |
OLD | NEW |