Chromium Code Reviews

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

Issue 10885004: Implement disambiguation popup (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase, add unittests, fix style nits Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
(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 namespace content {
20
21 // Contains functions to calculate proper scaling factor and popup size
22 class DisambiguationPopupHelper {
23 public:
24 static float ComputeZoomAreaAndScaleFactor(
25 const gfx::Rect& tap_rect,
26 const WebKit::WebVector<WebKit::WebRect>& target_rects,
27 const gfx::Size& viewport_size,
28 gfx::Rect* zoom_rect);
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_RENDERER_DISAMBIGUATION_POPUP_HELPER_H_
OLDNEW

Powered by Google App Engine