Remove Windows Metro/WinRT code.

This commit is contained in:
Pale Moon
2017-01-02 17:15:45 +01:00
committed by roytam1
parent c589dca94b
commit 08e58e7fbb
118 changed files with 138 additions and 11281 deletions
+1 -5
View File
@@ -142,6 +142,7 @@ static_assert(sizeof(kVirtualKeyName) / sizeof(const char*) == 0x100,
// Unique id counter associated with a keydown / keypress events. Used in
// identifing keypress events for removal from async event dispatch queue
// in metrofx after preventDefault is called on keydown events.
// XXX: Do we still need this?
static uint32_t sUniqueKeyEventId = 0;
struct DeadKeyEntry
@@ -296,11 +297,6 @@ ModifierKeyState::InitMouseEvent(WidgetInputEvent& aMouseEvent) const
aMouseEvent.mClass == eSimpleGestureEventClass,
"called with non-mouse event");
if (XRE_GetWindowsEnvironment() == WindowsEnvironmentType_Metro) {
// Buttons for immersive mode are handled in MetroInput.
return;
}
WidgetMouseEventBase& mouseEvent = *aMouseEvent.AsMouseEventBase();
mouseEvent.buttons = 0;
if (::GetKeyState(VK_LBUTTON) < 0) {