mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Tweaks to the APIs to change the int types. Also cleaned up IsExpanded.
This commit is contained in:
parent
90efe9d4ba
commit
7e9a36bc15
@ -35,13 +35,13 @@ class nsIDMItem : public nsISupports
|
||||
public:
|
||||
// Inspectors
|
||||
NS_IMETHOD GetIconImage(nsIImage*& pImage, nsIImageGroup* pGroup) = 0;
|
||||
NS_IMETHOD IsExpanded(PRBool& answer) = 0;
|
||||
NS_IMETHOD GetOpenState(PRBool& answer) = 0;
|
||||
|
||||
// Setters
|
||||
|
||||
// Methods to query the data model for a specific item displayed within the widget.
|
||||
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& itemProperty) = 0;
|
||||
NS_IMETHOD GetIntPropertyValue(int& value, const nsString& itemProperty) = 0;
|
||||
NS_IMETHOD GetIntPropertyValue(PRInt32& value, const nsString& itemProperty) = 0;
|
||||
};
|
||||
|
||||
#endif /* nsIDMItem_h___ */
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
|
||||
// Methods to query the data model for property values for an entire widget.
|
||||
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& property) = 0;
|
||||
NS_IMETHOD GetIntPropertyValue(int& value, const nsString& property) = 0;
|
||||
NS_IMETHOD GetIntPropertyValue(PRInt32& value, const nsString& property) = 0;
|
||||
};
|
||||
|
||||
#endif /* nsIDataModel_h___ */
|
||||
|
@ -38,13 +38,13 @@ class nsITreeColumn : public nsISupports
|
||||
{
|
||||
public:
|
||||
// Inspectors
|
||||
NS_IMETHOD GetPixelWidth(int& width) = 0;
|
||||
NS_IMETHOD GetPixelWidth(PRUint32& width) = 0;
|
||||
NS_IMETHOD GetDesiredPercentage(double& percentage) = 0;
|
||||
NS_IMETHOD GetSortState(nsColumnSortState& answer) = 0;
|
||||
NS_IMETHOD GetColumnName(nsString& name) = 0;
|
||||
|
||||
// Setters
|
||||
NS_IMETHOD SetPixelWidth(int newWidth) = 0;
|
||||
NS_IMETHOD SetPixelWidth(PRUint32 newWidth) = 0;
|
||||
};
|
||||
|
||||
#endif /* nsITreeColumn_h___ */
|
||||
|
@ -35,12 +35,12 @@ class nsITreeDataModel : public nsIDataModel
|
||||
|
||||
public:
|
||||
// Column APIs
|
||||
NS_IMETHOD GetVisibleColumnCount(int& count) = 0;
|
||||
NS_IMETHOD GetNthColumn(nsITreeColumn*& pColumn, int n) = 0;
|
||||
NS_IMETHOD GetVisibleColumnCount(PRUint32& count) = 0;
|
||||
NS_IMETHOD GetNthColumn(nsITreeColumn*& pColumn, PRUint32 n) = 0;
|
||||
|
||||
// TreeItem APIs
|
||||
NS_IMETHOD GetFirstVisibleItemIndex(int& index) = 0;
|
||||
NS_IMETHOD GetNthTreeItem(nsITreeItem*& pItem, int n) = 0;
|
||||
NS_IMETHOD GetFirstVisibleItemIndex(PRUint32& index) = 0;
|
||||
NS_IMETHOD GetNthTreeItem(nsITreeItem*& pItem, PRUint32 n) = 0;
|
||||
NS_IMETHOD GetItemTextForColumn(nsString& nodeText, nsITreeItem* pItem, nsITreeColumn* pColumn) = 0;
|
||||
};
|
||||
|
||||
|
@ -35,7 +35,7 @@ class nsITreeItem : public nsIDMItem
|
||||
public:
|
||||
// Inspectors
|
||||
NS_IMETHOD GetTriggerImage(nsIImage*& pImage, nsIImageGroup* pGroup) = 0;
|
||||
NS_IMETHOD GetIndentationLevel(int& indentation) = 0;
|
||||
NS_IMETHOD GetIndentationLevel(PRUint32& indentation) = 0;
|
||||
|
||||
// Setters
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user