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

Side by Side Diff: content/renderer/android/disambiguation_popup_helper.cc

Issue 1926173002: Erase LinkDisambiguation code on desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another merge conflict Created 4 years, 7 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/renderer/disambiguation_popup_helper.h" 5 #include "content/renderer/android/disambiguation_popup_helper.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "third_party/WebKit/public/platform/WebRect.h" 9 #include "third_party/WebKit/public/platform/WebRect.h"
10 #include "ui/gfx/geometry/size_conversions.h" 10 #include "ui/gfx/geometry/size_conversions.h"
11 11
12 using blink::WebRect; 12 using blink::WebRect;
13 using blink::WebVector; 13 using blink::WebVector;
14 14
15 namespace { 15 namespace {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 float new_total_scale = 106 float new_total_scale =
107 FindOptimalScaleFactor(target_rects, total_scale); 107 FindOptimalScaleFactor(target_rects, total_scale);
108 *zoom_rect = CropZoomArea( 108 *zoom_rect = CropZoomArea(
109 *zoom_rect, screen_size, tap_rect.CenterPoint(), new_total_scale); 109 *zoom_rect, screen_size, tap_rect.CenterPoint(), new_total_scale);
110 110
111 return new_total_scale; 111 return new_total_scale;
112 } 112 }
113 113
114 } // namespace content 114 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698