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

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

Issue 899283004: Remove pinch zoom handling from the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1860 } 1860 }
1861 view_->WheelEventAck(wheel_event.event, ack_result); 1861 view_->WheelEventAck(wheel_event.event, ack_result);
1862 } 1862 }
1863 } 1863 }
1864 1864
1865 void RenderWidgetHostImpl::OnGestureEventAck( 1865 void RenderWidgetHostImpl::OnGestureEventAck(
1866 const GestureEventWithLatencyInfo& event, 1866 const GestureEventWithLatencyInfo& event,
1867 InputEventAckState ack_result) { 1867 InputEventAckState ack_result) {
1868 latency_tracker_.OnInputEventAck(event.event, &event.latency); 1868 latency_tracker_.OnInputEventAck(event.event, &event.latency);
1869 1869
1870 if (ack_result != INPUT_EVENT_ACK_STATE_CONSUMED) {
1871 if (delegate_->HandleGestureEvent(event.event))
1872 ack_result = INPUT_EVENT_ACK_STATE_CONSUMED;
1873 }
1874
1875 if (view_) 1870 if (view_)
1876 view_->GestureEventAck(event.event, ack_result); 1871 view_->GestureEventAck(event.event, ack_result);
1877 } 1872 }
1878 1873
1879 void RenderWidgetHostImpl::OnTouchEventAck( 1874 void RenderWidgetHostImpl::OnTouchEventAck(
1880 const TouchEventWithLatencyInfo& event, 1875 const TouchEventWithLatencyInfo& event,
1881 InputEventAckState ack_result) { 1876 InputEventAckState ack_result) {
1882 latency_tracker_.OnInputEventAck(event.event, &event.latency); 1877 latency_tracker_.OnInputEventAck(event.event, &event.latency);
1883 1878
1884 if (touch_emulator_ && 1879 if (touch_emulator_ &&
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 } 2192 }
2198 #endif 2193 #endif
2199 2194
2200 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2195 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2201 if (view_) 2196 if (view_)
2202 return view_->PreferredReadbackFormat(); 2197 return view_->PreferredReadbackFormat();
2203 return kN32_SkColorType; 2198 return kN32_SkColorType;
2204 } 2199 }
2205 2200
2206 } // namespace content 2201 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698