Changeset 64812 in webkit
- Timestamp:
- Aug 5, 2010 7:51:19 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r64810 r64812 1 2010-08-05 Patrick Gansterer <paroga@paroga.com> 2 3 Reviewed by Adam Roben. 4 5 Make SearchPopupMenuWin more portable 6 https://bugs.webkit.org/show_bug.cgi?id=43527 7 8 Add #if PLATFORM(CF) around CoreFoundation code. 9 10 * platform/win/SearchPopupMenuWin.cpp: 11 (WebCore::SearchPopupMenuWin::enabled): 12 (WebCore::SearchPopupMenuWin::saveRecentSearches): 13 (WebCore::SearchPopupMenuWin::loadRecentSearches): 14 1 15 2010-08-05 Sheriff Bot <webkit.review.bot@gmail.com> 2 16 -
trunk/WebCore/platform/win/SearchPopupMenuWin.cpp
r64513 r64812 23 23 24 24 #include "AtomicString.h" 25 26 #if PLATFORM(CF) 25 27 #include <wtf/RetainPtr.h> 28 #endif 26 29 27 30 namespace WebCore { … … 39 42 bool SearchPopupMenuWin::enabled() 40 43 { 44 #if PLATFORM(CF) 41 45 return true; 46 #else 47 return false; 48 #endif 42 49 } 43 50 51 #if PLATFORM(CF) 44 52 static RetainPtr<CFStringRef> autosaveKey(const String& name) 45 53 { … … 47 55 return RetainPtr<CFStringRef>(AdoptCF, key.createCFString()); 48 56 } 57 #endif 49 58 50 59 void SearchPopupMenuWin::saveRecentSearches(const AtomicString& name, const Vector<String>& searchItems) … … 53 62 return; 54 63 64 #if PLATFORM(CF) 55 65 RetainPtr<CFMutableArrayRef> items; 56 66 … … 66 76 CFPreferencesSetAppValue(autosaveKey(name).get(), items.get(), kCFPreferencesCurrentApplication); 67 77 CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication); 78 #endif 68 79 } 69 80 … … 73 84 return; 74 85 86 #if PLATFORM(CF) 75 87 searchItems.clear(); 76 88 RetainPtr<CFArrayRef> items(AdoptCF, reinterpret_cast<CFArrayRef>(CFPreferencesCopyAppValue(autosaveKey(name).get(), kCFPreferencesCurrentApplication))); … … 85 97 searchItems.append(item); 86 98 } 99 #endif 87 100 } 88 101
Note: See TracChangeset
for help on using the changeset viewer.