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

Unified Diff: views/widget/native_widget_view.cc

Issue 7273084: Change the meaning of "Widget::GetTopLevelWidget()" to mean the logical top level Window in the v... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | « views/widget/native_widget_view.h ('k') | views/widget/native_widget_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_view.cc
===================================================================
--- views/widget/native_widget_view.cc (revision 91561)
+++ views/widget/native_widget_view.cc (working copy)
@@ -17,10 +17,15 @@
NativeWidgetView::NativeWidgetView(NativeWidgetViews* native_widget)
: native_widget_(native_widget),
- sent_create_(false) {
+ sent_create_(false),
+ delete_native_widget_(true) {
}
NativeWidgetView::~NativeWidgetView() {
+ if (delete_native_widget_) {
+ native_widget_->set_delete_native_view(false);
+ delete native_widget_;
+ }
}
Widget* NativeWidgetView::GetAssociatedWidget() {
« no previous file with comments | « views/widget/native_widget_view.h ('k') | views/widget/native_widget_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698