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/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1976 if (!processed && !is_hidden_ && view_) | 1976 if (!processed && !is_hidden_ && view_) |
1977 view_->UnhandledWheelEvent(current_wheel_event_); | 1977 view_->UnhandledWheelEvent(current_wheel_event_); |
1978 } | 1978 } |
1979 | 1979 |
1980 void RenderWidgetHostImpl::ProcessGestureAck(bool processed, int type) { | 1980 void RenderWidgetHostImpl::ProcessGestureAck(bool processed, int type) { |
1981 if (overscroll_controller_) { | 1981 if (overscroll_controller_) { |
1982 overscroll_controller_->ReceivedEventACK( | 1982 overscroll_controller_->ReceivedEventACK( |
1983 gesture_event_filter_->GetGestureEventAwaitingAck(), processed); | 1983 gesture_event_filter_->GetGestureEventAwaitingAck(), processed); |
1984 } | 1984 } |
1985 gesture_event_filter_->ProcessGestureAck(processed, type); | 1985 gesture_event_filter_->ProcessGestureAck(processed, type); |
| 1986 |
| 1987 if (view_) |
| 1988 view_->GestureEventAck(type); |
1986 } | 1989 } |
1987 | 1990 |
1988 void RenderWidgetHostImpl::ProcessTouchAck(InputEventAckState ack_result) { | 1991 void RenderWidgetHostImpl::ProcessTouchAck(InputEventAckState ack_result) { |
1989 touch_event_queue_->ProcessTouchAck(ack_result); | 1992 touch_event_queue_->ProcessTouchAck(ack_result); |
1990 } | 1993 } |
1991 | 1994 |
1992 void RenderWidgetHostImpl::OnFocus() { | 1995 void RenderWidgetHostImpl::OnFocus() { |
1993 // Only RenderViewHost can deal with that message. | 1996 // Only RenderViewHost can deal with that message. |
1994 RecordAction(UserMetricsAction("BadMessageTerminate_RWH4")); | 1997 RecordAction(UserMetricsAction("BadMessageTerminate_RWH4")); |
1995 GetProcess()->ReceivedBadMessage(); | 1998 GetProcess()->ReceivedBadMessage(); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2467 return; | 2470 return; |
2468 | 2471 |
2469 OnRenderAutoResized(new_size); | 2472 OnRenderAutoResized(new_size); |
2470 } | 2473 } |
2471 | 2474 |
2472 void RenderWidgetHostImpl::DetachDelegate() { | 2475 void RenderWidgetHostImpl::DetachDelegate() { |
2473 delegate_ = NULL; | 2476 delegate_ = NULL; |
2474 } | 2477 } |
2475 | 2478 |
2476 } // namespace content | 2479 } // namespace content |
OLD | NEW |