Backing out patch for bug 36637, too much red. Sorry.

This commit is contained in:
gijskruitbosch%gmail.com 2007-01-18 22:23:00 +00:00
Родитель f909cae19e
Коммит fc63d4cca2
3 изменённых файлов: 1 добавлений и 8 удалений

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

@ -50,7 +50,6 @@
#include "nsAppShellSingleton.h"
#include "nsIServiceManager.h"
#include "nsSound.h"
#include "nsIdleServiceWin.h"
#include "nsBidiKeyboard.h"
@ -80,7 +79,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsFilePicker)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSound)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDragService)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBidiKeyboard)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsIdleServiceWin)
#endif
NS_GENERIC_FACTORY_CONSTRUCTOR(nsToolkit)
@ -130,10 +128,6 @@ static const nsModuleComponentInfo components[] =
NS_BIDIKEYBOARD_CID,
"@mozilla.org/widget/bidikeyboard;1",
nsBidiKeyboardConstructor },
{ "User Idle Service",
NS_IDLE_SERVICE_CID,
"@mozilla.org/widget/idleservice;1",
nsIdleServiceWinConstructor },
#endif
{ "Native Theme Renderer",
NS_THEMERENDERER_CID,

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

@ -103,7 +103,6 @@ CPPSRCS += \
nsImageClipboard.cpp \
nsBidiKeyboard.cpp \
nsSound.cpp \
nsIdleServiceWin.cpp \
$(NULL)
endif

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

@ -51,7 +51,7 @@ nsIdleServiceWin::GetIdleTime(PRUint32 *aTimeDiff)
inputInfo.cbSize = sizeof(inputInfo);
if (!::GetLastInputInfo(&inputInfo))
return NS_ERROR_FAILURE;
//XXXgijs: this might break after 49.7 days, see MSDN docs for GetTickCount.
*aTimeDiff = GetTickCount() - inputInfo.dwTime;
return NS_OK;
}