diff options
Diffstat (limited to 'views/controls/button/menu_button.h')
-rw-r--r-- | views/controls/button/menu_button.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/controls/button/menu_button.h b/views/controls/button/menu_button.h index 3895b03..c4e95e4 100644 --- a/views/controls/button/menu_button.h +++ b/views/controls/button/menu_button.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// 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. @@ -97,6 +97,10 @@ class MenuButton : public TextButton { // text buttons. const SkBitmap* menu_marker_; + // If non-null the destuctor sets this to true. This is set while the menu is + // showing and used to detect if the menu was deleted while running. + bool* destroyed_flag_; + DISALLOW_COPY_AND_ASSIGN(MenuButton); }; |