Bug 895274 part.206 Rename NS_MOZ_TIME_CHANGE_EVENT to eTimeChange r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Sat, 12 Sep 2015 01:19:25 +0900
changeset 262048 4ac1ba0956eb6b5713557cb7ae66b04bca874768
parent 262047 c6ed7442143b3c00d139d817f2e768a7cd8fe42c
child 262049 8d9975a1d6f6950667ba340729af6e9f6daf0b60
push id29359
push userphilringnalda@gmail.com
push dateSat, 12 Sep 2015 15:57:02 +0000
treeherdermozilla-central@cffdd225055e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs895274
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 895274 part.206 Rename NS_MOZ_TIME_CHANGE_EVENT to eTimeChange r=smaug
dom/events/EventListenerManager.cpp
dom/events/EventNameList.h
widget/EventMessageList.h
--- a/dom/events/EventListenerManager.cpp
+++ b/dom/events/EventListenerManager.cpp
@@ -505,17 +505,17 @@ EventListenerManager::RemoveEventListene
   }
 
   Listener* listener;
 
   uint32_t count = mListeners.Length();
   uint32_t typeCount = 0;
   bool deviceType = IsDeviceType(aEventMessage);
 #ifdef MOZ_B2G
-  bool timeChangeEvent = (aEventMessage == NS_MOZ_TIME_CHANGE_EVENT);
+  bool timeChangeEvent = (aEventMessage == eTimeChange);
   bool networkEvent = (aEventMessage == NS_NETWORK_UPLOAD_EVENT ||
                        aEventMessage == NS_NETWORK_DOWNLOAD_EVENT);
 #endif // MOZ_B2G
 
   for (uint32_t i = 0; i < count; ++i) {
     listener = &mListeners.ElementAt(i);
     if (EVENT_TYPE_EQUALS(listener, aEventMessage, aUserType, aTypeString,
                           aAllEvents)) {
--- a/dom/events/EventNameList.h
+++ b/dom/events/EventNameList.h
@@ -545,17 +545,17 @@ WINDOW_ONLY_EVENT(userproximity,
                   eBasicEventClass)
 WINDOW_ONLY_EVENT(devicelight,
                   NS_DEVICE_LIGHT,
                   EventNameType_None,
                   eBasicEventClass)
 
 #ifdef MOZ_B2G
 WINDOW_ONLY_EVENT(moztimechange,
-                  NS_MOZ_TIME_CHANGE_EVENT,
+                  eTimeChange,
                   EventNameType_None,
                   eBasicEventClass)
 WINDOW_ONLY_EVENT(moznetworkupload,
                   NS_NETWORK_UPLOAD_EVENT,
                   EventNameType_None,
                   eBasicEventClass)
 WINDOW_ONLY_EVENT(moznetworkdownload,
                   NS_NETWORK_DOWNLOAD_EVENT,
--- a/widget/EventMessageList.h
+++ b/widget/EventMessageList.h
@@ -390,17 +390,17 @@ NS_EVENT_MESSAGE(eWheel,                
 // native event.
 NS_EVENT_MESSAGE(eWheelOperationStart,   eWheelEventFirst + 1)
 // eWheelOperationEnd may be dispatched when user ends or cancels operating
 // mouse wheel.  This won't be fired on some platforms which don't have
 // corresponding native event.
 NS_EVENT_MESSAGE(eWheelOperationEnd,     eWheelEventFirst + 2)
 
 //System time is changed
-NS_EVENT_MESSAGE(NS_MOZ_TIME_CHANGE_EVENT, 5500)
+NS_EVENT_MESSAGE(eTimeChange,            5500)
 
 // Network packet events.
 NS_EVENT_MESSAGE(NS_NETWORK_EVENT_START,    5600)
 NS_EVENT_MESSAGE(NS_NETWORK_UPLOAD_EVENT,   NS_NETWORK_EVENT_START + 1)
 NS_EVENT_MESSAGE(NS_NETWORK_DOWNLOAD_EVENT, NS_NETWORK_EVENT_START + 2)
 
 // MediaRecorder events.
 NS_EVENT_MESSAGE(NS_MEDIARECORDER_EVENT_START, 5700)