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

Unified Diff: ui/views/controls/webview/webview.cc

Issue 1815563006: Remove [SG]etParentNativeViewAccessible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_plugin_quirks
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/webview/webview.cc
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc
index 44baa228dc32c69c48a85537ce4c832f9d49f37b..686eeb6ddd4a4d78541e966cca8f3ce20e861b81 100644
--- a/ui/views/controls/webview/webview.cc
+++ b/ui/views/controls/webview/webview.cc
@@ -339,24 +339,12 @@ void WebView::AttachWebContents() {
if (focus_manager && focus_manager->GetFocusedView() == this)
OnFocus();
-#if defined(OS_WIN)
- if (!is_embedding_fullscreen_widget_) {
- web_contents()->SetParentNativeViewAccessible(
- parent()->GetNativeViewAccessible());
- }
-#endif
-
OnWebContentsAttached();
}
void WebView::DetachWebContents() {
- if (web_contents()) {
+ if (web_contents())
holder_->Detach();
-#if defined(OS_WIN)
- if (!is_embedding_fullscreen_widget_)
- web_contents()->SetParentNativeViewAccessible(NULL);
-#endif
- }
}
void WebView::ReattachForFullscreenChange(bool enter_fullscreen) {
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698