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

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: Rename IPCs, move popup size calculation to helper class Created 8 years, 3 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
(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;
darin (slow to review) 2012/08/31 23:00:16 nit: do not indent
12 class Size;
13 };
darin (slow to review) 2012/08/31 23:00:16 nit: no ';'
14
15 namespace WebKit {
16 class WebRect;
darin (slow to review) 2012/08/31 23:00:16 nit: do not indent
17 };
darin (slow to review) 2012/08/31 23:00:16 nit: no ';'
18
19 // Contains functions to calculate proper scaling factor and popup size
20 class DisambiguationPopupHelper {
21 public:
22 static float ComputeZoomAreaAndScaleFactor(gfx::Rect& zoom_rect,
darin (slow to review) 2012/08/31 23:00:16 nit: move zoom_rect down to the next line: stat
23 const gfx::Rect& tap_rect,
24 const WebKit::WebVector<WebKit::WebRect>& target_rects,
25 const gfx::Size& viewport_size);
26 };
27
28 #endif // CONTENT_RENDERER_DISAMBIGUATION_POPUP_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698