diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-13 20:47:47 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-13 20:47:47 +0000 |
commit | 8ef755bf7d6f10b307c1a92f6c3b1c7944cf06aa (patch) | |
tree | 04e4ddf6f48d96110fe4f05cf48b9f5eba3dc789 /chrome/browser/cocoa/menu_button.h | |
parent | c56cb410c3903f08d7cc0ed1589d6dcee433b624 (diff) | |
download | chromium_src-8ef755bf7d6f10b307c1a92f6c3b1c7944cf06aa.zip chromium_src-8ef755bf7d6f10b307c1a92f6c3b1c7944cf06aa.tar.gz chromium_src-8ef755bf7d6f10b307c1a92f6c3b1c7944cf06aa.tar.bz2 |
Fix crash caused by having accessibility turned on.
BUG=http://crbug.com/31007
TEST=as in bug
Review URL: http://codereview.chromium.org/548015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/menu_button.h')
-rw-r--r-- | chrome/browser/cocoa/menu_button.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/menu_button.h b/chrome/browser/cocoa/menu_button.h index c281e77..c03caa2 100644 --- a/chrome/browser/cocoa/menu_button.h +++ b/chrome/browser/cocoa/menu_button.h @@ -7,12 +7,15 @@ #import <Cocoa/Cocoa.h> +#include "base/scoped_nsobject.h" + // This a button which displays a user-provided menu "attached" below it upon // being clicked or dragged (or clicked and held). It expects a // |ClickHoldButtonCell| as cell. @interface MenuButton : NSButton { @private IBOutlet NSMenu* attachedMenu_; + scoped_nsobject<NSPopUpButtonCell> popUpCell_; } // The menu to display. Note that it should have no (i.e., a blank) title and |