diff --git a/dom/wifi/WifiProxyService.cpp b/dom/wifi/WifiProxyService.cpp index 5770c96811da..878ac5b6956c 100644 --- a/dom/wifi/WifiProxyService.cpp +++ b/dom/wifi/WifiProxyService.cpp @@ -71,7 +71,7 @@ public: #ifdef MOZ_TASK_TRACER // Make wifi initialization events to be the source events of TaskTracer, // and originate the rest correlation tasks from here. - AutoSourceEvent taskTracerEvent(SourceEventType::WIFI); + AutoSourceEvent taskTracerEvent(SourceEventType::Wifi); AddLabel("%s %s", mInterface.get(), NS_ConvertUTF16toUTF8(event).get()); #endif nsCOMPtr runnable = new WifiEventDispatcher(event, mInterface); diff --git a/ipc/unixsocket/SocketBase.h b/ipc/unixsocket/SocketBase.h index 988f0bec0ce5..3cfa2a57592e 100644 --- a/ipc/unixsocket/SocketBase.h +++ b/ipc/unixsocket/SocketBase.h @@ -503,7 +503,7 @@ public: #ifdef MOZ_TASK_TRACER // Make unix socket creation events to be the source events of TaskTracer, // and originate the rest correlation tasks from here. - AutoSourceEvent taskTracerEvent(SourceEventType::UNIXSOCKET); + AutoSourceEvent taskTracerEvent(SourceEventType::Unixsocket); #endif nsRefPtr r = diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index e7f88d47433d..0aa7ea22dfae 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -7236,13 +7236,13 @@ PresShell::HandleEvent(nsIFrame* aFrame, #ifdef MOZ_TASK_TRACER // Make touch events, mouse events and hardware key events to be the source // events of TaskTracer, and originate the rest correlation tasks from here. - SourceEventType type = SourceEventType::UNKNOWN; + SourceEventType type = SourceEventType::Unknown; if (WidgetTouchEvent* inputEvent = aEvent->AsTouchEvent()) { - type = SourceEventType::TOUCH; + type = SourceEventType::Touch; } else if (WidgetMouseEvent* inputEvent = aEvent->AsMouseEvent()) { - type = SourceEventType::MOUSE; + type = SourceEventType::Mouse; } else if (WidgetKeyboardEvent* inputEvent = aEvent->AsKeyboardEvent()) { - type = SourceEventType::KEY; + type = SourceEventType::Key; } AutoSourceEvent taskTracerEvent(type); #endif diff --git a/tools/profiler/GeckoTaskTracer.h b/tools/profiler/GeckoTaskTracer.h index d1fa0b3a04f2..f34f99cd49d3 100644 --- a/tools/profiler/GeckoTaskTracer.h +++ b/tools/profiler/GeckoTaskTracer.h @@ -44,13 +44,13 @@ void ShutdownTaskTracer(); class FakeTracedTask; enum SourceEventType { - UNKNOWN = 0, - TOUCH, - MOUSE, - KEY, - BLUETOOTH, - UNIXSOCKET, - WIFI + Unknown = 0, + Touch, + Mouse, + Key, + Bluetooth, + Unixsocket, + Wifi }; class AutoSourceEvent diff --git a/tools/profiler/GeckoTaskTracerImpl.h b/tools/profiler/GeckoTaskTracerImpl.h index fc81d17ef956..c00305cb1290 100644 --- a/tools/profiler/GeckoTaskTracerImpl.h +++ b/tools/profiler/GeckoTaskTracerImpl.h @@ -23,8 +23,8 @@ struct TraceInfo , mCurTaskId(0) , mSavedCurTraceSourceId(0) , mSavedCurTaskId(0) - , mCurTraceSourceType(UNKNOWN) - , mSavedCurTraceSourceType(UNKNOWN) + , mCurTraceSourceType(Unknown) + , mSavedCurTraceSourceType(Unknown) , mThreadId(aThreadId) , mLastUniqueTaskId(0) , mStartLogging(aStartLogging) diff --git a/tools/profiler/TracedTaskCommon.cpp b/tools/profiler/TracedTaskCommon.cpp index 051049285009..990c931104c3 100644 --- a/tools/profiler/TracedTaskCommon.cpp +++ b/tools/profiler/TracedTaskCommon.cpp @@ -12,7 +12,7 @@ namespace tasktracer { TracedTaskCommon::TracedTaskCommon() : mSourceEventId(0) - , mSourceEventType(SourceEventType::UNKNOWN) + , mSourceEventType(SourceEventType::Unknown) { Init(); } @@ -52,7 +52,7 @@ TracedTaskCommon::ClearTraceInfo() } info->mCurTraceSourceId = 0; - info->mCurTraceSourceType = SourceEventType::UNKNOWN; + info->mCurTraceSourceType = SourceEventType::Unknown; info->mCurTaskId = 0; }