OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_DISAMBIGUATION_POPUP_HELPER_H_ | |
6 #define CONTENT_RENDERER_DISAMBIGUATION_POPUP_HELPER_H_ | |
7 | |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | |
9 | |
10 namespace gfx { | |
11 class Rect; | |
12 class Size; | |
13 } | |
14 | |
15 namespace WebKit { | |
16 class WebRect; | |
17 } | |
18 | |
19 // Contains functions to calculate proper scaling factor and popup size | |
20 class DisambiguationPopupHelper { | |
darin (slow to review)
2012/10/08 21:03:46
nit: this should be in the content namespace
trchen
2012/10/11 23:54:05
Done.
| |
21 public: | |
darin (slow to review)
2012/10/08 21:03:46
nit: indent by 1 space
trchen
2012/10/11 23:54:05
Done.
| |
22 static float ComputeZoomAreaAndScaleFactor( | |
23 const gfx::Rect& tap_rect, | |
24 const WebKit::WebVector<WebKit::WebRect>& target_rects, | |
25 const gfx::Size& viewport_size, | |
26 gfx::Rect* zoom_rect); | |
27 }; | |
28 | |
29 #endif // CONTENT_RENDERER_DISAMBIGUATION_POPUP_HELPER_H_ | |
OLD | NEW |