зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1698668
- Add a standaloneNativeMenu.dump() method that can be called from a test for debugging purposes. r=harry
Depends on D108555 Differential Revision: https://phabricator.services.mozilla.com/D108729
This commit is contained in:
Родитель
77f1ed5da4
Коммит
72ef050026
|
@ -189,3 +189,15 @@ void nsStandaloneNativeMenu::SetContainerStatusBarItem(NSStatusItem* aItem) {
|
|||
mContainerStatusBarItem = aItem;
|
||||
IconUpdated();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsStandaloneNativeMenu::Dump() {
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
||||
|
||||
mMenu->Dump(0);
|
||||
nsMenuUtilsX::DumpNativeMenu(mMenu->NativeNSMenu());
|
||||
|
||||
return NS_OK;
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||
}
|
||||
|
|
|
@ -53,4 +53,11 @@ interface nsIStandaloneNativeMenu : nsISupports
|
|||
* pipe ('|') characters
|
||||
*/
|
||||
void forceUpdateNativeMenuAt(in AString anIndexString);
|
||||
|
||||
|
||||
/**
|
||||
* Print information about the menu structure to stdout. Only used for
|
||||
* debugging.
|
||||
*/
|
||||
void dump();
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче