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

Side by Side Diff: content/public/browser/web_contents_view_delegate.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
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/browser/web_contents_view_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_
7 7
8 #if defined(__OBJC__) 8 #if defined(__OBJC__)
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #endif 10 #endif
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // These methods allow the embedder to intercept a WebContentsView's 53 // These methods allow the embedder to intercept a WebContentsView's
54 // implementation of these methods. See the WebContentsView interface 54 // implementation of these methods. See the WebContentsView interface
55 // documentation for more information about these methods. 55 // documentation for more information about these methods.
56 virtual void StoreFocus(); 56 virtual void StoreFocus();
57 virtual void RestoreFocus(); 57 virtual void RestoreFocus();
58 virtual bool Focus(); 58 virtual bool Focus();
59 virtual void TakeFocus(bool reverse); 59 virtual void TakeFocus(bool reverse);
60 virtual void SizeChanged(const gfx::Size& size); 60 virtual void SizeChanged(const gfx::Size& size);
61 61
62 // Shows a popup window containing the |zoomed_bitmap| of web content with
63 // more than one link, allowing the user to more easily select which link
64 // they were trying to touch. |target_rect| is the rectangle in DIPs in the
65 // coordinate system of |content| that has been scaled up in |zoomed_bitmap|.
66 // Should the popup receive any gesture events they should be translated back
67 // to the coordinate system of |content| and then provided to the |callback|
68 // for forwarding on to the original scale web content.
69 virtual void ShowDisambiguationPopup(
70 const gfx::Rect& target_rect,
71 const SkBitmap& zoomed_bitmap,
72 const gfx::NativeView content,
73 const base::Callback<void(ui::GestureEvent*)>& gesture_cb,
74 const base::Callback<void(ui::MouseEvent*)>& mouse_cb);
75
76 // Hides the link disambiguation popup window if it is showing, otherwise does
77 // nothing.
78 virtual void HideDisambiguationPopup();
79
80 // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle 62 // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle
81 // events on the responder chain. 63 // events on the responder chain.
82 #if defined(__OBJC__) 64 #if defined(__OBJC__)
83 virtual NSObject<RenderWidgetHostViewMacDelegate>* 65 virtual NSObject<RenderWidgetHostViewMacDelegate>*
84 CreateRenderWidgetHostViewDelegate( 66 CreateRenderWidgetHostViewDelegate(
85 RenderWidgetHost* render_widget_host); 67 RenderWidgetHost* render_widget_host);
86 #else 68 #else
87 virtual void* CreateRenderWidgetHostViewDelegate( 69 virtual void* CreateRenderWidgetHostViewDelegate(
88 RenderWidgetHost* render_widget_host); 70 RenderWidgetHost* render_widget_host);
89 #endif 71 #endif
90 }; 72 };
91 73
92 } // namespace content 74 } // namespace content
93 75
94 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_ 76 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/browser/web_contents_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698