Changeset 121895 in webkit
- Timestamp:
- Jul 5, 2012 2:34:46 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r121891 r121895 1 2012-07-05 Zan Dobersek <zandobersek@gmail.com> 2 3 Add Gamepad logging channel 4 https://bugs.webkit.org/show_bug.cgi?id=90570 5 6 Reviewed by Carlos Garcia Campos. 7 8 Add a new logging channel for logging significant 9 events that are related to Gamepad API implementation. 10 11 No new tests - no new testable functionality. 12 13 * platform/Logging.cpp: 14 (WebCore): 15 (WebCore::getChannelFromName): 16 * platform/Logging.h: 17 (WebCore): 18 * platform/gtk/GamepadsGtk.cpp: Log when a device is 19 registered or unregistered. 20 (WebCore::GamepadsGtk::registerDevice): 21 (WebCore::GamepadsGtk::unregisterDevice): 22 1 23 2012-07-05 Peter Wang <peter.wang@torchmobile.com.cn> 2 24 -
trunk/Source/WebCore/platform/Logging.cpp
r121707 r121895 66 66 WTFLogChannel LogWebAudio = { 0x20000000, "WebCoreLogLevel", WTFLogChannelOff }; 67 67 WTFLogChannel LogCompositing = { 0x40000000, "WebCoreLogLevel", WTFLogChannelOff }; 68 WTFLogChannel LogGamepad = { 0x80000000, "WebCoreLogLevel", WTFLogChannelOff }; 68 69 69 70 … … 148 149 return &LogCompositing; 149 150 151 if (equalIgnoringCase(channelName, String("Gamepad"))) 152 return &LogGamepad; 153 150 154 return 0; 151 155 } -
trunk/Source/WebCore/platform/Logging.h
r121707 r121895 64 64 extern WTFLogChannel LogWebAudio; 65 65 extern WTFLogChannel LogCompositing; 66 extern WTFLogChannel LogGamepad; 66 67 67 68 void initializeLoggingChannelsIfNecessary(); -
trunk/Source/WebCore/platform/gtk/GamepadsGtk.cpp
r121797 r121895 31 31 #include "GamepadDeviceLinux.h" 32 32 #include "GamepadList.h" 33 #include "Logging.h" 33 34 #include <gio/gunixinputstream.h> 34 35 #include <gudev/gudev.h> … … 37 38 #include <wtf/gobject/GOwnPtr.h> 38 39 #include <wtf/gobject/GRefPtr.h> 40 #include <wtf/text/CString.h> 39 41 #include <wtf/text/StringHash.h> 40 42 … … 139 141 void GamepadsGtk::registerDevice(String deviceFile) 140 142 { 143 LOG(Gamepad, "GamepadsGtk::registerDevice %s", deviceFile.ascii().data()); 141 144 ASSERT(!m_deviceMap.contains(deviceFile)); 142 145 … … 152 155 void GamepadsGtk::unregisterDevice(String deviceFile) 153 156 { 157 LOG(Gamepad, "GamepadsGtk::unregisterDevice %s", deviceFile.ascii().data()); 154 158 ASSERT(m_deviceMap.contains(deviceFile)); 155 159
Note: See TracChangeset
for help on using the changeset viewer.