mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 22:35:43 +00:00
Teaching context menus about alignment.
This commit is contained in:
parent
edee2e9784
commit
707d2781a4
@ -48,7 +48,7 @@ class nsIContextMenu : public nsISupports {
|
||||
* Creates the context menu
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Create(nsISupports * aParent) = 0;
|
||||
NS_IMETHOD Create(nsISupports * aParent, const nsString& anAlignment) = 0;
|
||||
|
||||
/**
|
||||
* Get the context menu's Parent
|
||||
|
@ -152,7 +152,7 @@ nsContextMenu::~nsContextMenu()
|
||||
// Create the proper widget
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
NS_METHOD nsContextMenu::Create(nsISupports *aParent)
|
||||
NS_METHOD nsContextMenu::Create(nsISupports *aParent, const nsString& anAlignment)
|
||||
{
|
||||
mParent = aParent;
|
||||
mMacMenuHandle = ::NewMenu(mMacMenuIDCount, (const unsigned char *)"");
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
nsEventStatus MenuDestruct(const nsMenuEvent & aMenuEvent);
|
||||
|
||||
// nsIMenu Methods
|
||||
NS_IMETHOD Create(nsISupports * aParent);
|
||||
NS_IMETHOD Create(nsISupports * aParent, const nsString& anAlignment);
|
||||
NS_IMETHOD GetParent(nsISupports *&aParent);
|
||||
NS_IMETHOD AddItem(nsISupports* aText);
|
||||
NS_IMETHOD AddSeparator();
|
||||
|
@ -118,7 +118,7 @@ nsContextMenu::~nsContextMenu()
|
||||
// Create the proper widget
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
NS_METHOD nsContextMenu::Create(nsISupports *aParent)
|
||||
NS_METHOD nsContextMenu::Create(nsISupports *aParent, const nsString& anAlignment)
|
||||
{
|
||||
if(aParent)
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
nsEventStatus MenuDestruct(const nsMenuEvent & aMenuEvent);
|
||||
|
||||
// nsIMenu Methods
|
||||
NS_IMETHOD Create(nsISupports * aParent);
|
||||
NS_IMETHOD Create(nsISupports * aParent, const nsString& anAlignment);
|
||||
NS_IMETHOD GetParent(nsISupports *&aParent);
|
||||
|
||||
NS_IMETHOD AddItem(nsISupports * aItem);
|
||||
|
Loading…
Reference in New Issue
Block a user