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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate_view.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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 double item_font_size, 75 double item_font_size,
76 int selected_item, 76 int selected_item,
77 const std::vector<MenuItem>& items, 77 const std::vector<MenuItem>& items,
78 bool right_aligned, 78 bool right_aligned,
79 bool allow_multiple_selection) {}; 79 bool allow_multiple_selection) {};
80 80
81 // Hides a popup menu opened by ShowPopupMenu(). 81 // Hides a popup menu opened by ShowPopupMenu().
82 virtual void HidePopupMenu() {}; 82 virtual void HidePopupMenu() {};
83 #endif 83 #endif
84 84
85 #if defined(USE_AURA)
86 // Shows a Link Disambiguation Popup. |target_rect| is the area the user
87 // touched that resulted in ambiguity, in DIPs in the host's coordinate
88 // system, |zoomed_bitmap| is an enlarged image of that |target_rect|, and
89 // |callback| is for forwarding on to the original scale web content.
90 virtual void ShowDisambiguationPopup(
91 const gfx::Rect& target_rect,
92 const SkBitmap& zoomed_bitmap,
93 const base::Callback<void(ui::GestureEvent*)>& gesture_cb,
94 const base::Callback<void(ui::MouseEvent*)>& mouse_cb) {}
95
96 // Hides the Link Disambiguation Popup, if it was showing, otherwise does
97 // nothing.
98 virtual void HideDisambiguationPopup() {}
99 #endif
100
101 protected: 85 protected:
102 virtual ~RenderViewHostDelegateView() {} 86 virtual ~RenderViewHostDelegateView() {}
103 }; 87 };
104 88
105 } // namespace content 89 } // namespace content
106 90
107 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 91 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698