| 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;
|
| };
|
|
|