Changeset 61587 in webkit
- Timestamp:
- Jun 21, 2010 4:00:13 PM (14 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r61583 r61587 1 2010-06-21 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Add PluginInfoStore class 6 https://bugs.webkit.org/show_bug.cgi?id=40949 7 8 * Shared/WebPreferencesStore.cpp: 9 (WebKit::WebPreferencesStore::WebPreferencesStore): 10 * Shared/WebPreferencesStore.h: 11 (WebKit::WebPreferencesStore::encode): 12 (WebKit::WebPreferencesStore::decode): 13 Add plugInsEnabled to the preferences store. 14 15 * UIProcess/Plugins: Added. 16 * UIProcess/Plugins/PluginInfoStore.cpp: Added. 17 (WebKit::PluginInfoStore::shared): 18 (WebKit::PluginInfoStore::PluginInfoStore): 19 (WebKit::PluginInfoStore::refresh): 20 (WebKit::PluginInfoStore::getPlugins): 21 * UIProcess/Plugins/PluginInfoStore.h: Added. 22 * UIProcess/Plugins/mac: Added. 23 * WebKit2.xcodeproj/project.pbxproj: 24 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: 25 (WebKit::WebPlatformStrategies::refreshPlugins): 26 (WebKit::WebPlatformStrategies::getPluginInfo): 27 * WebProcess/WebPage/WebPage.cpp: 28 (WebKit::WebPage::WebPage): 29 1 30 2010-06-21 Simon Fraser <simon.fraser@apple.com> 2 31 -
trunk/WebKit2/Shared/WebPreferencesStore.cpp
r57308 r61587 31 31 : javaScriptEnabled(true) 32 32 , loadsImagesAutomatically(true) 33 , pluginsEnabled(true) 33 34 , minimumFontSize(9) 34 35 , minimumLogicalFontSize(9) -
trunk/WebKit2/Shared/WebPreferencesStore.h
r57308 r61587 44 44 encoder.encode(javaScriptEnabled); 45 45 encoder.encode(loadsImagesAutomatically); 46 encoder.encode(pluginsEnabled); 46 47 encoder.encode(minimumFontSize); 47 48 encoder.encode(minimumLogicalFontSize); … … 61 62 return false; 62 63 if (!decoder.decode(s.loadsImagesAutomatically)) 64 return false; 65 if (!decoder.decode(s.pluginsEnabled)) 63 66 return false; 64 67 if (!decoder.decode(s.minimumFontSize)) … … 87 90 bool javaScriptEnabled; 88 91 bool loadsImagesAutomatically; 92 bool pluginsEnabled; 93 89 94 uint32_t minimumFontSize; 90 95 uint32_t minimumLogicalFontSize; -
trunk/WebKit2/WebKit2.xcodeproj/project.pbxproj
r61583 r61587 38 38 1AA1CD07100FA1BA0078DEBC /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AA1CD06100FA1BA0078DEBC /* Carbon.framework */; }; 39 39 1AADE6FF10D855FC00D3D63D /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AADE6FE10D855FC00D3D63D /* ApplicationServices.framework */; }; 40 1AEFCC1211D01F96008219D3 /* PluginInfoStore.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AEFCC1011D01F96008219D3 /* PluginInfoStore.h */; }; 41 1AEFCC1311D01F96008219D3 /* PluginInfoStore.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AEFCC1111D01F96008219D3 /* PluginInfoStore.cpp */; }; 40 42 1AF3060A111B599E00F96436 /* WebKit2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* WebKit2.framework */; }; 41 43 5DAD729C116FF86200EE5396 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; … … 254 256 1AA1CD06100FA1BA0078DEBC /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; }; 255 257 1AADE6FE10D855FC00D3D63D /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = System/Library/Frameworks/ApplicationServices.framework; sourceTree = SDKROOT; }; 258 1AEFCC1011D01F96008219D3 /* PluginInfoStore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginInfoStore.h; sourceTree = "<group>"; }; 259 1AEFCC1111D01F96008219D3 /* PluginInfoStore.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PluginInfoStore.cpp; sourceTree = "<group>"; }; 256 260 32DBCF5E0370ADEE00C91783 /* WebKit2Prefix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebKit2Prefix.h; sourceTree = "<group>"; }; 257 261 5DAD7294116FF70B00EE5396 /* WebProcess.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = WebProcess.xcconfig; sourceTree = "<group>"; }; … … 572 576 sourceTree = "<group>"; 573 577 }; 578 1AEFCC0511D01F34008219D3 /* Plugins */ = { 579 isa = PBXGroup; 580 children = ( 581 1AEFCC0D11D01F41008219D3 /* mac */, 582 1AEFCC1011D01F96008219D3 /* PluginInfoStore.h */, 583 1AEFCC1111D01F96008219D3 /* PluginInfoStore.cpp */, 584 ); 585 path = Plugins; 586 sourceTree = "<group>"; 587 }; 588 1AEFCC0D11D01F41008219D3 /* mac */ = { 589 isa = PBXGroup; 590 children = ( 591 ); 592 path = mac; 593 sourceTree = "<group>"; 594 }; 574 595 32C88DFF0371C24200C91783 /* Other Sources */ = { 575 596 isa = PBXGroup; … … 637 658 BC032DC410F4387C0058C15A /* API */, 638 659 BC111B18112F5FB400337BAB /* Launcher */, 660 1AEFCC0511D01F34008219D3 /* Plugins */, 639 661 BCCF085C113F3B7500C650C5 /* mac */, 640 662 BC2652121182608100243E12 /* DrawingAreaProxy.cpp */, … … 1011 1033 BC20528811C943A5008F3375 /* InjectedBundlePageClient.h in Headers */, 1012 1034 1A3E736111CC2659007BD539 /* WebPlatformStrategies.h in Headers */, 1035 1AEFCC1211D01F96008219D3 /* PluginInfoStore.h in Headers */, 1013 1036 BCDE059B11CDA8AE00E41AF1 /* WebContextInjectedBundleClient.h in Headers */, 1014 1037 BCB7346E11CEE3FF00EC5002 /* WebProcessProxyMessageKinds.h in Headers */, … … 1172 1195 BC20528911C943A5008F3375 /* InjectedBundlePageClient.cpp in Sources */, 1173 1196 1A3E736211CC2659007BD539 /* WebPlatformStrategies.cpp in Sources */, 1197 1AEFCC1311D01F96008219D3 /* PluginInfoStore.cpp in Sources */, 1174 1198 BCDE059C11CDA8AE00E41AF1 /* WebContextInjectedBundleClient.cpp in Sources */, 1175 1199 ); -
trunk/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
r61516 r61587 28 28 #if USE(PLATFORM_STRATEGIES) 29 29 30 #include "PluginInfoStore.h" 31 30 32 using namespace WebCore; 31 33 … … 51 53 void WebPlatformStrategies::refreshPlugins() 52 54 { 53 // FIXME: Implement. 55 // FIXME: This should call out to the UI process. 56 PluginInfoStore::shared().refresh(); 54 57 } 55 58 56 59 void WebPlatformStrategies::getPluginInfo(Vector<WebCore::PluginInfo>& plugins) 57 60 { 58 // FIXME: Implement. 61 // FIXME: This should call out to the UI process. 62 PluginInfoStore::shared().getPlugins(plugins); 59 63 } 60 64 -
trunk/WebKit2/WebProcess/WebPage/WebPage.cpp
r61443 r61587 88 88 m_page->settings()->setJavaScriptEnabled(store.javaScriptEnabled); 89 89 m_page->settings()->setLoadsImagesAutomatically(store.loadsImagesAutomatically); 90 m_page->settings()->setPluginsEnabled(store.pluginsEnabled); 90 91 m_page->settings()->setMinimumFontSize(store.minimumFontSize); 91 92 m_page->settings()->setMinimumLogicalFontSize(store.minimumLogicalFontSize);
Note: See TracChangeset
for help on using the changeset viewer.