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

Unified Diff: views/widget/native_widget_views.h

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.cc ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_views.h
===================================================================
--- views/widget/native_widget_views.h (revision 91561)
+++ views/widget/native_widget_views.h (working copy)
@@ -31,6 +31,10 @@
void OnActivate(bool active);
+ void set_delete_native_view(bool delete_native_view) {
+ delete_native_view_ = delete_native_view;
+ }
+
internal::NativeWidgetDelegate* delegate() { return delegate_; }
protected:
@@ -44,6 +48,7 @@
virtual const Widget* GetWidget() const OVERRIDE;
virtual gfx::NativeView GetNativeView() const OVERRIDE;
virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
+ virtual Widget* GetTopLevelWidget() OVERRIDE;
virtual const ui::Compositor* GetCompositor() const OVERRIDE;
virtual ui::Compositor* GetCompositor() OVERRIDE;
virtual void MarkLayerDirty() OVERRIDE;
@@ -114,6 +119,9 @@
internal::NativeWidgetPrivate* GetParentNativeWidget();
const internal::NativeWidgetPrivate* GetParentNativeWidget() const;
+ // Called by the NativeWidgetView when it is deleted.
+ void OnDestroy();
+
internal::NativeWidgetDelegate* delegate_;
internal::NativeWidgetView* view_;
@@ -131,9 +139,14 @@
Widget* hosting_widget_;
+ // See class documentation for Widget in widget.h for a note about ownership.
+ Widget::InitParams::Ownership ownership_;
+
+ bool delete_native_view_;
+
DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews);
};
-}
+} // namespace views
#endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
« no previous file with comments | « views/widget/native_widget_view.cc ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698