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 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 if (!processed && !is_hidden_ && view_) | 1977 if (!processed && !is_hidden_ && view_) |
1978 view_->UnhandledWheelEvent(current_wheel_event_); | 1978 view_->UnhandledWheelEvent(current_wheel_event_); |
1979 } | 1979 } |
1980 | 1980 |
1981 void RenderWidgetHostImpl::ProcessGestureAck(bool processed, int type) { | 1981 void RenderWidgetHostImpl::ProcessGestureAck(bool processed, int type) { |
1982 if (overscroll_controller_.get()) { | 1982 if (overscroll_controller_.get()) { |
1983 overscroll_controller_->ReceivedEventACK( | 1983 overscroll_controller_->ReceivedEventACK( |
1984 gesture_event_filter_->GetGestureEventAwaitingAck(), processed); | 1984 gesture_event_filter_->GetGestureEventAwaitingAck(), processed); |
1985 } | 1985 } |
1986 gesture_event_filter_->ProcessGestureAck(processed, type); | 1986 gesture_event_filter_->ProcessGestureAck(processed, type); |
| 1987 |
| 1988 if (view_) |
| 1989 view_->GestureEventAck(type); |
1987 } | 1990 } |
1988 | 1991 |
1989 void RenderWidgetHostImpl::ProcessTouchAck(InputEventAckState ack_result) { | 1992 void RenderWidgetHostImpl::ProcessTouchAck(InputEventAckState ack_result) { |
1990 touch_event_queue_->ProcessTouchAck(ack_result); | 1993 touch_event_queue_->ProcessTouchAck(ack_result); |
1991 } | 1994 } |
1992 | 1995 |
1993 void RenderWidgetHostImpl::OnFocus() { | 1996 void RenderWidgetHostImpl::OnFocus() { |
1994 // Only RenderViewHost can deal with that message. | 1997 // Only RenderViewHost can deal with that message. |
1995 RecordAction(UserMetricsAction("BadMessageTerminate_RWH4")); | 1998 RecordAction(UserMetricsAction("BadMessageTerminate_RWH4")); |
1996 GetProcess()->ReceivedBadMessage(); | 1999 GetProcess()->ReceivedBadMessage(); |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2471 return; | 2474 return; |
2472 | 2475 |
2473 OnRenderAutoResized(new_size); | 2476 OnRenderAutoResized(new_size); |
2474 } | 2477 } |
2475 | 2478 |
2476 void RenderWidgetHostImpl::DetachDelegate() { | 2479 void RenderWidgetHostImpl::DetachDelegate() { |
2477 delegate_ = NULL; | 2480 delegate_ = NULL; |
2478 } | 2481 } |
2479 | 2482 |
2480 } // namespace content | 2483 } // namespace content |
OLD | NEW |