diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 00:15:20 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 00:15:20 +0000 |
commit | c62ce3e9f74a7b55b2d50c227555a3c198fd9cf3 (patch) | |
tree | 53fc0d34109ac909a7ba8f603835da8468abcd10 | |
parent | bb095ea448d990cf3ab9ae3af4c9fc11d6348f90 (diff) | |
download | chromium_src-c62ce3e9f74a7b55b2d50c227555a3c198fd9cf3.zip chromium_src-c62ce3e9f74a7b55b2d50c227555a3c198fd9cf3.tar.gz chromium_src-c62ce3e9f74a7b55b2d50c227555a3c198fd9cf3.tar.bz2 |
Chromium changes to use new WebKit, WebKitClient, and WebClipboard interfaces.
A new WebKitClientImpl class is added to webkit/glue that consumers can use to
help implement WebKitClient. In the future, consumers will likely subclass
WebKitClientImpl. For now, that is not necessary.
Since a WebImage may not hold a SkBitmap, I needed to modify
ScopedClipboardWriterGlue to not deal in SkBitmaps. So, I just added a
WriteBitmapFromPixels method in place of the WriteBitmap method. That method
is actually named the same as the one from the base class, which is perhaps
kind of nice since the purpose of ScopedClipboardWriterGlue is to override the
default way of sending an image to the clipboard!
R=dglazkov
Review URL: http://codereview.chromium.org/28119
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10416 0039d316-1c4b-4281-b951-d872f2087c98
24 files changed, 497 insertions, 160 deletions
diff --git a/chrome/chrome.sln b/chrome/chrome.sln index 760ede8..321b175 100644 --- a/chrome/chrome.sln +++ b/chrome/chrome.sln @@ -240,6 +240,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "perf_tests", "test\perf\per {57823D8C-A317-4713-9125-2C91FDFD12D6} = {57823D8C-A317-4713-9125-2C91FDFD12D6} {5916D37D-8C97-424F-A904-74E52594C2D6} = {5916D37D-8C97-424F-A904-74E52594C2D6} {5BF908A7-68FB-4A4B-99E3-8C749F1FE4EA} = {5BF908A7-68FB-4A4B-99E3-8C749F1FE4EA} + {5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65} = {5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65} {625A8F11-2B4E-45B4-BD99-C6D629C606C0} = {625A8F11-2B4E-45B4-BD99-C6D629C606C0} {6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9} = {6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9} {6F9258E5-294F-47B2-919D-17FFE7A8B751} = {6F9258E5-294F-47B2-919D-17FFE7A8B751} @@ -431,10 +432,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "generate_profile", "tools\p {2A70CBF0-847E-4E3A-B926-542A656DC7FE} = {2A70CBF0-847E-4E3A-B926-542A656DC7FE} {326E9795-E760-410A-B69A-3F79DB3F5243} = {326E9795-E760-410A-B69A-3F79DB3F5243} {49909552-0B0C-4C14-8CF6-DB8A2ADE0934} = {49909552-0B0C-4C14-8CF6-DB8A2ADE0934} - {5597AD47-3494-4750-A235-4F9C2F864700} = {5597AD47-3494-4750-A235-4F9C2F864700} {57823D8C-A317-4713-9125-2C91FDFD12D6} = {57823D8C-A317-4713-9125-2C91FDFD12D6} {5916D37D-8C97-424F-A904-74E52594C2D6} = {5916D37D-8C97-424F-A904-74E52594C2D6} {5BF908A7-68FB-4A4B-99E3-8C749F1FE4EA} = {5BF908A7-68FB-4A4B-99E3-8C749F1FE4EA} + {5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65} = {5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65} {625A8F11-2B4E-45B4-BD99-C6D629C606C0} = {625A8F11-2B4E-45B4-BD99-C6D629C606C0} {6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9} = {6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9} {6F9258E5-294F-47B2-919D-17FFE7A8B751} = {6F9258E5-294F-47B2-919D-17FFE7A8B751} @@ -641,6 +642,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "interactive_ui_tests", "tes {57823D8C-A317-4713-9125-2C91FDFD12D6} = {57823D8C-A317-4713-9125-2C91FDFD12D6} {5916D37D-8C97-424F-A904-74E52594C2D6} = {5916D37D-8C97-424F-A904-74E52594C2D6} {5BF908A7-68FB-4A4B-99E3-8C749F1FE4EA} = {5BF908A7-68FB-4A4B-99E3-8C749F1FE4EA} + {5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65} = {5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65} {625A8F11-2B4E-45B4-BD99-C6D629C606C0} = {625A8F11-2B4E-45B4-BD99-C6D629C606C0} {6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9} = {6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9} {6F9258E5-294F-47B2-919D-17FFE7A8B751} = {6F9258E5-294F-47B2-919D-17FFE7A8B751} diff --git a/chrome/chrome.xcodeproj/project.pbxproj b/chrome/chrome.xcodeproj/project.pbxproj index 47d42a7..0cc3587 100644 --- a/chrome/chrome.xcodeproj/project.pbxproj +++ b/chrome/chrome.xcodeproj/project.pbxproj @@ -314,6 +314,42 @@ 8F51B73AAAF1772ECF9BD180 /* url_fetcher.cc in Sources */ = {isa = PBXBuildFile; fileRef = 778D7927798B7E3FAA498D3D /* url_fetcher.cc */; }; 9084D27A4F8690E6FD31083B /* session_backend.cc in Sources */ = {isa = PBXBuildFile; fileRef = 35AC9D9A03545594C102C5C1 /* session_backend.cc */; }; 928300674E414B42615BA4F0 /* download_manager.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4D7BF9CE0E9D48CE009A6919 /* download_manager.cc */; }; + 93FB3ECE0F55E38400AA1185 /* libwebkit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BD53D90F54AB4300591DFA /* libwebkit.a */; }; + 93FB3ED10F55E38900AA1185 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45065DD0EEEC6FF003BE099 /* AppKit.framework */; }; + 93FB3ED20F55E38900AA1185 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4DCDB9C0F4091BF0084059A /* ApplicationServices.framework */; }; + 93FB3ED30F55E38900AA1185 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331B93AB0F3BF2DA008B1C46 /* Carbon.framework */; }; + 93FB3ED40F55E38900AA1185 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45065DF0EEEC709003BE099 /* Foundation.framework */; }; + 93FB3ED50F55E38900AA1185 /* libbrowser.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D7BF3060E9D477E009A6919 /* libbrowser.a */; }; + 93FB3ED60F55E38900AA1185 /* libcommon.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D7BFC1A0E9D4CB9009A6919 /* libcommon.a */; }; + 93FB3ED70F55E38900AA1185 /* librenderer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D640CEB0EAE86BD00EBCFC0 /* librenderer.a */; }; + 93FB3ED80F55E38900AA1185 /* libWebKitSystemInterfaceLeopard.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4DCDC8E0F4091F30084059A /* libWebKitSystemInterfaceLeopard.a */; }; + 93FB3ED90F55E38900AA1185 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331B93A90F3BF2B9008B1C46 /* QuartzCore.framework */; }; + 93FB3EDA0F55E38900AA1185 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82684C5F0F2FAE68009F6555 /* Security.framework */; }; + 93FB3EDB0F55E38900AA1185 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82684CCF0F2FAEC2009F6555 /* SystemConfiguration.framework */; }; + 93FB42060F55E39F00AA1185 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45065DD0EEEC6FF003BE099 /* AppKit.framework */; }; + 93FB42070F55E39F00AA1185 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45065DD0EEEC6FF003BE099 /* AppKit.framework */; }; + 93FB42080F55E39F00AA1185 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4DCDB9C0F4091BF0084059A /* ApplicationServices.framework */; }; + 93FB42090F55E39F00AA1185 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4DCDB9C0F4091BF0084059A /* ApplicationServices.framework */; }; + 93FB420A0F55E39F00AA1185 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331B93AB0F3BF2DA008B1C46 /* Carbon.framework */; }; + 93FB420B0F55E39F00AA1185 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331B93AB0F3BF2DA008B1C46 /* Carbon.framework */; }; + 93FB420C0F55E39F00AA1185 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45065DF0EEEC709003BE099 /* Foundation.framework */; }; + 93FB420D0F55E39F00AA1185 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45065DF0EEEC709003BE099 /* Foundation.framework */; }; + 93FB420E0F55E39F00AA1185 /* libbrowser.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D7BF3060E9D477E009A6919 /* libbrowser.a */; }; + 93FB420F0F55E39F00AA1185 /* libbrowser.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D7BF3060E9D477E009A6919 /* libbrowser.a */; }; + 93FB42100F55E39F00AA1185 /* libcommon.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D7BFC1A0E9D4CB9009A6919 /* libcommon.a */; }; + 93FB42110F55E39F00AA1185 /* libcommon.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D7BFC1A0E9D4CB9009A6919 /* libcommon.a */; }; + 93FB42120F55E39F00AA1185 /* librenderer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D640CEB0EAE86BD00EBCFC0 /* librenderer.a */; }; + 93FB42130F55E39F00AA1185 /* librenderer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D640CEB0EAE86BD00EBCFC0 /* librenderer.a */; }; + 93FB42140F55E39F00AA1185 /* libWebKitSystemInterfaceLeopard.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4DCDC8E0F4091F30084059A /* libWebKitSystemInterfaceLeopard.a */; }; + 93FB42150F55E39F00AA1185 /* libWebKitSystemInterfaceLeopard.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4DCDC8E0F4091F30084059A /* libWebKitSystemInterfaceLeopard.a */; }; + 93FB42160F55E39F00AA1185 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331B93A90F3BF2B9008B1C46 /* QuartzCore.framework */; }; + 93FB42170F55E39F00AA1185 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331B93A90F3BF2B9008B1C46 /* QuartzCore.framework */; }; + 93FB42180F55E39F00AA1185 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82684C5F0F2FAE68009F6555 /* Security.framework */; }; + 93FB42190F55E39F00AA1185 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82684C5F0F2FAE68009F6555 /* Security.framework */; }; + 93FB421A0F55E39F00AA1185 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82684CCF0F2FAEC2009F6555 /* SystemConfiguration.framework */; }; + 93FB421B0F55E39F00AA1185 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82684CCF0F2FAEC2009F6555 /* SystemConfiguration.framework */; }; + 93FB423B0F55E84600AA1185 /* libwebkit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BD53D90F54AB4300591DFA /* libwebkit.a */; }; + 93FB42450F55E88500AA1185 /* libwebkit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BD53D90F54AB4300591DFA /* libwebkit.a */; }; 94542322A5E5A8F4FDDAB7F0 /* render_view_host_manager.cc in Sources */ = {isa = PBXBuildFile; fileRef = A76E42AD0F28EDB5009A7E88 /* render_view_host_manager.cc */; }; 96DF109FEE9B09B11690F1FA /* infobar_delegate.cc in Sources */ = {isa = PBXBuildFile; fileRef = B6CCB9CF0F1EC32700106F0D /* infobar_delegate.cc */; }; 970EF19CD8A79CF3D0DF4B61 /* download_file.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4D7BF9CA0E9D48CE009A6919 /* download_file.cc */; }; @@ -1657,6 +1693,13 @@ remoteGlobalIDString = 7BA361A60E8C36E50023C8B9; remoteInfo = sdch; }; + 93FB3ECC0F55E34700AA1185 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 826850040F2FC82D009F6555 /* webkit.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 937A15B60F53326C003E8D2D; + remoteInfo = webkit; + }; ABFA33870F424EC5008FCF5D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = ABFA33790F424EC5008FCF5D /* media.xcodeproj */; @@ -2929,6 +2972,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 93FB42450F55E88500AA1185 /* libwebkit.a in Frameworks */, E45066CE0EEF1AA7003BE099 /* AppKit.framework in Frameworks */, E477F6B50F4095660044ABEB /* ApplicationServices.framework in Frameworks */, 331218230F3BFF36006CB2B0 /* Carbon.framework in Frameworks */, @@ -2984,6 +3028,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 93FB423B0F55E84600AA1185 /* libwebkit.a in Frameworks */, 4D7FA6940F13CC01004F1B19 /* AppKit.framework in Frameworks */, E4DCDC9C0F40938D0084059A /* ApplicationServices.framework in Frameworks */, 33121A390F3C0339006CB2B0 /* Carbon.framework in Frameworks */, @@ -3054,6 +3099,40 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 93FB42060F55E39F00AA1185 /* AppKit.framework in Frameworks */, + 93FB42070F55E39F00AA1185 /* AppKit.framework in Frameworks */, + 93FB42080F55E39F00AA1185 /* ApplicationServices.framework in Frameworks */, + 93FB42090F55E39F00AA1185 /* ApplicationServices.framework in Frameworks */, + 93FB420A0F55E39F00AA1185 /* Carbon.framework in Frameworks */, + 93FB420B0F55E39F00AA1185 /* Carbon.framework in Frameworks */, + 93FB420C0F55E39F00AA1185 /* Foundation.framework in Frameworks */, + 93FB420D0F55E39F00AA1185 /* Foundation.framework in Frameworks */, + 93FB420E0F55E39F00AA1185 /* libbrowser.a in Frameworks */, + 93FB420F0F55E39F00AA1185 /* libbrowser.a in Frameworks */, + 93FB42100F55E39F00AA1185 /* libcommon.a in Frameworks */, + 93FB42110F55E39F00AA1185 /* libcommon.a in Frameworks */, + 93FB42120F55E39F00AA1185 /* librenderer.a in Frameworks */, + 93FB42130F55E39F00AA1185 /* librenderer.a in Frameworks */, + 93FB42140F55E39F00AA1185 /* libWebKitSystemInterfaceLeopard.a in Frameworks */, + 93FB42150F55E39F00AA1185 /* libWebKitSystemInterfaceLeopard.a in Frameworks */, + 93FB42160F55E39F00AA1185 /* QuartzCore.framework in Frameworks */, + 93FB42170F55E39F00AA1185 /* QuartzCore.framework in Frameworks */, + 93FB42180F55E39F00AA1185 /* Security.framework in Frameworks */, + 93FB42190F55E39F00AA1185 /* Security.framework in Frameworks */, + 93FB421A0F55E39F00AA1185 /* SystemConfiguration.framework in Frameworks */, + 93FB421B0F55E39F00AA1185 /* SystemConfiguration.framework in Frameworks */, + 93FB3ED10F55E38900AA1185 /* AppKit.framework in Frameworks */, + 93FB3ED20F55E38900AA1185 /* ApplicationServices.framework in Frameworks */, + 93FB3ED30F55E38900AA1185 /* Carbon.framework in Frameworks */, + 93FB3ED40F55E38900AA1185 /* Foundation.framework in Frameworks */, + 93FB3ED50F55E38900AA1185 /* libbrowser.a in Frameworks */, + 93FB3ED60F55E38900AA1185 /* libcommon.a in Frameworks */, + 93FB3ED70F55E38900AA1185 /* librenderer.a in Frameworks */, + 93FB3ED80F55E38900AA1185 /* libWebKitSystemInterfaceLeopard.a in Frameworks */, + 93FB3ED90F55E38900AA1185 /* QuartzCore.framework in Frameworks */, + 93FB3EDA0F55E38900AA1185 /* Security.framework in Frameworks */, + 93FB3EDB0F55E38900AA1185 /* SystemConfiguration.framework in Frameworks */, + 93FB3ECE0F55E38400AA1185 /* libwebkit.a in Frameworks */, E45065DE0EEEC6FF003BE099 /* AppKit.framework in Frameworks */, E4DCDB9D0F4091C00084059A /* ApplicationServices.framework in Frameworks */, 331B93AC0F3BF2DA008B1C46 /* Carbon.framework in Frameworks */, @@ -4905,6 +4984,7 @@ 33121EF30F3CF45B006CB2B0 /* PBXTargetDependency */, 33121EF50F3CF45B006CB2B0 /* PBXTargetDependency */, 33121EF70F3CF45B006CB2B0 /* PBXTargetDependency */, + 93FB3ECD0F55E34700AA1185 /* PBXTargetDependency */, ); name = app; productName = app; @@ -6467,6 +6547,11 @@ name = sdch; targetProxy = 8268521A0F2FD197009F6555 /* PBXContainerItemProxy */; }; + 93FB3ECD0F55E34700AA1185 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = webkit; + targetProxy = 93FB3ECC0F55E34700AA1185 /* PBXContainerItemProxy */; + }; ABFA338E0F424F39008FCF5D /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = media; @@ -6731,6 +6816,7 @@ ../third_party/libjpeg, ../third_party/libxml/include, ../third_party/npapi, + ../third_party/WebKit/WebKit/chromium/public, "$(SYMROOT)/libxml.build/$(CONFIGURATION)/generated/include", ); XCODEPROJ_DEPTH = ..; @@ -6758,6 +6844,7 @@ ../third_party/libjpeg, ../third_party/libxml/include, ../third_party/npapi, + ../third_party/WebKit/WebKit/chromium/public, "$(SYMROOT)/libxml.build/$(CONFIGURATION)/generated/include", ); XCODEPROJ_DEPTH = ..; diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index 6e8e7b0..dacbd8a 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc @@ -32,7 +32,9 @@ #include "chrome/renderer/user_script_slave.h" #include "chrome/renderer/visitedlink_slave.h" #include "webkit/glue/cache_manager.h" +#include "webkit/glue/webkit_client_impl.h" +#include "WebKit.h" static const unsigned int kCacheStatsDelayMS = 2000 /* milliseconds */; @@ -99,6 +101,9 @@ void RenderThread::Init() { CoInitialize(0); #endif + webkit_client_impl_.reset(new webkit_glue::WebKitClientImpl); + WebKit::initialize(webkit_client_impl_.get()); + visited_link_slave_ = new VisitedLinkSlave(); user_script_slave_ = new UserScriptSlave(); render_dns_master_.reset(new RenderDnsMaster()); diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h index a23776e..cfc3d9a 100644 --- a/chrome/renderer/render_thread.h +++ b/chrome/renderer/render_thread.h @@ -24,6 +24,10 @@ class VisitedLinkSlave; struct ModalDialogEvent; struct WebPreferences; +namespace webkit_glue { +class WebKitClientImpl; +} + // The RenderThreadBase is the minimal interface that a RenderView/Widget // expects from a render thread. The interface basically abstracts a way to send // and receive messages. @@ -138,6 +142,8 @@ class RenderThread : public RenderThreadBase, scoped_ptr<NotificationService> notification_service_; + scoped_ptr<webkit_glue::WebKitClientImpl> webkit_client_impl_; + DISALLOW_COPY_AND_ASSIGN(RenderThread); }; diff --git a/chrome/renderer/renderer.scons b/chrome/renderer/renderer.scons index 3bb0d17..2522959 100644 --- a/chrome/renderer/renderer.scons +++ b/chrome/renderer/renderer.scons @@ -16,8 +16,12 @@ env.SConscript([ ], {'env':env}) env.Prepend( + CPPDEFINES = [ + 'WEBKIT_USING_SKIA' + ], CPPPATH = [ '$CHROME_SRC_DIR', + '$THIRD_PARTY_WEBKIT_DIR/WebKit/chromium/public', ], ) diff --git a/chrome/renderer/renderer.vcproj b/chrome/renderer/renderer.vcproj index 684ec52..caa5e20 100644 --- a/chrome/renderer/renderer.vcproj +++ b/chrome/renderer/renderer.vcproj @@ -18,7 +18,7 @@ <Configuration Name="Debug|Win32" ConfigurationType="4" - InheritedPropertySheets=".\renderer.vsprops;$(SolutionDir)..\build\debug.vsprops;..\tools\build\win\precompiled_wtl.vsprops" + InheritedPropertySheets=".\renderer.vsprops;$(SolutionDir)..\build\debug.vsprops;..\tools\build\win\precompiled_wtl.vsprops;..\..\webkit\build\WebKit\using_WebKit.vsprops" > <Tool Name="VCPreBuildEventTool" @@ -69,7 +69,7 @@ <Configuration Name="Release|Win32" ConfigurationType="4" - InheritedPropertySheets=".\renderer.vsprops;$(SolutionDir)..\build\release.vsprops" + InheritedPropertySheets=".\renderer.vsprops;$(SolutionDir)..\build\release.vsprops;..\..\webkit\build\WebKit\using_WebKit.vsprops" > <Tool Name="VCPreBuildEventTool" diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc index 7ccf018..055f342 100644 --- a/chrome/renderer/renderer_glue.cc +++ b/chrome/renderer/renderer_glue.cc @@ -84,15 +84,15 @@ class ResizableStackArray { }; #if defined(OS_WIN) -// This definition of WriteBitmap uses shared memory to communicate across -// processes. -void ScopedClipboardWriterGlue::WriteBitmap(const SkBitmap& bitmap) { - // do not try to write a bitmap more than once +// This definition of WriteBitmapFromPixels uses shared memory to communicate +// across processes. +void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels, + const gfx::Size& size) { + // Do not try to write a bitmap more than once if (shared_buf_) return; - size_t buf_size = bitmap.getSize(); - gfx::Size size(bitmap.width(), bitmap.height()); + size_t buf_size = 4 * size.width() * size.height(); // Allocate a shared memory buffer to hold the bitmap bits shared_buf_ = new base::SharedMemory; @@ -104,8 +104,7 @@ void ScopedClipboardWriterGlue::WriteBitmap(const SkBitmap& bitmap) { } // Copy the bits into shared memory - SkAutoLockPixels bitmap_lock(bitmap); - memcpy(shared_buf_->memory(), bitmap.getPixels(), buf_size); + memcpy(shared_buf_->memory(), pixels, buf_size); shared_buf_->Unmap(); Clipboard::ObjectMapParam param1, param2; diff --git a/webkit/build/WebKit/SConscript b/webkit/build/WebKit/SConscript index 8564a95..fa87fe0 100644 --- a/webkit/build/WebKit/SConscript +++ b/webkit/build/WebKit/SConscript @@ -8,7 +8,8 @@ env = env.Clone() env.Append( CPPDEFINES = [ - 'WEBKIT_IMPLEMENTATION' + 'WEBKIT_IMPLEMENTATION', + 'WEBKIT_USING_SKIA' ], CPPPATH = [ '$WEBKIT_DIR/build/WebCore', @@ -17,7 +18,12 @@ env.Append( ) input_files = [ + '$THIRD_PARTY_WEBKIT_DIR/WebKit/chromium/src/ChromiumBridge.cpp', + '$THIRD_PARTY_WEBKIT_DIR/WebKit/chromium/src/WebCString.cpp', + '$THIRD_PARTY_WEBKIT_DIR/WebKit/chromium/src/WebImageSkia.cpp', + '$THIRD_PARTY_WEBKIT_DIR/WebKit/chromium/src/WebKit.cpp', '$THIRD_PARTY_WEBKIT_DIR/WebKit/chromium/src/WebString.cpp', + '$THIRD_PARTY_WEBKIT_DIR/WebKit/chromium/src/WebURL.cpp', ] env.ChromeLibrary('WebKit', input_files) diff --git a/webkit/build/WebKit/WebKit.vcproj b/webkit/build/WebKit/WebKit.vcproj index bce2a1e..2aa6c6c 100644 --- a/webkit/build/WebKit/WebKit.vcproj +++ b/webkit/build/WebKit/WebKit.vcproj @@ -128,21 +128,81 @@ Name="public" > <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebClipboard.h" + > + </File> + <File RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebCommon.h" > </File> <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebCString.h" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebImage.h" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebKit.h" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebKitClient.h" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebPoint.h" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebRect.h" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebSize.h" + > + </File> + <File RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebString.h" > </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\public\WebURL.h" + > + </File> </Filter> <Filter Name="src" > <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\src\ChromiumBridge.cpp" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\src\WebCString.cpp" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\src\WebImageSkia.cpp" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\src\WebKit.cpp" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\src\WebKitPrivate.h" + > + </File> + <File RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\src\WebString.cpp" > </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebKit\chromium\src\WebURL.cpp" + > + </File> </Filter> </Filter> </Files> diff --git a/webkit/build/WebKit/WebKit.vsprops b/webkit/build/WebKit/WebKit.vsprops index 6ce2a544..8a634cd 100644 --- a/webkit/build/WebKit/WebKit.vsprops +++ b/webkit/build/WebKit/WebKit.vsprops @@ -8,7 +8,7 @@ <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="$(SolutionDir)..\third_party\WebKit\WebKit\chromium\public" - PreprocessorDefinitions="WEBKIT_IMPLEMENTATION;_SCL_SECURE_NO_DEPRECATE;_HAS_EXCEPTIONS=1" + PreprocessorDefinitions="WEBKIT_IMPLEMENTATION;WEBKIT_USING_SKIA=1;_SCL_SECURE_NO_DEPRECATE;_HAS_EXCEPTIONS=1" WarnAsError="true" /> </VisualStudioPropertySheet> diff --git a/webkit/glue/SConscript b/webkit/glue/SConscript index 3d9b3e6..375b8de 100644 --- a/webkit/glue/SConscript +++ b/webkit/glue/SConscript @@ -7,8 +7,12 @@ Import('env') env = env.Clone() env.Append( + CPPDEFINES = [ + 'WEBKIT_USING_SKIA' + ], CPPPATH = [ '$WEBKIT_DIR/build/WebCore', + '$THIRD_PARTY_WEBKIT_DIR/WebKit/chromium/public', ], LIBS = [ 'port', @@ -75,6 +79,7 @@ input_files = [ 'resource_loader_bridge.cc', 'searchable_form_data.cc', 'stacking_order_iterator.cc', + 'webclipboard_impl.cc', 'webcursor.cc', 'webdatasource_impl.cc', 'webdocumentloader_impl.cc', @@ -82,6 +87,7 @@ input_files = [ 'webframe_impl.cc', 'webframeloaderclient_impl.cc', 'webhistoryitem_impl.cc', + 'webkit_client_impl.cc', 'webkit_glue.cc', 'webmediaplayer_impl.cc', 'webplugin_delegate.cc', diff --git a/webkit/glue/chromium_bridge_impl.cc b/webkit/glue/chromium_bridge_impl.cc index 4d02c91..aeb5f40 100644 --- a/webkit/glue/chromium_bridge_impl.cc +++ b/webkit/glue/chromium_bridge_impl.cc @@ -6,7 +6,6 @@ #include "ChromiumBridge.h" #include "BitmapImage.h" -#include "ClipboardUtilitiesChromium.h" #include "Cursor.h" #include "Frame.h" #include "FrameView.h" @@ -27,7 +26,6 @@ #include <wtf/CurrentTime.h> #undef LOG -#include "base/clipboard.h" #include "base/file_util.h" #include "base/message_loop.h" #include "base/stats_counters.h" @@ -45,7 +43,6 @@ #include "webkit/glue/chrome_client_impl.h" #include "webkit/glue/glue_util.h" #include "webkit/glue/plugins/plugin_instance.h" -#include "webkit/glue/scoped_clipboard_writer_glue.h" #include "webkit/glue/webcursor.h" #include "webkit/glue/webkit_glue.h" #include "webkit/glue/webplugin_impl.h" @@ -93,122 +90,10 @@ ChromeClientImpl* ToChromeClient(WebCore::Widget* widget) { return static_cast<ChromeClientImpl*>(page->chrome()->client()); } -std::wstring UrlToImageMarkup(const WebCore::KURL& url, - const WebCore::String& alt_str) { - std::wstring markup(L"<img src=\""); - markup.append(webkit_glue::StringToStdWString(url.string())); - markup.append(L"\""); - if (!alt_str.isEmpty()) { - markup.append(L" alt=\""); - std::wstring alt_stdstr = webkit_glue::StringToStdWString(alt_str); - ReplaceSubstringsAfterOffset(&alt_stdstr, 0, L"\"", L"""); - markup.append(alt_stdstr); - markup.append(L"\""); - } - markup.append(L"/>"); - return markup; -} - } // namespace namespace WebCore { -bool ChromiumBridge::clipboardIsFormatAvailable( - PasteboardPrivate::ClipboardFormat format) { - switch (format) { - case PasteboardPrivate::HTMLFormat: - return webkit_glue::ClipboardIsFormatAvailable( - ::Clipboard::GetHtmlFormatType()); - - case PasteboardPrivate::WebSmartPasteFormat: - return webkit_glue::ClipboardIsFormatAvailable( - ::Clipboard::GetWebKitSmartPasteFormatType()); - - case PasteboardPrivate::BookmarkFormat: -#if defined(OS_WIN) || defined(OS_MACOSX) - return webkit_glue::ClipboardIsFormatAvailable( - ::Clipboard::GetUrlWFormatType()); -#endif - - default: - NOTREACHED(); - return false; - } -} - -String ChromiumBridge::clipboardReadPlainText() { - if (webkit_glue::ClipboardIsFormatAvailable( - ::Clipboard::GetPlainTextWFormatType())) { - std::wstring text; - webkit_glue::ClipboardReadText(&text); - if (!text.empty()) - return webkit_glue::StdWStringToString(text); - } - - if (webkit_glue::ClipboardIsFormatAvailable( - ::Clipboard::GetPlainTextFormatType())) { - std::string text; - webkit_glue::ClipboardReadAsciiText(&text); - if (!text.empty()) - return webkit_glue::StdStringToString(text); - } - - return String(); -} - -void ChromiumBridge::clipboardReadHTML(String* html, KURL* url) { - std::wstring html_stdstr; - GURL gurl; - webkit_glue::ClipboardReadHTML(&html_stdstr, &gurl); - *html = webkit_glue::StdWStringToString(html_stdstr); - *url = webkit_glue::GURLToKURL(gurl); -} - -void ChromiumBridge::clipboardWriteSelection(const String& html, - const KURL& url, - const String& plain_text, - bool can_smart_copy_or_delete) { - ScopedClipboardWriterGlue scw(webkit_glue::ClipboardGetClipboard()); - scw.WriteHTML(webkit_glue::StringToStdWString(html), -#if USE(GOOGLEURL) - webkit_glue::CStringToStdString(url.utf8String())); -#else - webkit_glue::StringToStdString(url.string())); -#endif - scw.WriteText(webkit_glue::StringToStdWString(plain_text)); - - if (can_smart_copy_or_delete) - scw.WriteWebSmartPaste(); -} - -void ChromiumBridge::clipboardWriteURL(const KURL& url, const String& title) { - ScopedClipboardWriterGlue scw(webkit_glue::ClipboardGetClipboard()); - - GURL gurl = webkit_glue::KURLToGURL(url); - scw.WriteBookmark(webkit_glue::StringToStdWString(title), gurl.spec()); - - std::wstring link(webkit_glue::StringToStdWString(urlToMarkup(url, title))); - scw.WriteHTML(link, ""); - - scw.WriteText(ASCIIToWide(gurl.spec())); -} - -void ChromiumBridge::clipboardWriteImage(const NativeImageSkia* bitmap, - const KURL& url, const String& title) { - ScopedClipboardWriterGlue scw(webkit_glue::ClipboardGetClipboard()); - -#if defined(OS_WIN) - if (bitmap) - scw.WriteBitmap(*bitmap); -#endif - if (!url.isEmpty()) { - GURL gurl = webkit_glue::KURLToGURL(url); - scw.WriteBookmark(webkit_glue::StringToStdWString(title), gurl.spec()); - scw.WriteHTML(UrlToImageMarkup(url, title), ""); - scw.WriteText(ASCIIToWide(gurl.spec())); - } -} - // Cookies -------------------------------------------------------------------- void ChromiumBridge::setCookies( diff --git a/webkit/glue/glue.vcproj b/webkit/glue/glue.vcproj index f31623c..6dae503 100644 --- a/webkit/glue/glue.vcproj +++ b/webkit/glue/glue.vcproj @@ -18,7 +18,7 @@ <Configuration
Name="Debug|Win32"
ConfigurationType="4"
- InheritedPropertySheets="$(SolutionDir)..\build\debug.vsprops;.\glue.vsprops"
+ InheritedPropertySheets="$(SolutionDir)..\build\debug.vsprops;.\glue.vsprops;..\build\WebKit\using_WebKit.vsprops"
>
<Tool
Name="VCPreBuildEventTool"
@@ -69,7 +69,7 @@ <Configuration
Name="Release|Win32"
ConfigurationType="4"
- InheritedPropertySheets="$(SolutionDir)..\build\release.vsprops;.\glue.vsprops"
+ InheritedPropertySheets="$(SolutionDir)..\build\release.vsprops;.\glue.vsprops;..\build\WebKit\using_WebKit.vsprops"
>
<Tool
Name="VCPreBuildEventTool"
@@ -533,6 +533,14 @@ >
</File>
<File
+ RelativePath=".\webclipboard_impl.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\webclipboard_impl.h"
+ >
+ </File>
+ <File
RelativePath=".\webcursor.cc"
>
</File>
@@ -605,6 +613,14 @@ >
</File>
<File
+ RelativePath=".\webkit_client_impl.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\webkit_client_impl.h"
+ >
+ </File>
+ <File
RelativePath=".\webkit_glue.cc"
>
</File>
diff --git a/webkit/glue/scoped_clipboard_writer_glue.h b/webkit/glue/scoped_clipboard_writer_glue.h index db7c428..d42263f 100644 --- a/webkit/glue/scoped_clipboard_writer_glue.h +++ b/webkit/glue/scoped_clipboard_writer_glue.h @@ -23,7 +23,7 @@ class ScopedClipboardWriterGlue : public ScopedClipboardWriter { ~ScopedClipboardWriterGlue(); #if defined(OS_WIN) - void ScopedClipboardWriterGlue::WriteBitmap(const SkBitmap& bitmap); + void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size); #endif private: diff --git a/webkit/glue/simple_clipboard_impl.cc b/webkit/glue/simple_clipboard_impl.cc index bc8c7c5..0dbc207 100644 --- a/webkit/glue/simple_clipboard_impl.cc +++ b/webkit/glue/simple_clipboard_impl.cc @@ -15,14 +15,10 @@ // Clipboard glue -#if defined(OS_WIN) -// The call is being made within the current process. -void ScopedClipboardWriterGlue::WriteBitmap(const SkBitmap& bitmap) { - SkAutoLockPixels bitmap_lock(bitmap); - WriteBitmapFromPixels(bitmap.getPixels(), gfx::Size(bitmap.width(), - bitmap.height())); +void ScopedClipboardWriterGlue::WriteBitmapFromPixels( + const void* pixels, const gfx::Size& size) { + ScopedClipboardWriter::WriteBitmapFromPixels(pixels, size); } -#endif // defined(OS_WIN) ScopedClipboardWriterGlue::~ScopedClipboardWriterGlue() { } diff --git a/webkit/glue/webclipboard_impl.cc b/webkit/glue/webclipboard_impl.cc new file mode 100644 index 0000000..4e9db87 --- /dev/null +++ b/webkit/glue/webclipboard_impl.cc @@ -0,0 +1,134 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#include "webkit/glue/webclipboard_impl.h" + +#include "WebImage.h" +#include "WebString.h" +#include "WebURL.h" + +#include "base/clipboard.h" +#include "base/logging.h" +#include "base/string_util.h" +#include "googleurl/src/gurl.h" +#include "net/base/escape.h" +#include "webkit/glue/scoped_clipboard_writer_glue.h" +#include "webkit/glue/webkit_glue.h" + +using WebKit::WebClipboard; +using WebKit::WebImage; +using WebKit::WebString; +using WebKit::WebURL; + +namespace webkit_glue { + +static std::string URLToMarkup(const WebURL& url, const WebString& title) { + std::string markup("<a href=\""); + markup.append(url.spec()); + markup.append("\">"); + // TODO(darin): HTML escape this + markup.append(EscapeForHTML(UTF16ToUTF8(title))); + markup.append("</a>"); + return markup; +} + +static std::string URLToImageMarkup(const WebURL& url, + const WebString& title) { + std::string markup("<img src=\""); + markup.append(url.spec()); + markup.append("\""); + if (!title.isEmpty()) { + markup.append(" alt=\""); + markup.append(EscapeForHTML(UTF16ToUTF8(title))); + markup.append("\""); + } + markup.append("/>"); + return markup; +} + +bool WebClipboardImpl::isFormatAvailable(Format format) { + Clipboard::FormatType format_type; + + switch (format) { + case FormatHTML: + format_type = Clipboard::GetHtmlFormatType(); + break; + case FormatSmartPaste: + format_type = Clipboard::GetWebKitSmartPasteFormatType(); + break; + case FormatBookmark: +#if defined(OS_WIN) || defined(OS_MACOSX) + format_type = Clipboard::GetUrlWFormatType(); + break; +#endif + default: + NOTREACHED(); + return false; + } + + return ClipboardIsFormatAvailable(format_type); +} + +WebString WebClipboardImpl::readPlainText() { + if (ClipboardIsFormatAvailable(Clipboard::GetPlainTextWFormatType())) { + std::wstring text; + ClipboardReadText(&text); + if (!text.empty()) + return WideToUTF16(text); + } + + if (ClipboardIsFormatAvailable(Clipboard::GetPlainTextFormatType())) { + std::string text; + ClipboardReadAsciiText(&text); + if (!text.empty()) + return UTF8ToUTF16(text); + } + + return WebString(); +} + +WebString WebClipboardImpl::readHTML(WebURL* source_url) { + std::wstring html_stdstr; + GURL gurl; + ClipboardReadHTML(&html_stdstr, &gurl); + *source_url = gurl; + return WideToUTF16(html_stdstr); +} + +void WebClipboardImpl::writeHTML( + const WebString& html_text, const WebURL& source_url, + const WebString& plain_text, bool write_smart_paste) { + ScopedClipboardWriterGlue scw(ClipboardGetClipboard()); + scw.WriteHTML(UTF16ToWide(html_text), source_url.spec()); + scw.WriteText(UTF16ToWide(plain_text)); + + if (write_smart_paste) + scw.WriteWebSmartPaste(); +} + +void WebClipboardImpl::writeURL(const WebURL& url, const WebString& title) { + ScopedClipboardWriterGlue scw(ClipboardGetClipboard()); + + scw.WriteBookmark(UTF16ToWide(title), url.spec()); + scw.WriteHTML(UTF8ToWide(URLToMarkup(url, title)), ""); + scw.WriteText(UTF8ToWide(url.spec())); +} + +void WebClipboardImpl::writeImage( + const WebImage& image, const WebURL& url, const WebString& title) { + ScopedClipboardWriterGlue scw(ClipboardGetClipboard()); + +#if defined(OS_WIN) + if (!image.isNull()) + scw.WriteBitmapFromPixels(image.pixels(), image.size()); +#endif + + if (!url.isEmpty()) { + scw.WriteBookmark(UTF16ToWide(title), url.spec()); + scw.WriteHTML(UTF8ToWide(URLToImageMarkup(url, title)), ""); + scw.WriteText(UTF8ToWide(url.spec())); + } +} + +} // namespace webkit_glue diff --git a/webkit/glue/webclipboard_impl.h b/webkit/glue/webclipboard_impl.h new file mode 100644 index 0000000..2be3ea6 --- /dev/null +++ b/webkit/glue/webclipboard_impl.h @@ -0,0 +1,34 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#ifndef WEBCLIPBOARD_IMPL_H_ +#define WEBCLIPBOARD_IMPL_H_ + +#include "WebClipboard.h" + +namespace webkit_glue { + +class WebClipboardImpl : public WebKit::WebClipboard { + public: + // WebClipboard methods: + virtual bool isFormatAvailable(WebKit::WebClipboard::Format); + virtual WebKit::WebString readPlainText(); + virtual WebKit::WebString readHTML(WebKit::WebURL* source_url); + virtual void writeHTML( + const WebKit::WebString& html_text, + const WebKit::WebURL& source_url, + const WebKit::WebString& plain_text, + bool write_smart_paste); + virtual void writeURL( + const WebKit::WebURL&, + const WebKit::WebString& title); + virtual void writeImage( + const WebKit::WebImage&, + const WebKit::WebURL& source_url, + const WebKit::WebString& title); +}; + +} // namespace webkit_glue + +#endif // WEBCLIPBOARD_IMPL_H_ diff --git a/webkit/glue/webkit_client_impl.cc b/webkit/glue/webkit_client_impl.cc new file mode 100644 index 0000000..721dcde --- /dev/null +++ b/webkit/glue/webkit_client_impl.cc @@ -0,0 +1,15 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#include "webkit/glue/webkit_client_impl.h" + +namespace webkit_glue { + +WebKit::WebClipboard* WebKitClientImpl::clipboard() { + if (!clipboard_.get()) + clipboard_.reset(new WebClipboardImpl()); + return clipboard_.get(); +} + +} // namespace webkit_glue diff --git a/webkit/glue/webkit_client_impl.h b/webkit/glue/webkit_client_impl.h new file mode 100644 index 0000000..e2ff98a --- /dev/null +++ b/webkit/glue/webkit_client_impl.h @@ -0,0 +1,26 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#ifndef WEBKIT_CLIENT_IMPL_H_ +#define WEBKIT_CLIENT_IMPL_H_ + +#include "WebKitClient.h" + +#include "base/scoped_ptr.h" +#include "webkit/glue/webclipboard_impl.h" + +namespace webkit_glue { + +class WebKitClientImpl : public WebKit::WebKitClient { + public: + // WebKitClient methods: + virtual WebKit::WebClipboard* clipboard(); + + private: + scoped_ptr<WebClipboardImpl> clipboard_; +}; + +} // namespace webkit_glue + +#endif // WEBKIT_CLIENT_IMPL_H_ diff --git a/webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj b/webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj index 8d99909..6f841f5b 100644 --- a/webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj +++ b/webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj @@ -82,10 +82,12 @@ 82F39D400E7EFD9300785E15 /* libxml.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B82056C0E770291008F45CF /* libxml.a */; }; 82F39D490E7EFDAA00785E15 /* libjscre.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B82059A0E770291008F45CF /* libjscre.a */; }; 82F39D4A0E7EFDAA00785E15 /* libv8.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B82059C0E770291008F45CF /* libv8.a */; }; + 93336F0B0F55FBE50062E3BA /* libwebkit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 937DE8840F5347B400D0D638 /* libwebkit.a */; }; 93AF4F340EFAFE2C0073C62D /* BMPImageDecoder_unittest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93AF4F300EFAFE2C0073C62D /* BMPImageDecoder_unittest.cpp */; }; 93AF4F350EFAFE2C0073C62D /* GKURL_unittest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93AF4F310EFAFE2C0073C62D /* GKURL_unittest.cpp */; }; 93AF4F360EFAFE2C0073C62D /* ICOImageDecoder_unittest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93AF4F320EFAFE2C0073C62D /* ICOImageDecoder_unittest.cpp */; }; 93AF4F370EFAFE2C0073C62D /* XBMImageDecoder_unittest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93AF4F330EFAFE2C0073C62D /* XBMImageDecoder_unittest.cpp */; }; + 93FB428B0F55E8DD00AA1185 /* libwebkit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 937DE8840F5347B400D0D638 /* libwebkit.a */; }; AB19AC150F1BBBD000673E20 /* test_shell_main.cc in Sources */ = {isa = PBXBuildFile; fileRef = AB19AC140F1BBBD000673E20 /* test_shell_main.cc */; }; AB19AC290F1BD6C900673E20 /* test_shell_platform_delegate_mac.mm in Sources */ = {isa = PBXBuildFile; fileRef = AB19AC280F1BD6C900673E20 /* test_shell_platform_delegate_mac.mm */; }; AB19AD380F1D0AF200673E20 /* test_shell_mac.mm in Sources */ = {isa = PBXBuildFile; fileRef = ABA9CAE90DBC521D00CB1EFB /* test_shell_mac.mm */; }; @@ -874,6 +876,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 93336F0B0F55FBE50062E3BA /* libwebkit.a in Frameworks */, E45069C40EF016C6003BE099 /* AppKit.framework in Frameworks */, E45069C50EF016C6003BE099 /* ApplicationServices.framework in Frameworks */, E45069C60EF016C6003BE099 /* Carbon.framework in Frameworks */, @@ -916,6 +919,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 93FB428B0F55E8DD00AA1185 /* libwebkit.a in Frameworks */, E45629300E26B4FE005E4685 /* AppKit.framework in Frameworks */, E45629270E26B4FE005E4685 /* ApplicationServices.framework in Frameworks */, E456292C0E26B4FE005E4685 /* Carbon.framework in Frameworks */, @@ -2285,6 +2289,7 @@ ../../../../third_party/WebKit/WebCore/rendering, ../../../../third_party/WebKit/WebCore/rendering/style, ../../../../third_party/WebKit/WebCore/svg, + ../../../../third_party/WebKit/WebKit/chromium/public, ../../../../third_party/WebKit/WebKit/mac/WebCoreSupport, ../../../../v8/include, ../../../../webkit/port/platform, @@ -2351,6 +2356,7 @@ ../../../../third_party/WebKit/WebCore/rendering, ../../../../third_party/WebKit/WebCore/rendering/style, ../../../../third_party/WebKit/WebCore/svg, + ../../../../third_party/WebKit/WebKit/chromium/public, ../../../../third_party/WebKit/WebKit/mac/WebCoreSupport, ../../../../v8/include, ../../../../webkit/port/platform, @@ -2412,6 +2418,7 @@ ../../../../third_party/WebKit/WebCore/dom, ../../../../third_party/WebKit/WebCore/page, ../../../../third_party/WebKit/WebCore, + ../../../../third_party/WebKit/WebKit/chromium/public, ../../../../third_party/WebKit/WebKit/mac/WebCoreSupport, "$(SYMROOT)/webkit.build/$(CONFIGURATION)/generated/WebCore/v8", "$(SYMROOT)/webkit.build/$(CONFIGURATION)/generated/grit", @@ -2455,6 +2462,7 @@ ../../../../third_party/WebKit/WebCore/dom, ../../../../third_party/WebKit/WebCore/page, ../../../../third_party/WebKit/WebCore, + ../../../../third_party/WebKit/WebKit/chromium/public, ../../../../third_party/WebKit/WebKit/mac/WebCoreSupport, "$(SYMROOT)/webkit.build/$(CONFIGURATION)/generated/WebCore/v8", "$(SYMROOT)/webkit.build/$(CONFIGURATION)/generated/grit", diff --git a/webkit/tools/test_shell/test_shell.vcproj b/webkit/tools/test_shell/test_shell.vcproj index e31e63f..0a02735 100644 --- a/webkit/tools/test_shell/test_shell.vcproj +++ b/webkit/tools/test_shell/test_shell.vcproj @@ -18,7 +18,7 @@ <Configuration Name="Debug|Win32" ConfigurationType="1" - InheritedPropertySheets="$(SolutionDir)..\build\debug.vsprops;.\test_shell.vsprops;$(SolutionDir)..\testing\using_gtest.vsprops" + InheritedPropertySheets="$(SolutionDir)..\build\debug.vsprops;.\test_shell.vsprops;$(SolutionDir)..\testing\using_gtest.vsprops;..\..\build\WebKit\using_WebKit.vsprops" > <Tool Name="VCPreBuildEventTool" @@ -79,7 +79,7 @@ <Configuration Name="Release|Win32" ConfigurationType="1" - InheritedPropertySheets="$(SolutionDir)..\build\release.vsprops;.\test_shell.vsprops;$(SolutionDir)..\testing\using_gtest.vsprops" + InheritedPropertySheets="$(SolutionDir)..\build\release.vsprops;.\test_shell.vsprops;$(SolutionDir)..\testing\using_gtest.vsprops;..\..\build\WebKit\using_WebKit.vsprops" > <Tool Name="VCPreBuildEventTool" diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc index 9604dc7..795b17b 100644 --- a/webkit/tools/test_shell/test_shell_main.cc +++ b/webkit/tools/test_shell/test_shell_main.cc @@ -25,6 +25,7 @@ #include "net/http/http_cache.h" #include "net/base/ssl_test_util.h" #include "net/url_request/url_request_context.h" +#include "webkit/glue/webkit_client_impl.h" #include "webkit/glue/webkit_glue.h" #include "webkit/glue/window_open_disposition.h" #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" @@ -33,6 +34,8 @@ #include "webkit/tools/test_shell/test_shell_request_context.h" #include "webkit/tools/test_shell/test_shell_switches.h" +#include "WebKit.h" + #include <iostream> using namespace std; @@ -85,6 +88,9 @@ int main(int argc, char* argv[]) { layout_test_mode, enable_gp_fault_error_box); + webkit_glue::WebKitClientImpl webkit_client_impl; + WebKit::initialize(&webkit_client_impl); + // Set this early before we start using WebCore. webkit_glue::SetLayoutTestMode(layout_test_mode); diff --git a/webkit/tools/test_shell/test_shell_tests.vcproj b/webkit/tools/test_shell/test_shell_tests.vcproj index 023a0c4..9e5c655 100644 --- a/webkit/tools/test_shell/test_shell_tests.vcproj +++ b/webkit/tools/test_shell/test_shell_tests.vcproj @@ -18,7 +18,7 @@ <Configuration Name="Debug|Win32" ConfigurationType="1" - InheritedPropertySheets="$(SolutionDir)..\build\debug.vsprops;.\test_shell_tests.vsprops;$(SolutionDir)..\testing\using_gtest.vsprops" + InheritedPropertySheets="$(SolutionDir)..\build\debug.vsprops;.\test_shell_tests.vsprops;$(SolutionDir)..\testing\using_gtest.vsprops;..\..\build\WebKit\using_WebKit.vsprops" > <Tool Name="VCPreBuildEventTool" @@ -78,7 +78,7 @@ <Configuration Name="Release|Win32" ConfigurationType="1" - InheritedPropertySheets="$(SolutionDir)..\build\release.vsprops;.\test_shell_tests.vsprops;$(SolutionDir)..\testing\using_gtest.vsprops" + InheritedPropertySheets="$(SolutionDir)..\build\release.vsprops;.\test_shell_tests.vsprops;$(SolutionDir)..\testing\using_gtest.vsprops;..\..\build\WebKit\using_WebKit.vsprops" > <Tool Name="VCPreBuildEventTool" @@ -194,10 +194,10 @@ RelativePath=".\run_all_tests.cc" > </File> - <File - RelativePath="..\..\glue\simple_clipboard_impl.cc" - > - </File> + <File + RelativePath="..\..\glue\simple_clipboard_impl.cc" + > + </File> <File RelativePath=".\simple_resource_loader_bridge.cc" > @@ -230,14 +230,14 @@ RelativePath=".\resources\test_shell.rc" > </File> - <File - RelativePath=".\test_shell_platform_delegate.h" - > - </File> - <File - RelativePath=".\test_shell_platform_delegate_win.cc" - > - </File> + <File + RelativePath=".\test_shell_platform_delegate.h" + > + </File> + <File + RelativePath=".\test_shell_platform_delegate_win.cc" + > + </File> <File RelativePath=".\test_shell_request_context.cc" > diff --git a/webkit/webkit.xcodeproj/project.pbxproj b/webkit/webkit.xcodeproj/project.pbxproj index e370e8b..b959e0f 100644 --- a/webkit/webkit.xcodeproj/project.pbxproj +++ b/webkit/webkit.xcodeproj/project.pbxproj @@ -1314,6 +1314,12 @@ 938448C10F16B06E0075F4C5 /* V8WorkerContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7B0093830DAFEFE500F72082 /* V8WorkerContext.cpp */; }; 938448C20F16B06E0075F4C5 /* V8WorkerLocation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7B0093850DAFEFE500F72082 /* V8WorkerLocation.cpp */; }; 938448C30F16B06E0075F4C5 /* V8WorkerNavigator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7B0093870DAFEFE500F72082 /* V8WorkerNavigator.cpp */; }; + 9389E82F0F55C4550035E7D0 /* ChromiumBridge.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9389E82A0F55C4550035E7D0 /* ChromiumBridge.cpp */; }; + 9389E8300F55C4550035E7D0 /* WebCString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9389E82B0F55C4550035E7D0 /* WebCString.cpp */; }; + 9389E8310F55C4550035E7D0 /* WebKit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9389E82C0F55C4550035E7D0 /* WebKit.cpp */; }; + 9389E8320F55C4550035E7D0 /* WebURL.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9389E82E0F55C4550035E7D0 /* WebURL.cpp */; }; + 9389E8370F55C4810035E7D0 /* webclipboard_impl.cc in Sources */ = {isa = PBXBuildFile; fileRef = 9389E8330F55C4810035E7D0 /* webclipboard_impl.cc */; }; + 9389E8380F55C4810035E7D0 /* webkit_client_impl.cc in Sources */ = {isa = PBXBuildFile; fileRef = 9389E8350F55C4810035E7D0 /* webkit_client_impl.cc */; }; 93AF52490F001CAB0073C62D /* media_player_private_impl.cc in Sources */ = {isa = PBXBuildFile; fileRef = 93AF52480F001CAB0073C62D /* media_player_private_impl.cc */; }; 93AF57990F0198CD0073C62D /* webkit_glue_mac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93AF57980F0198CD0073C62D /* webkit_glue_mac.mm */; }; A5779DD6BC0DA17AB7DE63D4 /* GCController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 715E874BCC05E0A3DD5E5D8F /* GCController.cpp */; }; @@ -3976,7 +3982,6 @@ 825404F30D92E3DA0006B936 /* context_menu_client_impl.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = context_menu_client_impl.cc; sourceTree = "<group>"; }; 825404F40D92E3DA0006B936 /* context_menu_client_impl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = context_menu_client_impl.h; sourceTree = "<group>"; }; 825404F50D92E3DA0006B936 /* context_menu_unittest.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = context_menu_unittest.cc; sourceTree = "<group>"; }; - 825404F60D92E3DA0006B936 /* context_node_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = context_node_types.h; sourceTree = "<group>"; }; 825404F70D92E3DA0006B936 /* cpp_binding_example.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cpp_binding_example.cc; sourceTree = "<group>"; }; 825404F80D92E3DA0006B936 /* cpp_binding_example.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cpp_binding_example.h; sourceTree = "<group>"; }; 825404F90D92E3DA0006B936 /* cpp_bound_class_unittest.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cpp_bound_class_unittest.cc; sourceTree = "<group>"; }; @@ -4048,8 +4053,6 @@ 825405450D92E3DA0006B936 /* webinputevent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = webinputevent.h; sourceTree = "<group>"; }; 825405460D92E3DA0006B936 /* webkit_glue.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = webkit_glue.cc; sourceTree = "<group>"; }; 825405470D92E3DB0006B936 /* webkit_glue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = webkit_glue.h; sourceTree = "<group>"; }; - 825405480D92E3DB0006B936 /* webkit_resources.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = webkit_resources.h; sourceTree = "<group>"; }; - 825405490D92E3DB0006B936 /* webkit_resources.rc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = webkit_resources.rc; sourceTree = "<group>"; }; 8254054A0D92E3DB0006B936 /* webkit_strings.grd */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = webkit_strings.grd; sourceTree = "<group>"; }; 8254054B0D92E3DB0006B936 /* webplugin_delegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = webplugin_delegate.h; sourceTree = "<group>"; }; 8254054C0D92E3DB0006B936 /* webplugin_impl_unittest.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = webplugin_impl_unittest.cc; sourceTree = "<group>"; }; @@ -4119,6 +4122,24 @@ 938443F50F16AFEF0075F4C5 /* V8DOMStringList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = V8DOMStringList.h; sourceTree = "<group>"; }; 938444010F16B03C0075F4C5 /* DOMStringList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMStringList.cpp; sourceTree = "<group>"; }; 938444020F16B03C0075F4C5 /* DOMStringList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMStringList.h; sourceTree = "<group>"; }; + 9389E81F0F55C4110035E7D0 /* WebClipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebClipboard.h; path = ../third_party/WebKit/WebKit/chromium/public/WebClipboard.h; sourceTree = SOURCE_ROOT; }; + 9389E8200F55C4110035E7D0 /* WebCString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebCString.h; path = ../third_party/WebKit/WebKit/chromium/public/WebCString.h; sourceTree = SOURCE_ROOT; }; + 9389E8210F55C4110035E7D0 /* WebImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebImage.h; path = ../third_party/WebKit/WebKit/chromium/public/WebImage.h; sourceTree = SOURCE_ROOT; }; + 9389E8220F55C4110035E7D0 /* WebKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebKit.h; path = ../third_party/WebKit/WebKit/chromium/public/WebKit.h; sourceTree = SOURCE_ROOT; }; + 9389E8230F55C4110035E7D0 /* WebKitClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebKitClient.h; path = ../third_party/WebKit/WebKit/chromium/public/WebKitClient.h; sourceTree = SOURCE_ROOT; }; + 9389E8240F55C4110035E7D0 /* WebPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebPoint.h; path = ../third_party/WebKit/WebKit/chromium/public/WebPoint.h; sourceTree = SOURCE_ROOT; }; + 9389E8250F55C4110035E7D0 /* WebRect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebRect.h; path = ../third_party/WebKit/WebKit/chromium/public/WebRect.h; sourceTree = SOURCE_ROOT; }; + 9389E8260F55C4110035E7D0 /* WebSize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebSize.h; path = ../third_party/WebKit/WebKit/chromium/public/WebSize.h; sourceTree = SOURCE_ROOT; }; + 9389E8270F55C4110035E7D0 /* WebURL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebURL.h; path = ../third_party/WebKit/WebKit/chromium/public/WebURL.h; sourceTree = SOURCE_ROOT; }; + 9389E82A0F55C4550035E7D0 /* ChromiumBridge.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ChromiumBridge.cpp; path = ../third_party/WebKit/WebKit/chromium/src/ChromiumBridge.cpp; sourceTree = SOURCE_ROOT; }; + 9389E82B0F55C4550035E7D0 /* WebCString.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebCString.cpp; path = ../third_party/WebKit/WebKit/chromium/src/WebCString.cpp; sourceTree = SOURCE_ROOT; }; + 9389E82C0F55C4550035E7D0 /* WebKit.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebKit.cpp; path = ../third_party/WebKit/WebKit/chromium/src/WebKit.cpp; sourceTree = SOURCE_ROOT; }; + 9389E82D0F55C4550035E7D0 /* WebKitPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebKitPrivate.h; path = ../third_party/WebKit/WebKit/chromium/src/WebKitPrivate.h; sourceTree = SOURCE_ROOT; }; + 9389E82E0F55C4550035E7D0 /* WebURL.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebURL.cpp; path = ../third_party/WebKit/WebKit/chromium/src/WebURL.cpp; sourceTree = SOURCE_ROOT; }; + 9389E8330F55C4810035E7D0 /* webclipboard_impl.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = webclipboard_impl.cc; sourceTree = "<group>"; }; + 9389E8340F55C4810035E7D0 /* webclipboard_impl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = webclipboard_impl.h; sourceTree = "<group>"; }; + 9389E8350F55C4810035E7D0 /* webkit_client_impl.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = webkit_client_impl.cc; sourceTree = "<group>"; }; + 9389E8360F55C4810035E7D0 /* webkit_client_impl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = webkit_client_impl.h; sourceTree = "<group>"; }; 93AF4D040EFAF0090073C62D /* ScrollView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScrollView.cpp; sourceTree = "<group>"; }; 93AF52480F001CAB0073C62D /* media_player_private_impl.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = media_player_private_impl.cc; sourceTree = "<group>"; }; 93AF525D0F002E930073C62D /* KURLGoogle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = KURLGoogle.cpp; sourceTree = "<group>"; }; @@ -7671,7 +7692,6 @@ 825404F30D92E3DA0006B936 /* context_menu_client_impl.cc */, 825404F40D92E3DA0006B936 /* context_menu_client_impl.h */, 825404F50D92E3DA0006B936 /* context_menu_unittest.cc */, - 825404F60D92E3DA0006B936 /* context_node_types.h */, 825404F70D92E3DA0006B936 /* cpp_binding_example.cc */, 825404F80D92E3DA0006B936 /* cpp_binding_example.h */, 825404FA0D92E3DA0006B936 /* cpp_bound_class.cc */, @@ -7734,6 +7754,8 @@ 8254052E0D92E3DA0006B936 /* simple_clipboard_impl.cc */, AB9552AD0F37AC0B0015C8FB /* stacking_order_iterator.cc */, 8254052F0D92E3DA0006B936 /* unittest_test_server.h */, + 9389E8330F55C4810035E7D0 /* webclipboard_impl.cc */, + 9389E8340F55C4810035E7D0 /* webclipboard_impl.h */, 825405300D92E3DA0006B936 /* webcursor.cc */, 825405310D92E3DA0006B936 /* webcursor.h */, 82F14D600ED230E700B36428 /* webcursor_mac.mm */, @@ -7757,11 +7779,11 @@ 825405420D92E3DA0006B936 /* webhistoryitem_impl.h */, 825405450D92E3DA0006B936 /* webinputevent.h */, 825405440D92E3DA0006B936 /* webinputevent_mac.mm */, + 9389E8350F55C4810035E7D0 /* webkit_client_impl.cc */, + 9389E8360F55C4810035E7D0 /* webkit_client_impl.h */, 825405470D92E3DB0006B936 /* webkit_glue.h */, 825405460D92E3DA0006B936 /* webkit_glue.cc */, 93AF57980F0198CD0073C62D /* webkit_glue_mac.mm */, - 825405480D92E3DB0006B936 /* webkit_resources.h */, - 825405490D92E3DB0006B936 /* webkit_resources.rc */, 8254054A0D92E3DB0006B936 /* webkit_strings.grd */, 8254054F0D92E3DB0006B936 /* webplugin.h */, 1459AC310DEBF6A597167F45 /* webplugin_delegate.cc */, @@ -7841,8 +7863,17 @@ 937A15B10F5331F7003E8D2D /* public */ = { isa = PBXGroup; children = ( + 9389E81F0F55C4110035E7D0 /* WebClipboard.h */, 937A15B40F533249003E8D2D /* WebCommon.h */, + 9389E8200F55C4110035E7D0 /* WebCString.h */, + 9389E8210F55C4110035E7D0 /* WebImage.h */, + 9389E8220F55C4110035E7D0 /* WebKit.h */, + 9389E8230F55C4110035E7D0 /* WebKitClient.h */, + 9389E8240F55C4110035E7D0 /* WebPoint.h */, + 9389E8250F55C4110035E7D0 /* WebRect.h */, + 9389E8260F55C4110035E7D0 /* WebSize.h */, 937A15B30F533232003E8D2D /* WebString.h */, + 9389E8270F55C4110035E7D0 /* WebURL.h */, ); name = public; sourceTree = "<group>"; @@ -7850,7 +7881,12 @@ 937A15B20F5331FB003E8D2D /* src */ = { isa = PBXGroup; children = ( + 9389E82A0F55C4550035E7D0 /* ChromiumBridge.cpp */, + 9389E82B0F55C4550035E7D0 /* WebCString.cpp */, + 9389E82C0F55C4550035E7D0 /* WebKit.cpp */, + 9389E82D0F55C4550035E7D0 /* WebKitPrivate.h */, 937A15B50F53325D003E8D2D /* WebString.cpp */, + 9389E82E0F55C4550035E7D0 /* WebURL.cpp */, ); name = src; sourceTree = "<group>"; @@ -8758,6 +8794,10 @@ buildActionMask = 2147483647; files = ( 937A16090F5332AB003E8D2D /* WebString.cpp in Sources */, + 9389E82F0F55C4550035E7D0 /* ChromiumBridge.cpp in Sources */, + 9389E8300F55C4550035E7D0 /* WebCString.cpp in Sources */, + 9389E8310F55C4550035E7D0 /* WebKit.cpp in Sources */, + 9389E8320F55C4550035E7D0 /* WebURL.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -9750,6 +9790,8 @@ E45626F40E268F03005E4685 /* webview_impl.cc in Sources */, E45626F30E268F03005E4685 /* webwidget_impl.cc in Sources */, ABF923090F3A388C009B64EC /* webplugin_delegate_impl_mac.cc in Sources */, + 9389E8370F55C4810035E7D0 /* webclipboard_impl.cc in Sources */, + 9389E8380F55C4810035E7D0 /* webkit_client_impl.cc in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; |