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

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

Issue 2783233004: Refine tap disambiguation UMA to track same-node/different-node. (Closed)
Patch Set: Deprecate existing field Created 3 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
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_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 if (SiteIsolationPolicy::AreCrossProcessFramesPossible() && 1779 if (SiteIsolationPolicy::AreCrossProcessFramesPossible() &&
1780 host_->delegate()->GetInputEventRouter()) { 1780 host_->delegate()->GetInputEventRouter()) {
1781 blink::WebGestureEvent gesture_event(event); 1781 blink::WebGestureEvent gesture_event(event);
1782 host_->delegate()->GetInputEventRouter()->RouteGestureEvent( 1782 host_->delegate()->GetInputEventRouter()->RouteGestureEvent(
1783 this, &gesture_event, latency_info); 1783 this, &gesture_event, latency_info);
1784 } else { 1784 } else {
1785 host_->ForwardGestureEventWithLatencyInfo(event, latency_info); 1785 host_->ForwardGestureEventWithLatencyInfo(event, latency_info);
1786 } 1786 }
1787 } 1787 }
1788 1788
1789 void RenderWidgetHostViewAndroid::ResolveTapDisambiguation(
1790 double timestamp_seconds,
1791 gfx::Point tap_viewport_offset,
1792 bool is_long_press) {
1793 DCHECK(host_);
1794 host_->Send(new ViewMsg_ResolveTapDisambiguation(
1795 host_->GetRoutingID(), timestamp_seconds, tap_viewport_offset,
1796 is_long_press));
1797 }
1798
1789 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) { 1799 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) {
1790 if (host_) 1800 if (host_)
1791 host_->MoveCaret(point); 1801 host_->MoveCaret(point);
1792 } 1802 }
1793 1803
1794 void RenderWidgetHostViewAndroid::ShowContextMenuAtPoint( 1804 void RenderWidgetHostViewAndroid::ShowContextMenuAtPoint(
1795 const gfx::Point& point) { 1805 const gfx::Point& point) {
1796 if (host_) 1806 if (host_)
1797 host_->ShowContextMenuAtPoint(point); 1807 host_->ShowContextMenuAtPoint(point);
1798 } 1808 }
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
2140 2150
2141 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); 2151 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor();
2142 if (!compositor) 2152 if (!compositor)
2143 return; 2153 return;
2144 2154
2145 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( 2155 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>(
2146 overscroll_refresh_handler, compositor, view_.GetDipScale()); 2156 overscroll_refresh_handler, compositor, view_.GetDipScale());
2147 } 2157 }
2148 2158
2149 } // namespace content 2159 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698