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

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

Issue 1926173002: Erase LinkDisambiguation code on desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another merge conflict Created 4 years, 7 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
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 #ifndef CONTENT_RENDERER_DISAMBIGUATION_POPUP_HELPER_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_DISAMBIGUATION_POPUP_HELPER_H_
6 #define CONTENT_RENDERER_DISAMBIGUATION_POPUP_HELPER_H_ 6 #define CONTENT_RENDERER_ANDROID_DISAMBIGUATION_POPUP_HELPER_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/platform/WebVector.h" 9 #include "third_party/WebKit/public/platform/WebVector.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Rect; 12 class Rect;
13 class Size; 13 class Size;
14 } 14 }
15 15
16 namespace blink { 16 namespace blink {
17 struct WebRect; 17 struct WebRect;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 // Contains functions to calculate proper scaling factor and popup size 22 // Contains functions to calculate proper scaling factor and popup size
23 class DisambiguationPopupHelper { 23 class DisambiguationPopupHelper {
24 public: 24 public:
25 CONTENT_EXPORT static float ComputeZoomAreaAndScaleFactor( 25 CONTENT_EXPORT static float ComputeZoomAreaAndScaleFactor(
26 const gfx::Rect& tap_rect, 26 const gfx::Rect& tap_rect,
27 const blink::WebVector<blink::WebRect>& target_rects, 27 const blink::WebVector<blink::WebRect>& target_rects,
28 const gfx::Size& screen_size, 28 const gfx::Size& screen_size,
29 const gfx::Size& visible_content_size, 29 const gfx::Size& visible_content_size,
30 float total_scale, 30 float total_scale,
31 gfx::Rect* zoom_rect); 31 gfx::Rect* zoom_rect);
32 }; 32 };
33 33
34 } // namespace content 34 } // namespace content
35 35
36 #endif // CONTENT_RENDERER_DISAMBIGUATION_POPUP_HELPER_H_ 36 #endif // CONTENT_RENDERER_ANDROID_DISAMBIGUATION_POPUP_HELPER_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_view_delegate.cc ('k') | content/renderer/android/disambiguation_popup_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698