From 4d0cd7ce8c91a2c0157ecf9e0a5153712ff43d10 Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Mon, 11 Aug 2008 16:40:57 +0000 Subject: A set of tests to exercise chrome menus as well as parts of bookmark bar view. These are disabled until we straighten out the buildbot that is always logged in. BUG=1318922 TEST=this is just a bunch of tests. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@654 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/chrome_menu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chrome/views/chrome_menu.h') diff --git a/chrome/views/chrome_menu.h b/chrome/views/chrome_menu.h index 0c478aa..03f3c6c 100644 --- a/chrome/views/chrome_menu.h +++ b/chrome/views/chrome_menu.h @@ -237,6 +237,10 @@ class MenuItemView : public View { // before/after the menu item, otherwise it is on the item. static const int kDropBetweenPixels; + // If true SetNestableTasksAllowed(true) is invoked before MessageLoop::Run + // is invoked. This is only useful for testing and defaults to false. + static bool allow_task_nesting_during_run_; + // Different types of menu items. enum Type { NORMAL, @@ -388,7 +392,7 @@ class MenuItemView : public View { // Returns the root parent, or this if this has no parent. MenuItemView* GetRootMenuItem(); - // Returs the mnemonic for this MenuItemView, or 0 if this MenuItemView + // Returns the mnemonic for this MenuItemView, or 0 if this MenuItemView // doesn't have a mnemonic. wchar_t GetMnemonic(); -- cgit v1.1