Bug 431634 - Part 1 - clean up header pollution; r+sr=roc

This commit is contained in:
Jeremy D. Lea 2009-04-01 13:59:02 -08:00
Родитель b011084479
Коммит d37e6bf09c
59 изменённых файлов: 246 добавлений и 163 удалений

Просмотреть файл

@ -51,7 +51,8 @@
#include "nsISelection2.h"
#include "nsServiceManagerUtils.h"
#include "nsIViewManager.h"
#include "nsIWidget.h"
class nsIWidget;
NS_IMPL_ISUPPORTS1(nsCaretAccessible, nsISelectionListener)

Просмотреть файл

@ -49,7 +49,6 @@
#include "nsIURI.h"
#include "nsIViewManager.h"
#include "nsIWebNavigation.h"
#include "nsIWidget.h"
/* For documentation of the accessibility architecture,
* see http://lxr.mozilla.org/seamonkey/source/accessible/accessible-docs.html

Просмотреть файл

@ -45,7 +45,6 @@
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsIRenderingContext.h"
#include "nsIWidget.h"
#include "nsIComponentManager.h"
// --------------------------------------------------------
@ -212,9 +211,6 @@ nsresult nsTextAccessibleWrap::GetCharacterExtents(PRInt32 aStartOffset, PRInt32
nsIFrame *frame = GetFrame();
NS_ENSURE_TRUE(frame, NS_ERROR_FAILURE);
nsIWidget *widget = frame->GetWindow();
NS_ENSURE_TRUE(widget, NS_ERROR_FAILURE);
nsPoint startPoint, endPoint;
nsIFrame *startFrame = GetPointFromOffset(frame, aStartOffset, PR_TRUE, startPoint);
nsIFrame *endFrame = GetPointFromOffset(frame, aEndOffset, PR_FALSE, endPoint);

Просмотреть файл

@ -89,6 +89,7 @@
#include "nsNodeInfoManager.h"
#include "nsTimer.h"
#include "nsIAppShell.h"
#include "nsIWidget.h"
#include "nsWidgetsCID.h"
#include "nsIDOMNSDocument.h"
#include "nsIRequest.h"

Просмотреть файл

@ -39,11 +39,13 @@
#ifndef nsEventDispatcher_h___
#define nsEventDispatcher_h___
#include "nsGUIEvent.h"
#include "nsCOMPtr.h"
#include "nsEvent.h"
class nsIContent;
class nsIDocument;
class nsPresContext;
class nsIDOMEvent;
class nsPIDOMEventTarget;
class nsIScriptGlobalObject;
class nsEventTargetChainItem;

Просмотреть файл

@ -40,7 +40,7 @@
#define nsEventStateManager_h__
#include "nsIEventStateManager.h"
#include "nsGUIEvent.h"
#include "nsEvent.h"
#include "nsIContent.h"
#include "nsIObserver.h"
#include "nsWeakReference.h"

Просмотреть файл

@ -40,7 +40,6 @@
#define nsIMEStateManager_h__
#include "nscore.h"
#include "nsGUIEvent.h"
class nsIContent;
class nsPIDOMWindow;

Просмотреть файл

@ -108,6 +108,7 @@
#include "nsIURIClassifier.h"
#include "nsIChannelClassifier.h"
#include "nsILoadContext.h"
#include "nsIWidget.h"
class nsIScrollableView;
class nsDocShell;

Просмотреть файл

@ -54,6 +54,7 @@
#include "nsString.h"
#include "nsEventDispatcher.h"
#include "nsIProgrammingLanguage.h"
#include "nsGUIEvent.h"
#include "nsCycleCollectionParticipant.h"

Просмотреть файл

@ -128,7 +128,6 @@
#include "nsIFrame.h"
#include "nsIView.h"
#include "nsIWidget.h"
#include "nsIParserService.h"
#include "nsIEventStateManager.h"

Просмотреть файл

@ -71,7 +71,6 @@ WIN_LIBS= \
#include "nsString.h"
#include "nsIServiceManager.h"
#include "nsReadableUtils.h"
#include "nsIWidget.h"
#include "nsIPrintSettings.h"
#include "nsIPrintSettingsWin.h"
#include "nsIPrintOptions.h"

Просмотреть файл

@ -87,6 +87,7 @@
#include "nsIDeviceContext.h"
#include "nsIDOMStorage.h"
#include "nsPIDOMStorage.h"
#include "nsIWidget.h"
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"

Просмотреть файл

@ -77,9 +77,6 @@
#include "PrintProgressDialog.h"
//#include "PrintSetupDialog.h"
// Mozilla Includes
#include "nsIWidget.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE

Просмотреть файл

@ -105,8 +105,6 @@ public:
nsCOMPtr<nsIBaseWindow> mBaseWindow;
nsCOMPtr<nsIWebNavigation> mWebNav;
typedef void* nsNativeWidget;
//nsCOMPtr<nsISHistory> mSessionHistory; // de: added in 5/11/01
void UpdateBusyState(PRBool aBusy);

Просмотреть файл

@ -42,10 +42,10 @@
#include "nsISupports.h"
#include "nsCoord.h"
#include "nsRect.h"
#include "nsIWidget.h"
#include "nsIRenderingContext.h"
// XXX we need only gfxTypes.h, but we cannot include it directly.
#include "gfxPoint.h"
#include "nsNativeWidget.h"
class nsIView;
class nsIFontMetrics;

Просмотреть файл

@ -44,6 +44,7 @@
#include "nsThebesDeviceContext.h"
#include "nsThebesRenderingContext.h"
#include "nsIWidget.h"
#include "nsIView.h"
#include "nsILookAndFeel.h"

Просмотреть файл

@ -34,7 +34,6 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsIWidget.h"
extern nsresult CoverageTest(int * argc, char **argv);

Просмотреть файл

@ -42,7 +42,6 @@
#define nsStyleConsts_h___
#include "nsFont.h"
#include "nsIWidget.h"
// cairo doesn't support invert
// #define GFX_HAS_INVERT

Просмотреть файл

@ -54,7 +54,6 @@
#include "nsCSSAnonBoxes.h"
#include "nsIImage.h"
#include "nsStyleConsts.h"
#include "nsIWidget.h"
#include "nsIComponentManager.h"
#include "nsIDocument.h"
#include "nsButtonFrameRenderer.h"

Просмотреть файл

@ -79,7 +79,6 @@
#include "nsXPIDLString.h"
#include "nsIScrollable.h"
#include "nsINameSpaceManager.h"
#include "nsIWidget.h"
#include "nsWeakReference.h"
#include "nsIDOMWindow.h"
#include "nsIDOMDocument.h"

Просмотреть файл

@ -46,7 +46,6 @@
#include "nsIScrollableFrame.h"
#include "nsIScrollPositionListener.h"
#include "nsIStatefulFrame.h"
#include "nsGUIEvent.h"
#include "nsThreadUtils.h"
#include "nsIScrollableView.h"
#include "nsIView.h"

Просмотреть файл

@ -49,7 +49,6 @@
#include "nsGkAtoms.h"
#include "nsLayoutUtils.h"
#include "nsCSSAnonBoxes.h"
#include "nsIWidget.h"
#include "nsILinkHandler.h"
#include "nsGUIEvent.h"
#include "nsIDocument.h"

Просмотреть файл

@ -48,7 +48,6 @@
#include "nsIRenderingContext.h"
#include "nsIPresShell.h"
#include "nsIImage.h"
#include "nsIWidget.h"
#include "nsGkAtoms.h"
#include "nsIDocument.h"
#include "nsINodeInfo.h"

Просмотреть файл

@ -44,6 +44,7 @@
#include "nsCSSProps.h"
#include "nsCSSKeywords.h"
#include "nsStyleConsts.h"
#include "nsIWidget.h"
#include "nsThemeConstants.h" // For system widget appearance types
#include "nsILookAndFeel.h" // for system colors

Просмотреть файл

@ -52,6 +52,7 @@
#include "nscore.h"
#include "nsIServiceManager.h"
#include "nsIDeviceContext.h"
#include "nsIWidget.h"
#include "nsILookAndFeel.h"
#include "nsIPresShell.h"
#include "nsIThebesFontMetrics.h"

Просмотреть файл

@ -50,6 +50,7 @@
#include "nsString.h"
#include "nsPresContext.h"
#include "nsIDeviceContext.h"
#include "nsIWidget.h"
#include "nsIStyleRule.h"
#include "nsCRT.h"

Просмотреть файл

@ -44,7 +44,6 @@
#include "prlog.h"
#include "nsGUIEvent.h"
#include "nsIContent.h"
#include "nsIWidget.h"
#include "nsIRollupListener.h"
#include "nsIMenuRollup.h"
#include "nsIDOMKeyListener.h"

Просмотреть файл

@ -51,7 +51,6 @@
#include "nsIDOMNode.h"
#include "nsIDOMNamedNodeMap.h"
#include "nsIDOMAttr.h"
#include "nsIWidget.h"
#include "nsIRenderingContext.h"
#include "nsIDocument.h"
#include "nsIDeviceContext.h"

Просмотреть файл

@ -87,7 +87,6 @@
#include "nsCSSAnonBoxes.h"
#include "nsIScrollableView.h"
#include "nsHTMLContainerFrame.h"
#include "nsIWidget.h"
#include "nsIEventStateManager.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"

Просмотреть файл

@ -48,7 +48,6 @@
#include "nsReadableUtils.h"
#include "nsIDOMClassInfo.h"
#include "nsIView.h"
#include "nsIWidget.h"
#ifdef MOZ_XUL
#include "nsIDOMXULElement.h"
#else

Просмотреть файл

@ -39,7 +39,6 @@
#include "nsCSSRendering.h"
#include "nsIDocument.h"
#include "nsPresContext.h"
#include "nsIWidget.h"
#include "nsPageFrame.h"
#include "nsIRenderingContext.h"
#include "nsGUIEvent.h"

Просмотреть файл

@ -52,7 +52,6 @@
#include "nsMenuFrame.h"
#include "nsMenuBarListener.h"
#include "nsMenuParent.h"
#include "nsIWidget.h"
class nsIContent;

Просмотреть файл

@ -54,7 +54,6 @@
#include "nsMenuPopupFrame.h"
#include "nsMenuBarFrame.h"
#include "nsIView.h"
#include "nsIWidget.h"
#include "nsIDocument.h"
#include "nsIDOMNSDocument.h"
#include "nsIDOMDocument.h"

Просмотреть файл

@ -54,10 +54,11 @@
#include "nsBoxFrame.h"
#include "nsMenuParent.h"
#include "nsIWidget.h"
#include "nsITimer.h"
class nsIWidget;
// XUL popups can be in several different states. When opening a popup, the
// state changes as follows:
// ePopupClosed - initial state

Просмотреть файл

@ -45,7 +45,6 @@
#include "nsGkAtoms.h"
#include "nsINameSpaceManager.h"
#include "nsIWidget.h"
#include "nsPresContext.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"

Просмотреть файл

@ -38,16 +38,19 @@
#ifndef nsIView_h___
#define nsIView_h___
#include "nsISupports.h"
#include "nsCoord.h"
#include "nsRect.h"
#include "nsPoint.h"
#include "nsIWidget.h"
#include "nsNativeWidget.h"
#include "nsWidgetInitData.h"
class nsIViewManager;
class nsIScrollableView;
class nsViewManager;
class nsView;
class nsWeakView;
class nsIWidget;
// Enumerated type to indicate the visibility of a layer.
// hide - the layer is not shown.

Просмотреть файл

@ -39,7 +39,6 @@
#define nsView_h___
#include "nsIView.h"
#include "nsIWidget.h"
#include "nsRegion.h"
#include "nsRect.h"
#include "nsCRT.h"

Просмотреть файл

@ -40,7 +40,6 @@
#include "nsCOMPtr.h"
#include "nsIViewManager.h"
#include "nsCRT.h"
#include "nsIWidget.h"
#include "nsITimer.h"
#include "prtime.h"
#include "prinrval.h"

Просмотреть файл

@ -50,6 +50,8 @@ EXPORTS = \
nsIWidget.h \
nsGUIEvent.h \
nsEvent.h \
nsNativeWidget.h \
nsWidgetInitData.h \
nsIEventListener.h \
nsWidgetsCID.h \
nsILookAndFeel.h \

Просмотреть файл

@ -57,6 +57,15 @@ enum nsEventStatus {
nsEventStatus_eConsumeDoDefault
};
/**
* sizemode is an adjunct to widget size
*/
enum nsSizeMode {
nsSizeMode_Normal = 0,
nsSizeMode_Minimized,
nsSizeMode_Maximized
};
class nsEvent;
class nsGUIEvent;
@ -68,6 +77,7 @@ class nsScrollbarEvent;
class nsScrollPortEvent;
class nsInputEvent;
class nsMouseEvent;
class nsDragEvent;
class nsAccessibleEvent;
class nsKeyEvent;
class nsTextEvent;

Просмотреть файл

@ -425,15 +425,6 @@ class nsHashKey;
* nsEvent.h.
*/
/**
* sizemode is an adjunct to widget size
*/
enum nsSizeMode {
nsSizeMode_Normal = 0,
nsSizeMode_Minimized,
nsSizeMode_Maximized
};
/**
* different types of (top-level) window z-level positioning
*/

Просмотреть файл

@ -39,8 +39,7 @@
#define nsIEventListener_h__
#include "nsISupports.h"
class nsGUIEvent;
#include "nsEvent.h"
/**
* Event listener interface.

Просмотреть файл

@ -40,9 +40,10 @@
#define nsIMenuRollup_h___
#include "nsISupports.h"
#include "nsIWidget.h"
#include "nsTArray.h"
class nsIWidget;
#define NS_IMENUROLLUP_IID \
{0x2b65d177, 0xc3e4, 0x4564, \
{ 0x8d, 0xed, 0x86, 0xd2, 0xfa, 0x2f, 0x65, 0x9a }}

Просмотреть файл

@ -47,6 +47,8 @@
#include "nsEvent.h"
#include "nsCOMPtr.h"
#include "nsITheme.h"
#include "nsNativeWidget.h"
#include "nsWidgetInitData.h"
// forward declarations
class nsIAppShell;
@ -66,12 +68,14 @@ class nsIContent;
/**
* Callback function that processes events.
*
* The argument is actually a subtype (subclass) of nsEvent which carries
* platform specific information about the event. Platform specific code knows
* how to deal with it.
* The return value determines whether or not the default action should take place.
* platform specific information about the event. Platform specific code
* knows how to deal with it.
*
* The return value determines whether or not the default action should take
* place.
*/
typedef nsEventStatus (* EVENT_CALLBACK)(nsGUIEvent *event);
/**
@ -117,70 +121,6 @@ typedef void* nsNativeWidget;
#define NS_STYLE_WINDOW_SHADOW_NONE 0
#define NS_STYLE_WINDOW_SHADOW_DEFAULT 1
/**
* Border styles
*/
enum nsWindowType { // Don't alter previously encoded enum values - 3rd party apps may look at these
// default top level window
eWindowType_toplevel,
// top level window but usually handled differently by the OS
eWindowType_dialog,
// used for combo boxes, etc
eWindowType_popup,
// child windows (contained inside a window on the desktop (has no border))
eWindowType_child,
// windows that are invisible or offscreen
eWindowType_invisible,
// plugin window
eWindowType_plugin,
// java plugin window
eWindowType_java,
// MacOSX sheet (special dialog class)
eWindowType_sheet
};
enum nsPopupType {
ePopupTypePanel,
ePopupTypeMenu,
ePopupTypeTooltip,
ePopupTypeAny = 0xF000 // used only to pass to nsXULPopupManager::GetTopPopup
};
enum nsBorderStyle
{
// no border, titlebar, etc.. opposite of all
eBorderStyle_none = 0,
// all window decorations
eBorderStyle_all = 1 << 0,
// enables the border on the window. these are only for decoration and are not resize hadles
eBorderStyle_border = 1 << 1,
// enables the resize handles for the window. if this is set, border is implied to also be set
eBorderStyle_resizeh = 1 << 2,
// enables the titlebar for the window
eBorderStyle_title = 1 << 3,
// enables the window menu button on the title bar. this being on should force the title bar to display
eBorderStyle_menu = 1 << 4,
// enables the minimize button so the user can minimize the window.
// turned off for tranient windows since they can not be minimized separate from their parent
eBorderStyle_minimize = 1 << 5,
// enables the maxmize button so the user can maximize the window
eBorderStyle_maximize = 1 << 6,
// show the close button
eBorderStyle_close = 1 << 7,
// whatever the OS wants... i.e. don't do anything
eBorderStyle_default = -1
};
/**
* Cursor types.
*/
@ -230,47 +170,12 @@ enum nsCursor { ///(normal cursor, usually rendered as an arrow)
eCursorCount
};
enum nsContentType {
eContentTypeInherit = -1,
eContentTypeUI = 0,
eContentTypeContent = 1,
eContentTypeContentFrame = 2
};
enum nsTopLevelWidgetZPlacement { // for PlaceBehind()
eZPlacementBottom = 0, // bottom of the window stack
eZPlacementBelow, // just below another widget
eZPlacementTop // top of the window stack
};
/**
* Basic struct for widget initialization data.
* @see Create member function of nsIWidget
*/
struct nsWidgetInitData {
nsWidgetInitData()
: clipChildren(PR_FALSE),
clipSiblings(PR_FALSE),
mDropShadow(PR_FALSE),
mListenForResizes(PR_FALSE),
mWindowType(eWindowType_child),
mBorderStyle(eBorderStyle_default),
mContentType(eContentTypeInherit),
mUnicode(PR_TRUE),
mPopupHint(ePopupTypePanel)
{
}
// when painting exclude area occupied by child windows and sibling windows
PRPackedBool clipChildren, clipSiblings, mDropShadow;
PRPackedBool mListenForResizes;
nsWindowType mWindowType;
nsBorderStyle mBorderStyle;
nsContentType mContentType; // Exposed so screen readers know what's UI
PRPackedBool mUnicode;
nsPopupType mPopupHint;
};
/**
* The base class for all the widgets. It provides the interface for

Просмотреть файл

@ -0,0 +1,46 @@
/* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsNativeWidget_h__
#define nsNativeWidget_h__
// Hide the native window systems real window type so as to avoid
// including native window system types and APIs. This is necessary
// to ensure cross-platform code.
typedef void* nsNativeWidget;
#endif // nsNativeWidget_h__

Просмотреть файл

@ -0,0 +1,144 @@
/* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsWidgetInitData_h__
#define nsWidgetInitData_h__
#include "prtypes.h"
/**
* Window types
*
* Don't alter previously encoded enum values - 3rd party apps may look at
* these.
*/
enum nsWindowType {
eWindowType_toplevel, // default top level window
eWindowType_dialog, // top level window but usually handled differently
// by the OS
eWindowType_popup, // used for combo boxes, etc
eWindowType_child, // child windows (contained inside a window on the
// desktop (has no border))
eWindowType_invisible, // windows that are invisible or offscreen
eWindowType_plugin, // plugin window
eWindowType_java, // java plugin window
eWindowType_sheet // MacOSX sheet (special dialog class)
};
/**
* Popup types
*
* For eWindowType_popup
*/
enum nsPopupType {
ePopupTypePanel,
ePopupTypeMenu,
ePopupTypeTooltip,
ePopupTypeAny = 0xF000 // used only to pass to
// nsXULPopupManager::GetTopPopup
};
/**
* Border styles
*/
enum nsBorderStyle {
eBorderStyle_none = 0, // no border, titlebar, etc.. opposite of
// all
eBorderStyle_all = 1 << 0, // all window decorations
eBorderStyle_border = 1 << 1, // enables the border on the window. these
// are only for decoration and are not
// resize handles
eBorderStyle_resizeh = 1 << 2, // enables the resize handles for the
// window. if this is set, border is
// implied to also be set
eBorderStyle_title = 1 << 3, // enables the titlebar for the window
eBorderStyle_menu = 1 << 4, // enables the window menu button on the
// title bar. this being on should force
// the title bar to display
eBorderStyle_minimize = 1 << 5, // enables the minimize button so the user
// can minimize the window. turned off for
// tranient windows since they can not be
// minimized separate from their parent
eBorderStyle_maximize = 1 << 6, // enables the maxmize button so the user
// can maximize the window
eBorderStyle_close = 1 << 7, // show the close button
eBorderStyle_default = -1 // whatever the OS wants... i.e. don't do
// anything
};
/**
* Content types
*
* Exposed so screen readers know what's UI
*/
enum nsContentType {
eContentTypeInherit = -1,
eContentTypeUI = 0,
eContentTypeContent = 1,
eContentTypeContentFrame = 2
};
/**
* Basic struct for widget initialization data.
* @see Create member function of nsIWidget
*/
struct nsWidgetInitData {
nsWidgetInitData() :
mWindowType(eWindowType_child),
mBorderStyle(eBorderStyle_default),
mContentType(eContentTypeInherit),
mPopupHint(ePopupTypePanel),
clipChildren(PR_FALSE),
clipSiblings(PR_FALSE),
mDropShadow(PR_FALSE),
mListenForResizes(PR_FALSE),
mUnicode(PR_TRUE)
{
}
nsWindowType mWindowType;
nsBorderStyle mBorderStyle;
nsContentType mContentType; // Exposed so screen readers know what's UI
nsPopupType mPopupHint;
// when painting exclude area occupied by child windows and sibling windows
PRPackedBool clipChildren, clipSiblings, mDropShadow;
PRPackedBool mListenForResizes;
PRPackedBool mUnicode;
};
#endif // nsWidgetInitData_h__

Просмотреть файл

@ -54,7 +54,6 @@
#include "nsIScrollableView.h"
#include "nsWeakPtr.h"
#include "nsIWidget.h"
#include "nsIAppShell.h"
#include "nsIEventListener.h"

Просмотреть файл

@ -44,9 +44,10 @@
#import <Cocoa/Cocoa.h>
#include "nsRect.h"
#include "nsIWidget.h"
#include "nsObjCExceptions.h"
class nsIWidget;
// "Borrowed" in part from the QTKit framework's QTKitDefines.h. This is
// needed when building on OS X Tiger (10.4.X) or with a 10.4 SDK. It won't
// be used when building on Leopard (10.5.X) or higher (or with a 10.5 or

Просмотреть файл

@ -50,7 +50,6 @@
#include "nsIDOMNode.h"
#include "nsRect.h"
#include "nsPoint.h"
#include "nsIWidget.h"
#include "nsIImage.h"
#include "nsICharsetConverterManager.h"
#include "nsIIOService.h"

Просмотреть файл

@ -40,7 +40,7 @@
#define nsMenuUtilsX_h_
#include "nscore.h"
#include "nsGUIEvent.h"
#include "nsEvent.h"
#include "nsMenuBaseX.h"
#import <Cocoa/Cocoa.h>

Просмотреть файл

@ -46,6 +46,7 @@
#include "nsEnumeratorUtils.h"
#include "nsNetUtil.h"
#include "nsReadableUtils.h"
#include "nsIWidget.h"
#include <qfile.h>
#include <qstringlist.h>

Просмотреть файл

@ -42,10 +42,11 @@
#include "nsIDeviceContextSpec.h"
#include "nsIPrintOptions.h" // For nsIPrinterEnumerator
#include "nsIPrintSettings.h"
#include "nsIWidget.h"
#include "nsISupportsPrimitives.h"
#include <windows.h>
class nsIWidget;
class nsDeviceContextSpecWin : public nsIDeviceContextSpec
{
public:

Просмотреть файл

@ -37,7 +37,6 @@
#ifndef _nsNativeDragTarget_h_
#define _nsNativeDragTarget_h_
#include "nsGUIEvent.h"
#include "nsCOMPtr.h"
#include "nsIDragSession.h"
#include <ole2.h>

Просмотреть файл

@ -49,8 +49,6 @@
#include "nsSwitchToUIThread.h"
#include "nsToolkit.h"
#include "nsIWidget.h"
#include "nsIEventListener.h"
#include "nsString.h"

Просмотреть файл

@ -41,10 +41,13 @@
#ifndef nsBaseFilePicker_h__
#define nsBaseFilePicker_h__
#include "nsISupports.h"
#include "nsIFilePicker.h"
#include "nsIWidget.h"
#include "nsISimpleEnumerator.h"
#include "nsArrayEnumerator.h"
#include "nsCOMPtr.h"
class nsIWidget;
#define BASEFILEPICKER_HAS_DISPLAYDIRECTORY 1

Просмотреть файл

@ -37,6 +37,7 @@
* ***** END LICENSE BLOCK ***** */
#include "nsNativeTheme.h"
#include "nsIWidget.h"
#include "nsIDocument.h"
#include "nsIContent.h"
#include "nsIFrame.h"

Просмотреть файл

@ -51,7 +51,6 @@
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
#include "nsIWidget.h"
#include "nsIWindowMediator.h"
#include "nsIWindowWatcher.h"
#include "nsPIWindowWatcher.h"

Просмотреть файл

@ -38,7 +38,7 @@
#ifndef nsWebShellWindow_h__
#define nsWebShellWindow_h__
#include "nsGUIEvent.h"
#include "nsEvent.h"
#include "nsIWebProgressListener.h"
#include "nsITimer.h"

Просмотреть файл

@ -58,7 +58,6 @@
#include "nsIDOMWindowInternal.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIWidget.h"
#include "nsIXULWindow.h"
#include "nsIPrompt.h"
#include "nsIAuthPrompt.h"