зеркало из https://github.com/mozilla/gecko-dev.git
Bug 172751 nsITheme support for Windows 9x/NT/2000
patch by tim@prismelite.com r=hyatt sr=roc+moz
This commit is contained in:
Родитель
e80ad6427b
Коммит
20a24684e0
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -20,6 +20,7 @@
|
||||||
* Original Author: David W. Hyatt (hyatt@netscape.com)
|
* Original Author: David W. Hyatt (hyatt@netscape.com)
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
|
* Tim Hill (tim@prismelite.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nsITheme.h"
|
#include "nsITheme.h"
|
||||||
|
@ -67,10 +68,33 @@ protected:
|
||||||
HANDLE GetTheme(PRUint8 aWidgetType);
|
HANDLE GetTheme(PRUint8 aWidgetType);
|
||||||
nsresult GetThemePartAndState(nsIFrame* aFrame, PRUint8 aWidgetType,
|
nsresult GetThemePartAndState(nsIFrame* aFrame, PRUint8 aWidgetType,
|
||||||
PRInt32& aPart, PRInt32& aState);
|
PRInt32& aPart, PRInt32& aState);
|
||||||
|
nsresult ClassicGetThemePartAndState(nsIFrame* aFrame, PRUint8 aWidgetType,
|
||||||
|
PRInt32& aPart, PRInt32& aState, PRBool& aFocused);
|
||||||
|
nsresult ClassicDrawWidgetBackground(nsIRenderingContext* aContext,
|
||||||
|
nsIFrame* aFrame,
|
||||||
|
PRUint8 aWidgetType,
|
||||||
|
const nsRect& aRect,
|
||||||
|
const nsRect& aClipRect);
|
||||||
|
nsresult ClassicGetWidgetBorder(nsIDeviceContext* aContext,
|
||||||
|
nsIFrame* aFrame,
|
||||||
|
PRUint8 aWidgetType,
|
||||||
|
nsMargin* aResult);
|
||||||
|
|
||||||
|
nsresult ClassicGetMinimumWidgetSize(nsIRenderingContext* aContext, nsIFrame* aFrame,
|
||||||
|
PRUint8 aWidgetType,
|
||||||
|
nsSize* aResult,
|
||||||
|
PRBool* aIsOverridable);
|
||||||
|
|
||||||
|
PRBool ClassicThemeSupportsWidget(nsIPresContext* aPresContext,
|
||||||
|
nsIFrame* aFrame,
|
||||||
|
PRUint8 aWidgetType);
|
||||||
|
|
||||||
|
|
||||||
PRBool IsDisabled(nsIFrame* aFrame);
|
PRBool IsDisabled(nsIFrame* aFrame);
|
||||||
PRBool IsReadOnly(nsIFrame* aFrame);
|
PRBool IsReadOnly(nsIFrame* aFrame);
|
||||||
PRBool IsChecked(nsIFrame* aFrame);
|
PRBool IsChecked(nsIFrame* aFrame);
|
||||||
PRBool IsSelected(nsIFrame* aFrame);
|
PRBool IsSelected(nsIFrame* aFrame);
|
||||||
|
PRBool IsBottomTab(nsIFrame* aFrame);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HMODULE mThemeDLL;
|
HMODULE mThemeDLL;
|
||||||
|
@ -95,6 +119,7 @@ private:
|
||||||
nsCOMPtr<nsIAtom> mTypeAtom;
|
nsCOMPtr<nsIAtom> mTypeAtom;
|
||||||
nsCOMPtr<nsIAtom> mReadOnlyAtom;
|
nsCOMPtr<nsIAtom> mReadOnlyAtom;
|
||||||
nsCOMPtr<nsIAtom> mDefaultAtom;
|
nsCOMPtr<nsIAtom> mDefaultAtom;
|
||||||
|
nsCOMPtr<nsIAtom> mClassAtom;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Creator function
|
// Creator function
|
||||||
|
|
|
@ -87,6 +87,7 @@ textbox {
|
||||||
.autocomplete-tree {
|
.autocomplete-tree {
|
||||||
border: none;
|
border: none;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
|
-moz-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.autocomplete-treecol {
|
.autocomplete-treecol {
|
||||||
|
|
|
@ -119,6 +119,7 @@ html|*.menulist-editable-input {
|
||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
background: inherit;
|
background: inherit;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
|
-moz-appearance: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ::::: compact menulists ::::: */
|
/* ::::: compact menulists ::::: */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче