Bug 895274 part.245 Rename NS_SHOW_EVENT to eShow r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Tue, 15 Sep 2015 00:14:35 +0900
changeset 283022 2bbed060054e5118b27dfc6a3faf7b4c94dc101e
parent 283021 641727472a5c88c547a87e64ea6a9bd1124a2af1
child 283023 e7592497917894a6597b8c003388f3944a4d4648
push id8456
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:31:52 +0000
treeherdermozilla-aurora@7f2f0fb041b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs895274
milestone43.0a1
Bug 895274 part.245 Rename NS_SHOW_EVENT to eShow r=smaug
dom/events/EventNameList.h
dom/html/HTMLMenuElement.cpp
widget/EventMessageList.h
--- a/dom/events/EventNameList.h
+++ b/dom/events/EventNameList.h
@@ -389,17 +389,17 @@ EVENT(seeking,
       eSeeking,
       EventNameType_HTML,
       eBasicEventClass)
 EVENT(select,
       eFormSelect,
       EventNameType_HTMLXUL,
       eBasicEventClass)
 EVENT(show,
-      NS_SHOW_EVENT,
+      eShow,
       EventNameType_HTML,
       eBasicEventClass)
 EVENT(stalled,
       eStalled,
       EventNameType_HTML,
       eBasicEventClass)
 EVENT(submit,
       eFormSubmit,
--- a/dom/html/HTMLMenuElement.cpp
+++ b/dom/html/HTMLMenuElement.cpp
@@ -73,17 +73,17 @@ HTMLMenuElement::SendShowEvent()
 {
   NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_DOM_SECURITY_ERR);
 
   nsCOMPtr<nsIDocument> document = GetComposedDoc();
   if (!document) {
     return NS_ERROR_FAILURE;
   }
 
-  WidgetEvent event(true, NS_SHOW_EVENT);
+  WidgetEvent event(true, eShow);
   event.mFlags.mBubbles = false;
   event.mFlags.mCancelable = false;
 
   nsCOMPtr<nsIPresShell> shell = document->GetShell();
   if (!shell) {
     return NS_ERROR_FAILURE;
   }
  
--- a/widget/EventMessageList.h
+++ b/widget/EventMessageList.h
@@ -357,17 +357,17 @@ NS_EVENT_MESSAGE(eOpen,                 
 // Device motion and orientation
 NS_EVENT_MESSAGE(eDeviceEventFirst,      4900)
 NS_EVENT_MESSAGE(eDeviceOrientation,     eDeviceEventFirst)
 NS_EVENT_MESSAGE(eDeviceMotion,          eDeviceEventFirst + 1)
 NS_EVENT_MESSAGE(eDeviceProximity,       eDeviceEventFirst + 2)
 NS_EVENT_MESSAGE(eUserProximity,         eDeviceEventFirst + 3)
 NS_EVENT_MESSAGE(eDeviceLight,           eDeviceEventFirst + 4)
 
-NS_EVENT_MESSAGE(NS_SHOW_EVENT,          5000)
+NS_EVENT_MESSAGE(eShow,                  5000)
 
 // Fullscreen DOM API
 NS_EVENT_MESSAGE(eFullscreenEventFirst,  5100)
 NS_EVENT_MESSAGE(eFullscreenChange,      eFullscreenEventFirst)
 NS_EVENT_MESSAGE(eFullscreenError,       eFullscreenEventFirst + 1)
 
 NS_EVENT_MESSAGE(eTouchEventFirst,       5200)
 NS_EVENT_MESSAGE(eTouchStart,            eTouchEventFirst)