Bug 904538 - Don't #include nsITheme.h in nsIWidget.h. r=roc

This commit is contained in:
Markus Stange 2013-08-14 13:19:55 +02:00
parent b0891644ca
commit ca3ed71e54
3 changed files with 12 additions and 8 deletions

View File

@ -34,13 +34,6 @@ class nsIWidget;
#define NS_THEMERENDERER_CID \
{ 0xd930e29b, 0x6909, 0x44e5, { 0xab, 0x4b, 0xaf, 0x10, 0xd6, 0x92, 0x37, 0x5 } }
enum nsTransparencyMode {
eTransparencyOpaque = 0, // Fully opaque
eTransparencyTransparent, // Parts of the window may be transparent
eTransparencyGlass, // Transparent parts of the window have Vista AeroGlass effect applied
eTransparencyBorderlessGlass // As above, but without a border around the opaque areas when there would otherwise be one with eTransparencyGlass
};
/**
* nsITheme is a service that provides platform-specific native
* rendering for widgets. In other words, it provides the necessary

View File

@ -35,6 +35,7 @@
#include "mozilla/TypedEnum.h"
#include "nsDirection.h"
#include <algorithm>
#include "nsITheme.h"
#ifdef ACCESSIBILITY
#include "mozilla/a11y/AccTypes.h"

View File

@ -13,7 +13,6 @@
#include "nsEvent.h"
#include "nsCOMPtr.h"
#include "nsITheme.h"
#include "nsWidgetInitData.h"
#include "nsTArray.h"
#include "nsXULAppAPI.h"
@ -111,6 +110,17 @@ typedef void* nsNativeWidget;
#define NS_STYLE_WINDOW_SHADOW_TOOLTIP 3
#define NS_STYLE_WINDOW_SHADOW_SHEET 4
/**
* Transparency modes
*/
enum nsTransparencyMode {
eTransparencyOpaque = 0, // Fully opaque
eTransparencyTransparent, // Parts of the window may be transparent
eTransparencyGlass, // Transparent parts of the window have Vista AeroGlass effect applied
eTransparencyBorderlessGlass // As above, but without a border around the opaque areas when there would otherwise be one with eTransparencyGlass
};
/**
* Cursor types.
*/