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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 2770923002: Prevent browser-side hit testing when page popup is selected (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « no previous file | content/browser/renderer_host/render_widget_host_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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 virtual RenderViewHostDelegateView* GetDelegateView(); 207 virtual RenderViewHostDelegateView* GetDelegateView();
208 208
209 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is 209 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is
210 // not intended for use with other types of fullscreen, such as HTML 210 // not intended for use with other types of fullscreen, such as HTML
211 // fullscreen, and will return nullptr for those cases. 211 // fullscreen, and will return nullptr for those cases.
212 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const; 212 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const;
213 213
214 // Allow the delegate to handle the cursor update. Returns true if handled. 214 // Allow the delegate to handle the cursor update. Returns true if handled.
215 virtual bool OnUpdateDragCursor(); 215 virtual bool OnUpdateDragCursor();
216 216
217 // Returns true if the provided RenderWidgetHostImpl matches the current
218 // RenderWidgetHost on the main frame, and false otherwise.
219 virtual bool IsWidgetForMainFrame(RenderWidgetHostImpl*);
220
217 // Inner WebContents Helpers ------------------------------------------------- 221 // Inner WebContents Helpers -------------------------------------------------
218 // 222 //
219 // These functions are helpers in managing a hierharchy of WebContents 223 // These functions are helpers in managing a hierharchy of WebContents
220 // involved in rendering inner WebContents. 224 // involved in rendering inner WebContents.
221 225
222 // Get the RenderWidgetHost that should receive page level focus events. This 226 // Get the RenderWidgetHost that should receive page level focus events. This
223 // will be the widget that is rendering the main frame of the currently 227 // will be the widget that is rendering the main frame of the currently
224 // focused WebContents. 228 // focused WebContents.
225 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); 229 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus();
226 230
(...skipping 18 matching lines...) Expand all
245 // not a WebContents, returns nullptr. 249 // not a WebContents, returns nullptr.
246 virtual WebContents* GetAsWebContents(); 250 virtual WebContents* GetAsWebContents();
247 251
248 protected: 252 protected:
249 virtual ~RenderWidgetHostDelegate() {} 253 virtual ~RenderWidgetHostDelegate() {}
250 }; 254 };
251 255
252 } // namespace content 256 } // namespace content
253 257
254 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698