Changeset 128537 in webkit
- Timestamp:
- Sep 13, 2012 6:15:39 PM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r128527 r128537 1 2012-09-13 KwangYong Choi <ky0.choi@samsung.com> 2 3 [EFL][WK2] Implement missing initializeLogChannel function 4 https://bugs.webkit.org/show_bug.cgi?id=96478 5 6 Reviewed by Gyuyoung Kim. 7 8 Implemented log channel initialization function for EFL platform in WebKit2. 9 10 * Platform/Logging.cpp: 11 (WebKit): 12 * Platform/Logging.h: 13 (WebKit): 14 * Platform/efl/LoggingEfl.cpp: Added. 15 (WebKit): 16 (WebKit::initializeLogChannel): Channel is initialized if its name is found in WEBKIT_DEBUG. 17 * PlatformEfl.cmake: 18 1 19 2012-09-13 Mark Rowe <mrowe@apple.com> 2 20 -
trunk/Source/WebKit2/Platform/Logging.cpp
r121707 r128537 39 39 WTFLogChannel LogKeyHandling = { 0x00000020, "WebKit2LogLevel", WTFLogChannelOff }; 40 40 41 #if !PLATFORM(MAC) && !PLATFORM(GTK) && !PLATFORM(QT) 41 #if !PLATFORM(MAC) && !PLATFORM(GTK) && !PLATFORM(QT) && !PLATFORM(EFL) 42 42 void initializeLogChannel(WTFLogChannel* channel) 43 43 { … … 46 46 #endif 47 47 48 #if PLATFORM(GTK) || PLATFORM(QT) 48 #if PLATFORM(GTK) || PLATFORM(QT) || PLATFORM(EFL) 49 49 WTFLogChannel* getChannelFromName(const String& channelName) 50 50 { -
trunk/Source/WebKit2/Platform/Logging.h
r121707 r128537 47 47 void initializeLogChannel(WTFLogChannel*); 48 48 void initializeLogChannelsIfNecessary(void); 49 #if PLATFORM(GTK) || PLATFORM(QT) 49 #if PLATFORM(GTK) || PLATFORM(QT) || PLATFORM(EFL) 50 50 WTFLogChannel* getChannelFromName(const String& channelName); 51 51 #endif -
trunk/Source/WebKit2/Platform/efl/LoggingEfl.cpp
r128536 r128537 1 1 /* 2 * Copyright (C) 201 0 Apple Inc. All rights reserved.2 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 24 24 */ 25 25 26 #ifndef WebKitLogging_h 27 #define WebKitLogging_h 28 29 #include <wtf/Assertions.h> 30 #include <wtf/text/WTFString.h> 26 #include "config.h" 27 #include "Logging.h" 31 28 32 29 #if !LOG_DISABLED 33 30 34 #ifndef LOG_CHANNEL_PREFIX35 #define LOG_CHANNEL_PREFIX Log36 #endif37 38 31 namespace WebKit { 39 32 40 extern WTFLogChannel LogContextMenu; 41 extern WTFLogChannel LogIconDatabase; 42 extern WTFLogChannel LogKeyHandling; 43 extern WTFLogChannel LogSessionState; 44 extern WTFLogChannel LogTextInput; 45 extern WTFLogChannel LogView; 33 void initializeLogChannel(WTFLogChannel* channel) 34 { 35 DEFINE_STATIC_LOCAL(Vector<WTFLogChannel*>, activatedChannels, ()); 46 36 47 void initializeLogChannel(WTFLogChannel*); 48 void initializeLogChannelsIfNecessary(void); 49 #if PLATFORM(GTK) || PLATFORM(QT) 50 WTFLogChannel* getChannelFromName(const String& channelName); 51 #endif 37 // Fill activatedChannels vector only once based on names set in logValue. 38 if (activatedChannels.isEmpty()) { 39 const String logValue = getenv("WEBKIT_DEBUG"); 40 if (logValue.isEmpty()) 41 return; 42 43 Vector<String> activatedNames; 44 logValue.split(',', activatedNames); 45 for (size_t i = 0; i < activatedNames.size(); i++) { 46 WTFLogChannel* activeChannel = getChannelFromName(activatedNames[i]); 47 if (activeChannel) 48 activatedChannels.append(activeChannel); 49 } 50 } 51 52 if (activatedChannels.contains(channel)) 53 channel->state = WTFLogChannelOn; 54 } 52 55 53 56 } // namespace WebKit 54 57 55 58 #endif // !LOG_DISABLED 56 57 #endif // Logging_h -
trunk/Source/WebKit2/PlatformEfl.cmake
r128436 r128537 1 1 LIST(APPEND WebKit2_SOURCES 2 Platform/efl/LoggingEfl.cpp 2 3 Platform/efl/ModuleEfl.cpp 3 4 Platform/efl/WorkQueueEfl.cpp
Note: See TracChangeset
for help on using the changeset viewer.