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

Unified Diff: views/views_delegate.h

Issue 1664001: Fixes possible crash if the window hosting a menu was closed while the (Closed)
Patch Set: Incorporated review feedback Created 10 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
« no previous file with comments | « views/views.gyp ('k') | views/widget/widget_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/views_delegate.h
diff --git a/views/views_delegate.h b/views/views_delegate.h
index 6fe7f74f91171a7d5cfae1077d3401bccd78dfdc..d78304c8fb3b7fbd1cf373d98ad6ea32eb5277f6 100644
--- a/views/views_delegate.h
+++ b/views/views_delegate.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
@@ -49,6 +49,11 @@ class ViewsDelegate {
virtual HICON GetDefaultWindowIcon() const = 0;
#endif
+ // AddRef/ReleaseRef are invoked while a menu is visible. They are used to
+ // ensure we don't attempt to exit while a menu is showing.
+ virtual void AddRef() = 0;
+ virtual void ReleaseRef() = 0;
+
// The active ViewsDelegate used by the views system.
static ViewsDelegate* views_delegate;
};
« no previous file with comments | « views/views.gyp ('k') | views/widget/widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698