Changeset 73884 in webkit
- Timestamp:
- Dec 12, 2010 8:41:20 PM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r73882 r73884 1 2010-12-12 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Tim Hatcher. 4 5 WebKit2: Implement WebInspector::localizedStringsURL on Windows 6 https://bugs.webkit.org/show_bug.cgi?id=50896 7 8 Find the localized strings file using CFBundleCopyResourceURL. 9 10 * WebProcess/WebPage/win/WebInspectorWin.cpp: 11 (WebKit::WebInspector::localizedStringsURL): 12 1 13 2010-12-12 Sam Weinig <sam@webkit.org> 2 14 -
trunk/WebKit2/WebProcess/WebPage/win/WebInspectorWin.cpp
r72666 r73884 28 28 #if ENABLE(INSPECTOR) 29 29 30 #include <wtf/RetainPtr.h> 30 31 #include <wtf/text/WTFString.h> 31 32 #define DISABLE_NOT_IMPLEMENTED_WARNINGS 133 #include "NotImplemented.h"34 32 35 33 namespace WebKit { … … 37 35 String WebInspector::localizedStringsURL() const 38 36 { 39 notImplemented(); 40 return String(); 37 RetainPtr<CFURLRef> localizedStringsURLRef(AdoptCF, CFBundleCopyResourceURL(CFBundleGetBundleWithIdentifier(CFSTR("com.apple.WebKit")), CFSTR("localizedStrings"), CFSTR("js"), 0)); 38 if (!localizedStringsURLRef) 39 return String(); 40 41 return String(CFURLGetString(localizedStringsURLRef.get())); 41 42 } 42 43
Note: See TracChangeset
for help on using the changeset viewer.