Bug 950508 - Build widget/windows in unified mode; r=roc

This commit is contained in:
Ehsan Akhgari 2013-12-15 19:00:54 -05:00
parent 60effb6c7e
commit 03818d55db
13 changed files with 43 additions and 14 deletions

View File

@ -12,6 +12,7 @@
#define NTDDI_VERSION NTDDI_WIN7
// Needed for various com interfaces
#include <shobjidl.h>
#undef LogSeverity // SetupAPI.h #defines this as DWORD
#include "nsString.h"
#include "nsIMutableArray.h"

View File

@ -8,6 +8,7 @@
#include <windows.h>
#include <shobjidl.h>
#undef LogSeverity // SetupAPI.h #defines this as DWORD
#include "nsIJumpListItem.h" // defines nsIJumpListItem
#include "nsIMIMEInfo.h" // defines nsILocalHandlerApp

View File

@ -10,6 +10,7 @@
#include <windows.h>
#include <shobjidl.h>
#undef LogSeverity // SetupAPI.h #defines this as DWORD
#include <nsITaskbarPreview.h>
#include <nsAutoPtr.h>

View File

@ -10,6 +10,7 @@
#include <windows.h>
#include <shobjidl.h>
#undef LogSeverity // SetupAPI.h #defines this as DWORD
#include <nsITaskbarPreviewButton.h>
#include <nsAutoPtr.h>

View File

@ -10,6 +10,7 @@
#include <windows.h>
#include <shobjidl.h>
#undef LogSeverity // SetupAPI.h #defines this as DWORD
#include "nsIWinTaskbar.h"
#include "mozilla/Attributes.h"

View File

@ -19,24 +19,20 @@ EXPORTS.mozilla.widget += [
'AudioSession.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'AudioSession.cpp',
'GfxInfo.cpp',
'IEnumFE.cpp',
'JumpListBuilder.cpp',
'JumpListItem.cpp',
'KeyboardLayout.cpp',
'nsAppShell.cpp',
'nsBidiKeyboard.cpp',
'nsClipboard.cpp',
'nsColorPicker.cpp',
'nsDataObj.cpp',
'nsDataObjCollection.cpp',
'nsDragService.cpp',
'nsFilePicker.cpp',
'nsIdleServiceWin.cpp',
'nsImageClipboard.cpp',
'nsIMM32Handler.cpp',
'nsLookAndFeel.cpp',
'nsNativeDragSource.cpp',
'nsNativeDragTarget.cpp',
@ -46,7 +42,6 @@ SOURCES += [
'nsSound.cpp',
'nsToolkit.cpp',
'nsUXThemeData.cpp',
'nsWidgetFactory.cpp',
'nsWindow.cpp',
'nsWindowBase.cpp',
'nsWindowDbg.cpp',
@ -59,18 +54,31 @@ SOURCES += [
'WidgetTraceEvent.cpp',
'WindowHook.cpp',
'WinIMEHandler.cpp',
'WinMouseScrollHandler.cpp',
'WinTaskbar.cpp',
]
# The following files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
'nsIMM32Handler.cpp',
'WinMouseScrollHandler.cpp',
'WinUtils.cpp',
]
# The following files cannot be built in unified mode because of name clashes.
SOURCES += [
'JumpListBuilder.cpp',
'nsBidiKeyboard.cpp',
'nsFilePicker.cpp',
'nsWidgetFactory.cpp',
]
if CONFIG['MOZ_CRASHREPORTER']:
SOURCES += [
UNIFIED_SOURCES += [
'LSPAnnotator.cpp',
]
if CONFIG['NS_PRINTING']:
SOURCES += [
UNIFIED_SOURCES += [
'nsDeviceContextSpecWin.cpp',
'nsPrintOptionsWin.cpp',
'nsPrintSettingsWin.cpp',

View File

@ -30,6 +30,7 @@
#include "nsdefs.h"
#include <commdlg.h>
#include <shobjidl.h>
#undef LogSeverity // SetupAPI.h #defines this as DWORD
class nsILoadContext;

View File

@ -3,6 +3,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsImageClipboard_h
#define nsImageClipboard_h
/* Things To Do 11/8/00
Check image metrics, can we support them? Do we need to?
@ -86,3 +89,5 @@ private:
void CalcBitShift(bitFields * aColorMask);
}; // nsImageFromClipboard
#endif

View File

@ -12,8 +12,6 @@
#include "nsWidgetsCID.h"
#include "nsIDragService.h"
static NS_DEFINE_IID(kCDragServiceCID, NS_DRAGSERVICE_CID);
/*
* class nsNativeDragSource
*/
@ -68,6 +66,8 @@ nsNativeDragSource::Release(void)
STDMETHODIMP
nsNativeDragSource::QueryContinueDrag(BOOL fEsc, DWORD grfKeyState)
{
static NS_DEFINE_IID(kCDragServiceCID, NS_DRAGSERVICE_CID);
nsCOMPtr<nsIDragService> dragService = do_GetService(kCDragServiceCID);
if (dragService) {
DWORD pos = ::GetMessagePos();

View File

@ -22,9 +22,6 @@
using namespace mozilla;
using namespace mozilla::widget;
/* Define Class IDs */
static NS_DEFINE_IID(kCDragServiceCID, NS_DRAGSERVICE_CID);
/* Define Interface IDs */
static NS_DEFINE_IID(kIDragServiceIID, NS_IDRAGSERVICE_IID);
@ -40,6 +37,8 @@ nsNativeDragTarget::nsNativeDragTarget(nsIWidget * aWidget)
mEffectsPreferred(DROPEFFECT_NONE),
mTookOwnRef(false), mWidget(aWidget), mDropTargetHelper(nullptr)
{
static NS_DEFINE_IID(kCDragServiceCID, NS_DRAGSERVICE_CID);
mHWnd = (HWND)mWidget->GetNativeData(NS_NATIVE_WINDOW);
/*

View File

@ -12,6 +12,7 @@
#ifndef IDropTargetHelper
#include <shobjidl.h> // Vista drag image interfaces
#undef LogSeverity // SetupAPI.h #defines this as DWORD
#endif
#include "mozilla/Attributes.h"

View File

@ -4,6 +4,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsNativeThemeWin_h
#define nsNativeThemeWin_h
#include "nsITheme.h"
#include "nsCOMPtr.h"
#include "nsIAtom.h"
@ -118,3 +121,5 @@ private:
TimeStamp mProgressDeterminateTimeStamp;
TimeStamp mProgressIndeterminateTimeStamp;
};
#endif

View File

@ -5,6 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsUXThemeConstants_h
#define nsUXThemeConstants_h
/*
* The following constants are used to determine how a widget is drawn using
* Windows' Theme API. For more information on theme parts and states see
@ -244,3 +247,5 @@ enum {
};
}}} // mozilla::widget::themeconst
#endif