summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkit_glue.cc
Commit message (Collapse)AuthorAgeFilesLines
* Re-do r15244 again.darin@chromium.org2009-05-131-40/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally reviewed at http://codereview.chromium.org/100353 Eliminate webkit/glue/webhistoryitem* in favor of adding a NavigateBackForwardSoon method WebViewDelegate. This moves all of the hacky details of how we intercept "history.{back, forward,go}" into the webkit layer. My eventual plan is to teach WebCore how to make this not hacky. In this version of the CL, TestWebViewDelegate performs the back/forward navigation directly in NavigateBackForwardSoon instead of using PostTask to delay it. I'm doing this to minimize regressions so that I can hopefully get the rest of this CL landed. I also already made the changes to WebKit to force history. {back,forward,go} to be processed asynchronously. Finally, it was necessary to move DumpBackForwardList out of webkit_glue.cc since it was using itemAtIndex to generate those results, and now that we return synthetic URLs for that function, the results were very wrong. The fix is to move DumpBackForwardList into TestShell so that it can more directly inspect the TestNavigationController. Now, it is necessary for webkit_glue.h to expose a function to dump a content state string (aka a WebCore::HistoryItem). BUG=11423 R=mpcomplete Review URL: http://codereview.chromium.org/113328 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15997 0039d316-1c4b-4281-b951-d872f2087c98
* This CL updates chrome to the latest version of skia, retrieved via DEPS, andsenorblanco@chromium.org2009-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | placed in third_party. All relevant skia changes (for all 3 platforms) have been upstreamed. Most of this CL is mind-numbingly repetitive. Things of interest are: skia.gyp (now points at third_party versions), DEPS, and SkUserConfig.h. stdint.h: Skia now requires C99 integer types, which MSVC doesn't support natively. I have put typedefs in config/win/stdint.h. Note that the new version of skia appears to render rects whose coordinates are "backwards" (ie., x2 < x1 or y2 < y1), which were formerly culled. There were a couple obvious instances of this in the code which I fixed, but there may be more. There were ~35 layout test failures due to minor pixel differences which I rebaselined on Windows and Linux, and 8 genuine failures related to masks and stroked text, which I have put in text_expectations.txt and assigned to myself. (There was another change which broke ~1700 tests on each platform, but I put that change behind an #ifdef for now). R=brettw Review URL: http://codereview.chromium.org/65012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15949 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the triple click for the Mac.avi@google.com2009-05-121-1/+6
| | | | | | Review URL: http://codereview.chromium.org/99104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15877 0039d316-1c4b-4281-b951-d872f2087c98
* Move WebKit API to src/webkit/api.darin@chromium.org2009-05-101-1/+1
| | | | | | | | R=dglazkov Review URL: http://codereview.chromium.org/113186 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15739 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some unused code. Removes a couple of WebViewDelegate methodsdarin@chromium.org2009-04-181-21/+0
| | | | | | | | | | that should really just be public methods on TestWebViewDelegate. R=dglazkov Review URL: http://codereview.chromium.org/79080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14008 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit Merge 42580:42609, Chromium side.dglazkov@google.com2009-04-171-1/+1
| | | | | | | | | | | | | | | | Changes to ScriptController, glue due to http://trac.webkit.org/changeset/42583 Test rebaselines due to: * http://trac.webkit.org/changeset/42599 * http://trac.webkit.org/changeset/42583 * http://trac.webkit.org/changeset/42600 * http://trac.webkit.org/changeset/42586 R=levin Review URL: http://codereview.chromium.org/79038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13965 0039d316-1c4b-4281-b951-d872f2087c98
* Fix two nits that arrived after checkindkegel@google.com2009-04-161-3/+2
| | | | | | Review URL: http://codereview.chromium.org/67230 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13894 0039d316-1c4b-4281-b951-d872f2087c98
* Per Mark's request, add back the CPU type on Linuxdkegel@google.com2009-04-161-2/+20
| | | | | | | | | | | the way Firefox does it. While I've got your attention: how bad an idea would it be to (for nonofficial builds only) append 'r' and the svn revision number to the chrome version? Review URL: http://codereview.chromium.org/67146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13819 0039d316-1c4b-4281-b951-d872f2087c98
* Use Michael Moss's nice user agent code on Linux.dkegel@google.com2009-04-141-25/+45
| | | | | | | | | Also imitate some of Firefox's behavior with respect to 32-bit-on-64 bit apps. Review URL: http://codereview.chromium.org/67115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13705 0039d316-1c4b-4281-b951-d872f2087c98
* Use WebScriptSource and WebFindInPageRequest from the WebKit API.darin@chromium.org2009-03-311-0/+5
| | | | | | | | | | | | | | | | | | This change introduces some helper functions in glue_util.cc for efficient conversion between WebString and WebCore::String when inside the implementation of webkit/glue. This is a temporary change since eventually all code in glue that uses WebCore will be moved into the WebKit API implementation. Instead of making the Chrome automation use WebFindInPageRequest, I decided to introduce AutomationMsg_Find_Params as a copy of the old FindInPageRequest structure. That preserves the IPC protocol and avoids making the automation library depend on WebKit. R=dglazkov Review URL: http://codereview.chromium.org/57060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12881 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome-side of moving webkit/glue/cache_manager.{h,cc} to the WebKit API layer.darin@chromium.org2009-03-191-10/+5
| | | | | | | | | | | | | | This also includes a change to not have third_party/WebKit/WebKit/chromium/public in the global include path. Most of the code changes pertain to this. I also took this opportunity to do some renaming: browser/cache_manager_host -> browser/renderer_host/web_cache_manager R=brettw Review URL: http://codereview.chromium.org/42194 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12085 0039d316-1c4b-4281-b951-d872f2087c98
* Enable some code that compiles fine on linux now. This code talkstc@google.com2009-03-061-8/+0
| | | | | | | | | about the next merge and was written in September. Review URL: http://codereview.chromium.org/39281 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11170 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor v8 extensions so that they aren't in the WebCore namespace, and can ↵asargent@chromium.org2009-03-051-12/+0
| | | | | | | | | | | call functions in the rest of Chromium code without having to go through ChromiumBridge (which now lives upstream in the WebKit repository). R=darin,mbelshe Review URL: http://codereview.chromium.org/40132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11040 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes CRLF and trailing white spaces.maruel@chromium.org2009-03-051-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build bustage (take 2).darin@chromium.org2009-03-021-0/+1
| | | | | | | | TBR=mark Review URL: http://codereview.chromium.org/28343 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10749 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build bustage.darin@chromium.org2009-03-021-0/+1
| | | | | | | | TBR=mark Review URL: http://codereview.chromium.org/28342 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10748 0039d316-1c4b-4281-b951-d872f2087c98
* Minor cleanup in webkit/glue:darin@chromium.org2009-03-021-16/+18
| | | | | | | | | | | | | | | - created dom_operations_private.h for things that mention WebCore types that are only needed within webkit/glue. - moved contents of webkit_glue.h to the right locations. - moved FilePath::StringType <-> WebString conversion out of glue_util into webkit_glue since it is part of the public API. - minimized includes in webkit_glue.h R=dglazkov Review URL: http://codereview.chromium.org/27351 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10747 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome side to pick up new WebKit API changes.darin@chromium.org2009-02-281-15/+0
| | | | | | | | | | | | | | | | | | | | | WebKit API now provides: - layoutTestMode - support for registering extra local URL schemes - access to the current WebKitClient WebKitClient was extended to include: - access to the default locale - access to the current time - methods to start/stop the shared timer - method to get work scheduled on the main thread - methods to access cookies - method to prefetch hostnames R=dglazkov Review URL: http://codereview.chromium.org/27276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10665 0039d316-1c4b-4281-b951-d872f2087c98
* Recommit r10259 after successful try server run.jeremy@chromium.org2009-02-241-14/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10265 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r10259 & subsequent fixes.jeremy@chromium.org2009-02-241-4/+14
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10262 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for Sandboxed WebKit on OS X:jeremy@chromium.org2009-02-241-14/+4
| | | | | | | | | | * Cache Gestalt's value since it opens files. * Do a little cleanup in sys_info while I'm there and add a unit test. * Label some methods as not being threadsafe on OSX/POSIX. Review URL: http://codereview.chromium.org/27088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10259 0039d316-1c4b-4281-b951-d872f2087c98
* Lots of small nits to help to split off webkit.dll.maruel@chromium.org2009-02-121-21/+28
| | | | | | | | | - Stop directly referencing WebPluginDelegateImpl. - Make the password manager to not allocation the data on heap. - Remove some unneeded includes. Review URL: http://codereview.chromium.org/20208 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9692 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for UA spoofing, and spoof Safari's UA string when loading URLsdarin@chromium.org2009-01-271-12/+29
| | | | | | | | | | | from *.mail.live.com (to fix hotmail). BUG=4111 R=wtc Review URL: http://codereview.chromium.org/19025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8764 0039d316-1c4b-4281-b951-d872f2087c98
* Handle cases where the multipart boundary is improperly prefixed with "--".darin@chromium.org2008-12-221-0/+1
| | | | | | | | | | | The change to webkit_glue::InitializeForTesting is to make it possible to just run the multipart tests using --gtest_filter. R=tony BUG=5786 Review URL: http://codereview.chromium.org/16420 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7364 0039d316-1c4b-4281-b951-d872f2087c98
* Remove a layout-test-only font-fallback path.ericroman@google.com2008-11-261-38/+0
| | | | | | | | | | | The net impact is that "times new roman" is fallen back to instead of "Times" for a couple of layout tests. Overall this affects 9 tests. 6 have been rebased, and 3 marked as expected fail (since am uncertain of their correctness). This also removes some dead code relating to IMLangFontLink. Review URL: http://codereview.chromium.org/12457 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6048 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure threading is initialized when running test_shell_testsojan@google.com2008-11-251-0/+4
| | | | | | | so the order they're run in doesn't matter. Review URL: http://codereview.chromium.org/12627 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5975 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on logging of notImplemented()s inside WebCore for test_shell.evanm@google.com2008-11-191-0/+4
| | | | | | | Review URL: http://codereview.chromium.org/11259 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5668 0039d316-1c4b-4281-b951-d872f2087c98
* Add GCController support to test_shell.fqian@google.com2008-11-141-0/+7
| | | | | | | | | | | | | | | | | This is done in the binding layer, GCController is a JS object, GCController.collect() is a JS function which calls gc(). GCController object can be enabled by calling ScriptController::setShouldExposeGCController(true); GCController.collect() needs V8 expose gc function, which is controlled by a flag '--expose-gc'. Otherwise GCController.collect() has no effect. By default, test_shell exposes both gc function and GCController object. Review URL: http://codereview.chromium.org/10719 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5482 0039d316-1c4b-4281-b951-d872f2087c98
* Changed the DumpFramesAsText() to not dump anything about a frame if it is ↵sgjesse@chromium.org2008-11-101-2/+3
| | | | | | | | | empty (has no root element). This matches the WebKit version function dumpFramesAsText in WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp, see http://trac.webkit.org/browser/trunk/WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp?rev=34719#L306. This fixes layout test LayoutTests/http/tests/security/cross-origin-xsl-BLOCKED.html as it expects a totally empty iframe. Review URL: http://codereview.chromium.org/10003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5099 0039d316-1c4b-4281-b951-d872f2087c98
* Takes steps to make our PlatformScreen implementation more portable.darin@chromium.org2008-10-311-8/+0
| | | | | | | | | | | | | | | | | | Introduces ChromiumBridge as a means for our WebCore port to depend on the embedder indirectly. This will be extended to support the rest of our port. WebWidgetImpl and ChromeClientImpl both needed to have their platformWindow getter implemented. This fixes a regression related to the most recent merge. Removes the orphaned Language.cpp (see the real one in the platform/chromium directory. Changed webkit_glue::GetMonitorInfoForWindow to webkit_glue::GetScreenInfo. This resulted in a varied amount of plumbing changes. It also pushes the platform specific bits up into the browser where they belong. ScreenInfo is a struct that is part of the webkit/glue API. R=dglazkov,eseidel Review URL: http://codereview.chromium.org/8761 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4335 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to using the message loop rather than gtk_main().agl@chromium.org2008-10-301-0/+9
| | | | | | | | | | | Include more code from the main test_shell.cc into the GTK version. Wherever possible the code has been copied and pasted in directly to make the future merge easy. Review URL: http://codereview.chromium.org/8670 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4255 0039d316-1c4b-4281-b951-d872f2087c98
* This is a patch for bug 1385045: Adobe Acrobat 9.0 crash.nsylvain@chromium.org2008-10-221-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adobe Acrobat 9.0 loads a dll called bib.dll. Usually it unloads it 30 seconds after the last instance of the plugin goes away, or when the browser process goes away. To know if the browser process goes away, it subclasses the main browser window. It seems to work fine in firefox, but it does not work in chrome. Also the 30 seconds delay does not work because we close the plugin process too fast (10 seconds) after the last instance of the plugin is closed. bib.dll is then unloaded by ExitProcess, which causes a crash in bib.dll. We could wait ~35 seconds after the last instance before closing the process, but it might be problematic with upgrades and could result in plugin process outliving the brower process. This current patch just kills the process before ExitProcess, so it does not cause a crash and display an error message to the user. This is not a fix, this is just a usuability improvement. As far as I know we are still waiting for help from the Adobe team on this issue. They would need to find a way to unload bib.dll cleanly in chrome. BUG: 1385045 Review URL: http://codereview.chromium.org/8015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3753 0039d316-1c4b-4281-b951-d872f2087c98
* Fixup some JSC compile errors for glue.mbelshe@google.com2008-10-201-2/+2
| | | | | | | | Implement BindToWindowObject for JSC. Review URL: http://codereview.chromium.org/7673 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3628 0039d316-1c4b-4281-b951-d872f2087c98
* Move many files that were suffixed Win.cpp to Chromium.cpp, and place them ↵darin@chromium.org2008-10-151-2/+0
| | | | | | | | | | | in chromium/ subdirectories. We still build these files with PLATFORM(WIN) defined. In this change, I also killed off LogWin.{h,cpp} since we don't use it. So, you will see some changes related to that. R=dglazkov,tony Review URL: http://codereview.chromium.org/7419 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3427 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for a memory leak.jcampan@chromium.org2008-10-081-3/+3
| | | | | | | | BUG=None TEST=Run with Purify. Review URL: http://codereview.chromium.org/6055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3011 0039d316-1c4b-4281-b951-d872f2087c98
* Merge the chrome_webkit_merge_branch back on to trunk. This brings ustc@google.com2008-10-011-15/+18
| | | | | | | up to webkit@36102. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2778 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command-line switch to change the user agent.BUG=757345pkasting@chromium.org2008-09-241-49/+66
| | | | | | Review URL: http://codereview.chromium.org/4059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2571 0039d316-1c4b-4281-b951-d872f2087c98
* turn on user agent code for macpinkerton@google.com2008-09-231-1/+1
| | | | | | Review URL: http://codereview.chromium.org/4213 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2492 0039d316-1c4b-4281-b951-d872f2087c98
* Unignore most warnings on POSIX in build/SConscript.main.evanm@google.com2008-09-161-2/+3
| | | | | | | | | BUG=2053 Patch from Paweł Hajdan jr <phajdan.jr@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2272 0039d316-1c4b-4281-b951-d872f2087c98
* stub out win-only routines and impl user agent for MacOS Xpinkerton@google.com2008-09-091-2/+23
| | | | | | Review URL: http://codereview.chromium.org/262 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1904 0039d316-1c4b-4281-b951-d872f2087c98
* Just compile some basic files so we get a libGlue.a.evanm@google.com2008-09-071-1/+20
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1829 0039d316-1c4b-4281-b951-d872f2087c98
* Remove last minute #define and change UA string to Chromemal@google.com2008-09-021-2/+2
| | | | | | | | | on trunk. BUG=1431137 TBR= darin@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1625 0039d316-1c4b-4281-b951-d872f2087c98
* Use a more compact license header in source files.license.bot2008-08-241-28/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1287 0039d316-1c4b-4281-b951-d872f2087c98
* Use %ls instead of %s in wprintf format strings for wchar_t fields.mmentovai@google.com2008-08-141-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
* Pull the major and minor webkit version numbers from ↵erikkay@google.com2008-08-041-3/+13
| | | | | | WebCore/Configurations/Version.xcconfig and generate a header file that allows us to keep our user agent info up to date. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@334 0039d316-1c4b-4281-b951-d872f2087c98
* Add webkit to the repository.initial.commit2008-07-271-0/+399
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18 0039d316-1c4b-4281-b951-d872f2087c98