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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 12321005: Enable touch based selection and editing for webpages behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include unittest in only chromeos builds Created 7 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 | Annotate | Revision Log
OLDNEW
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 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 if (!processed && !is_hidden_ && view_) 1975 if (!processed && !is_hidden_ && view_)
1976 view_->UnhandledWheelEvent(current_wheel_event_); 1976 view_->UnhandledWheelEvent(current_wheel_event_);
1977 } 1977 }
1978 1978
1979 void RenderWidgetHostImpl::ProcessGestureAck(bool processed, int type) { 1979 void RenderWidgetHostImpl::ProcessGestureAck(bool processed, int type) {
1980 if (overscroll_controller_) { 1980 if (overscroll_controller_) {
1981 overscroll_controller_->ReceivedEventACK( 1981 overscroll_controller_->ReceivedEventACK(
1982 gesture_event_filter_->GetGestureEventAwaitingAck(), processed); 1982 gesture_event_filter_->GetGestureEventAwaitingAck(), processed);
1983 } 1983 }
1984 gesture_event_filter_->ProcessGestureAck(processed, type); 1984 gesture_event_filter_->ProcessGestureAck(processed, type);
1985
1986 if (view_)
1987 view_->GestureEventAck(type);
1985 } 1988 }
1986 1989
1987 void RenderWidgetHostImpl::ProcessTouchAck(InputEventAckState ack_result) { 1990 void RenderWidgetHostImpl::ProcessTouchAck(InputEventAckState ack_result) {
1988 touch_event_queue_->ProcessTouchAck(ack_result); 1991 touch_event_queue_->ProcessTouchAck(ack_result);
1989 } 1992 }
1990 1993
1991 void RenderWidgetHostImpl::OnFocus() { 1994 void RenderWidgetHostImpl::OnFocus() {
1992 // Only RenderViewHost can deal with that message. 1995 // Only RenderViewHost can deal with that message.
1993 RecordAction(UserMetricsAction("BadMessageTerminate_RWH4")); 1996 RecordAction(UserMetricsAction("BadMessageTerminate_RWH4"));
1994 GetProcess()->ReceivedBadMessage(); 1997 GetProcess()->ReceivedBadMessage();
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698