зеркало из https://github.com/mozilla/pjs.git
Bug 737984 - win8 dev kit fixup for win widget gesture input headers, r=bbondy.
This commit is contained in:
Родитель
caef1522da
Коммит
3fe589db66
|
@ -45,10 +45,12 @@
|
|||
|
||||
#include "nsdefs.h"
|
||||
#include <winuser.h>
|
||||
#include <tpcshrd.h>
|
||||
#include "nsPoint.h"
|
||||
#include "nsGUIEvent.h"
|
||||
|
||||
#ifndef HGESTUREINFO // needs WINVER >= 0x0601
|
||||
// Desktop builds target apis for 502. Win8 Metro builds target 602.
|
||||
#if WINVER < 0x0602
|
||||
|
||||
DECLARE_HANDLE(HGESTUREINFO);
|
||||
|
||||
|
@ -156,17 +158,9 @@ typedef struct tagGESTURENOTIFYSTRUCT {
|
|||
#define GCF_INCLUDE_ANCESTORS 0x00000001
|
||||
|
||||
// Window events we need to respond to or receive
|
||||
#define WM_TABLET_QUERYSYSTEMGESTURESTATUS 0x02CC
|
||||
#define WM_GESTURE 0x0119
|
||||
#define WM_GESTURENOTIFY 0x011A
|
||||
|
||||
// WM_TABLET_QUERYSYSTEMGESTURESTATUS return values
|
||||
#define TABLET_ROTATE_GESTURE_ENABLE 0x02000000
|
||||
|
||||
#endif /* #ifndef HGESTUREINFO */
|
||||
|
||||
#ifndef HTOUCHINPUT // needs WINVER >= 0x0601
|
||||
|
||||
typedef struct _TOUCHINPUT {
|
||||
LONG x;
|
||||
LONG y;
|
||||
|
@ -202,7 +196,10 @@ typedef HANDLE HTOUCHINPUT;
|
|||
#define TWF_FINETOUCH 0x0001
|
||||
#define TWF_WANTPALM 0x0002
|
||||
|
||||
#endif /* #ifndef HTOUCHINPUT */
|
||||
#endif // WINVER < 0x0602
|
||||
|
||||
// WM_TABLET_QUERYSYSTEMGESTURESTATUS return values
|
||||
#define TABLET_ROTATE_GESTURE_ENABLE 0x02000000
|
||||
|
||||
class nsPointWin : public nsIntPoint
|
||||
{
|
||||
|
|
|
@ -281,7 +281,7 @@ struct KeyPair {
|
|||
: mGeneral(PRUint8(aGeneral)), mSpecific(PRUint8(aSpecific)) {}
|
||||
};
|
||||
|
||||
#ifndef TITLEBARINFOEX
|
||||
#if (WINVER < 0x0600)
|
||||
struct TITLEBARINFOEX
|
||||
{
|
||||
DWORD cbSize;
|
||||
|
|
Загрузка…
Ссылка в новой задаче