Lines Matching refs:nsMenuX
8 #include "nsMenuX.h"
52 int32_t nsMenuX::sIndexingMenuLevel = 0;
93 // nsMenuX
96 nsMenuX::nsMenuX() function
126 MOZ_COUNT_CTOR(nsMenuX);
131 nsMenuX::~nsMenuX() function
152 MOZ_COUNT_DTOR(nsMenuX);
157 nsresult nsMenuX::Create(nsMenuObjectX* aParent, nsMenuGroupOwnerX* aMenuGroupOwner, nsIContent* aN…
205 nsresult nsMenuX::AddMenuItem(nsMenuItemX* aMenuItem)
237 nsMenuX* nsMenuX::AddMenu(UniquePtr<nsMenuX> aMenu)
243 nsMenuX* menu = aMenu.get();
265 uint32_t nsMenuX::GetItemCount()
271 nsMenuObjectX* nsMenuX::GetItemAt(uint32_t aPos)
280 nsresult nsMenuX::GetVisibleItemCount(uint32_t &aCount)
288 nsMenuObjectX* nsMenuX::GetVisibleItemAt(uint32_t aPos)
316 nsresult nsMenuX::RemoveAll()
338 nsEventStatus nsMenuX::MenuOpened()
369 void nsMenuX::MenuClosed()
395 void nsMenuX::MenuConstruct()
403 …//printf("nsMenuX::MenuConstruct called for %s = %d \n", NS_LossyConvertUTF16toASCII(mLabel).get()…
451 void nsMenuX::SetRebuild(bool aNeedsRebuild)
457 nsresult nsMenuX::SetEnabled(bool aIsEnabled)
467 nsresult nsMenuX::GetEnabled(bool* aIsEnabled)
474 GeckoNSMenu* nsMenuX::CreateMenuWithGeckoString(nsString& menuTitle)
496 void nsMenuX::LoadMenuItem(nsIContent* inMenuItemContent)
538 void nsMenuX::LoadSubMenu(nsIContent* inMenuContent)
540 auto menu = MakeUnique<nsMenuX>();
550 nsMenuX* menu_ptr = AddMenu(Move(menu));
561 bool nsMenuX::OnOpen()
596 bool nsMenuX::OnClose()
623 void nsMenuX::GetMenuPopupContent(nsIContent** aResult)
656 NSMenuItem* nsMenuX::NativeMenuItem()
661 bool nsMenuX::IsXULHelpMenu(nsIContent* aMenuContent)
677 void nsMenuX::ObserveAttributeChanged(nsIDocument *aDocument, nsIContent *aContent,
700 NS_ASSERTION(mNativeMenu, "nsMenuX::AttributeChanged: invalid menu handle.");
705 static_cast<nsMenuX*>(mParent)->SetRebuild(true);
758 void nsMenuX::ObserveContentRemoved(nsIDocument *aDocument, nsIContent *aChild,
768 void nsMenuX::ObserveContentInserted(nsIDocument *aDocument, nsIContent* aContainer,
777 nsresult nsMenuX::SetupIcon()
793 - (id)initWithGeckoMenu:(nsMenuX*)geckoMenu
827 if (nsMenuX::sIndexingMenuLevel > 0)
850 if (nsMenuX::sIndexingMenuLevel > 0)
863 // The bug is that sometimes you crash on quit in nsMenuX::RemoveAll(), on a
1046 ++nsMenuX::sIndexingMenuLevel;
1048 --nsMenuX::sIndexingMenuLevel;