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

Unified Diff: ui/views/controls/native/native_view_host.cc

Issue 317823002: Implement NativeViewHostAura::InstallClip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
Index: ui/views/controls/native/native_view_host.cc
diff --git a/ui/views/controls/native/native_view_host.cc b/ui/views/controls/native/native_view_host.cc
index c1b230c452e64bd8fd90d3e91310a5c16727d4c0..9a211cd187f8516cf9db7c5e3fd3615858edf748 100644
--- a/ui/views/controls/native/native_view_host.cc
+++ b/ui/views/controls/native/native_view_host.cc
@@ -38,8 +38,7 @@ void NativeViewHost::Attach(gfx::NativeView native_view) {
// be seen as focused when the native view receives focus.
if (!focus_view_)
focus_view_ = this;
- native_wrapper_->NativeViewWillAttach();
- Widget::ReparentNativeView(native_view_, GetWidget()->GetNativeView());
+ native_wrapper_->AttachNativeView();
Layout();
Widget* widget = Widget::GetWidgetForNativeView(native_view);
« no previous file with comments | « no previous file | ui/views/controls/native/native_view_host_aura.h » ('j') | ui/views/controls/native/native_view_host_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698