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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

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 | « content/browser/web_contents/web_contents_impl.h ('k') | no next file » | 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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 2527 matching lines...) Expand 10 before | Expand all | Expand 10 after
2538 2538
2539 return text_input_manager_.get(); 2539 return text_input_manager_.get();
2540 } 2540 }
2541 2541
2542 bool WebContentsImpl::OnUpdateDragCursor() { 2542 bool WebContentsImpl::OnUpdateDragCursor() {
2543 if (browser_plugin_embedder_) 2543 if (browser_plugin_embedder_)
2544 return browser_plugin_embedder_->OnUpdateDragCursor(); 2544 return browser_plugin_embedder_->OnUpdateDragCursor();
2545 return false; 2545 return false;
2546 } 2546 }
2547 2547
2548 bool WebContentsImpl::IsWidgetForMainFrame(
2549 RenderWidgetHostImpl* render_widget_host) {
2550 return render_widget_host == GetMainFrame()->GetRenderWidgetHost();
2551 }
2552
2548 BrowserAccessibilityManager* 2553 BrowserAccessibilityManager*
2549 WebContentsImpl::GetRootBrowserAccessibilityManager() { 2554 WebContentsImpl::GetRootBrowserAccessibilityManager() {
2550 RenderFrameHostImpl* rfh = GetMainFrame(); 2555 RenderFrameHostImpl* rfh = GetMainFrame();
2551 return rfh ? rfh->browser_accessibility_manager() : nullptr; 2556 return rfh ? rfh->browser_accessibility_manager() : nullptr;
2552 } 2557 }
2553 2558
2554 BrowserAccessibilityManager* 2559 BrowserAccessibilityManager*
2555 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { 2560 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() {
2556 RenderFrameHostImpl* rfh = GetMainFrame(); 2561 RenderFrameHostImpl* rfh = GetMainFrame();
2557 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; 2562 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr;
(...skipping 2835 matching lines...) Expand 10 before | Expand all | Expand 10 after
5393 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5398 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5394 if (!render_view_host) 5399 if (!render_view_host)
5395 continue; 5400 continue;
5396 render_view_host_set.insert(render_view_host); 5401 render_view_host_set.insert(render_view_host);
5397 } 5402 }
5398 for (RenderViewHost* render_view_host : render_view_host_set) 5403 for (RenderViewHost* render_view_host : render_view_host_set)
5399 render_view_host->OnWebkitPreferencesChanged(); 5404 render_view_host->OnWebkitPreferencesChanged();
5400 } 5405 }
5401 5406
5402 } // namespace content 5407 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698