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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/renderer/disambiguation_popup_helper.h" 5 #include "content/renderer/disambiguation_popup_helper.h"
6 6
7 #include "third_party/WebKit/public/platform/WebRect.h" 7 #include "third_party/WebKit/public/platform/WebRect.h"
8 #include "ui/gfx/size_conversions.h" 8 #include "ui/gfx/size_conversions.h"
9 9
10 using WebKit::WebRect; 10 using blink::WebRect;
11 using WebKit::WebVector; 11 using blink::WebVector;
12 12
13 namespace { 13 namespace {
14 14
15 // The amount of padding to add to the disambiguation popup to show 15 // The amount of padding to add to the disambiguation popup to show
16 // content around the possible elements, adding some context. 16 // content around the possible elements, adding some context.
17 const int kDisambiguationPopupPadding = 8; 17 const int kDisambiguationPopupPadding = 8;
18 18
19 // Constants used for fitting the disambiguation popup inside the bounds of 19 // Constants used for fitting the disambiguation popup inside the bounds of
20 // the view. Note that there are mirror constants in PopupZoomer.java. 20 // the view. Note that there are mirror constants in PopupZoomer.java.
21 const int kDisambiguationPopupBoundsMargin = 25; 21 const int kDisambiguationPopupBoundsMargin = 25;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 float new_total_scale = 104 float new_total_scale =
105 FindOptimalScaleFactor(target_rects, total_scale); 105 FindOptimalScaleFactor(target_rects, total_scale);
106 *zoom_rect = CropZoomArea( 106 *zoom_rect = CropZoomArea(
107 *zoom_rect, screen_size, tap_rect.CenterPoint(), new_total_scale); 107 *zoom_rect, screen_size, tap_rect.CenterPoint(), new_total_scale);
108 108
109 return new_total_scale; 109 return new_total_scale;
110 } 110 }
111 111
112 } // namespace content 112 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/disambiguation_popup_helper.h ('k') | content/renderer/disambiguation_popup_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698