зеркало из https://github.com/mozilla/gecko-dev.git
Updated Interfaces to support UNIX
This commit is contained in:
Родитель
1add9574a3
Коммит
aa87aa621d
|
@ -20,6 +20,18 @@ DEPTH=../..
|
|||
DEFINES = -D_IMPL_NS_UI
|
||||
|
||||
EXPORTS = \
|
||||
nsIMenuBar.h \
|
||||
nsIMenu.h \
|
||||
nsIMenuItem.h \
|
||||
nsIToolbar.h \
|
||||
nsIImageButton.h \
|
||||
nsIToolbarManager.h \
|
||||
nsIToolbarManagerListener.h \
|
||||
nsIToolbarItem.h \
|
||||
nsIToolbarItemHolder.h \
|
||||
nsIPopUpMenu.h \
|
||||
nsIMenuButton.h \
|
||||
nsIImageButtonListener.h \
|
||||
nsStringUtil.h \
|
||||
nsui.h \
|
||||
nsITabWidget.h \
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
class nsIRenderingContext;
|
||||
class nsIWidget;
|
||||
class nsIMenuItem;
|
||||
|
||||
/**
|
||||
* Return status for event processors.
|
||||
|
@ -134,11 +135,14 @@ struct nsTooltipEvent : public nsGUIEvent {
|
|||
|
||||
/**
|
||||
* MenuItem event
|
||||
*
|
||||
* When this event occurs the widget field in nsGUIEvent holds the "target"
|
||||
* for the event
|
||||
*/
|
||||
|
||||
struct nsMenuEvent : public nsGUIEvent {
|
||||
/// Index of the selected menu item
|
||||
PRUint32 menuItem;
|
||||
nsIMenuItem * mMenuItem;
|
||||
PRUint32 mCommand;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIMenuItem.h"
|
||||
|
||||
class nsIMenuBar;
|
||||
class nsIMenu;
|
||||
class nsIMenuItem;
|
||||
|
||||
// {35A3DEC1-4992-11d2-8DBA-00609703C14E}
|
||||
#define NS_IMENU_IID \
|
||||
|
@ -50,7 +50,13 @@ class nsIMenu : public nsISupports {
|
|||
*
|
||||
*/
|
||||
NS_IMETHOD Create(nsIMenu * aParent, const nsString &aLabel) = 0;
|
||||
|
||||
|
||||
/**
|
||||
* Get the Menu's Parent
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetParent(nsISupports *&aParent) = 0;
|
||||
|
||||
/**
|
||||
* Get the Menu label
|
||||
*
|
||||
|
|
|
@ -42,7 +42,13 @@ class nsIMenuBar : public nsISupports {
|
|||
*
|
||||
*/
|
||||
NS_IMETHOD Create(nsIWidget * aParent) = 0;
|
||||
|
||||
|
||||
/**
|
||||
* Get the MenuBar's Parent
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetParent(nsIWidget *&aParent) = 0;
|
||||
|
||||
/**
|
||||
* Adds the Menu
|
||||
*
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
class nsIMenu;
|
||||
class nsIPopUpMenu;
|
||||
class nsIWidget;
|
||||
|
||||
/**
|
||||
* MenuItem widget
|
||||
|
@ -41,13 +42,17 @@ class nsIMenuItem : public nsISupports {
|
|||
* Creates the MenuItem
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Create(nsIMenu * aParent, const nsString &aLabel, PRUint32 aCommand) = 0;
|
||||
NS_IMETHOD Create(nsIMenu *aParent,
|
||||
const nsString &aLabel,
|
||||
PRUint32 aCommand) = 0;
|
||||
|
||||
/**
|
||||
* Creates the MenuItem
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Create(nsIPopUpMenu * aParent, const nsString &aLabel, PRUint32 aCommand) = 0;
|
||||
NS_IMETHOD Create(nsIPopUpMenu *aParent,
|
||||
const nsString &aLabel,
|
||||
PRUint32 aCommand) = 0;
|
||||
|
||||
/**
|
||||
* Get the MenuItem label
|
||||
|
@ -60,6 +65,12 @@ class nsIMenuItem : public nsISupports {
|
|||
*
|
||||
*/
|
||||
NS_IMETHOD GetCommand(PRUint32 & aCommand) = 0;
|
||||
|
||||
/**
|
||||
* Gets the target for MenuItem
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetTarget(nsIWidget *& aTarget) = 0;
|
||||
|
||||
/**
|
||||
* Gets Native Menu Handle
|
||||
|
|
|
@ -122,6 +122,12 @@ class nsIPopUpMenu : public nsISupports {
|
|||
*/
|
||||
NS_IMETHOD GetNativeData(void*& aData) = 0;
|
||||
|
||||
/**
|
||||
* Gets parent widget
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetParent(nsIWidget *& aParent) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -529,6 +529,13 @@ class nsIWidget : public nsISupports {
|
|||
*/
|
||||
NS_IMETHOD SetPreferredSize(PRInt32 aWidth, PRInt32 aHeight) = 0;
|
||||
|
||||
/**
|
||||
* Dispatches and event to the widget
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD DispatchEvent(nsGUIEvent* event) = 0;
|
||||
|
||||
|
||||
|
||||
virtual void ConvertToDeviceCoordinates(nscoord &aX,nscoord &aY) = 0;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче