Bug 77992 part 1.0 - Add timeStamp to WidgetEvent; r=smaug
This patch adds a timeStamp member to WidgetEvent alongside the existing 'time' member. In the future we would like to remove 'time' and just keep timeStamp but that depends on it being web-compatible. For now we introduce both members side-by-side. Later we will add a pref to determine which one to return. If no compatibility issues arise we will remove 'time' altogether.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "nsIDOMKeyEvent.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "mozilla/BasicEvents.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/TouchEvents.h"
|
||||
|
||||
using namespace mozilla;
|
||||
@@ -754,7 +755,7 @@ AndroidGeckoEvent::MakeMultiTouchInput(nsIWidget* widget)
|
||||
}
|
||||
}
|
||||
|
||||
MultiTouchInput event(type, Time(), 0);
|
||||
MultiTouchInput event(type, Time(), TimeStamp(), 0);
|
||||
event.modifiers = DOMModifiers();
|
||||
|
||||
if (type < 0) {
|
||||
|
||||
Reference in New Issue
Block a user