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

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

Issue 11819044: Update some #includes in content/renderer for headers in the new Platform directory (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 11 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/renderer/disambiguation_popup_helper.h" 5 #include "content/renderer/disambiguation_popup_helper.h"
6 6
7 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" 7 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
8 #include "ui/gfx/size_conversions.h" 8 #include "ui/gfx/size_conversions.h"
9 9
10 using WebKit::WebRect; 10 using WebKit::WebRect;
11 using WebKit::WebVector; 11 using WebKit::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;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 zoom_rect->Intersect(gfx::Rect(viewport_size)); 97 zoom_rect->Intersect(gfx::Rect(viewport_size));
98 98
99 float scale = FindOptimalScaleFactor(target_rects); 99 float scale = FindOptimalScaleFactor(target_rects);
100 *zoom_rect = CropZoomArea( 100 *zoom_rect = CropZoomArea(
101 *zoom_rect, viewport_size, tap_rect.CenterPoint(), scale); 101 *zoom_rect, viewport_size, tap_rect.CenterPoint(), scale);
102 102
103 return scale; 103 return scale;
104 } 104 }
105 105
106 } // namespace content 106 } // 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