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

Unified Diff: ui/views/widget/widget.h

Issue 10154013: Fixes crash in closing menus. There are two issues here: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OnOwnerClosing and more comments Created 8 years, 8 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/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index c2f4eb44699d06cb9e6cc293b6ee1098092f45ac..2ab8f55d74df71892d3dc40ac5c6933d9477b384 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -606,6 +606,12 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// Returns the bounds of work area in the screen that Widget belongs to.
gfx::Rect GetWorkAreaBoundsInScreen() const;
+ // Notification that our owner is closing.
+ // NOTE: this is not invoked for aura as it's currently not needed there.
+ // Under aura menus close by way of activation getting reset when the owner
+ // closes.
+ virtual void OnOwnerClosing();
+
// Overridden from NativeWidgetDelegate:
virtual bool IsModal() const OVERRIDE;
virtual bool IsDialogBox() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698