summaryrefslogtreecommitdiffstats
path: root/webkit/glue
Commit message (Collapse)AuthorAgeFilesLines
* Fix an issue found by purify with my previous submission.michaeln@google.com2009-04-081-0/+2
| | | | | | Review URL: http://codereview.chromium.org/62122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13324 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to using WebDragData in WebView and WebViewDelegate.darin@chromium.org2009-04-0718-214/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | I also cleaned up some of the WebView and WebViewDelegate methods to pass WebPoint instead of pairs of ints or gfx::Point. With this change, I am keeping webkit/glue/webdropdata.{h,cc}, which is what Chrome uses to pass around the equivalent data. Now, it is possible to construct a WebDropData from a WebKit::WebDragData and to also get a WebKit::WebDragData from a WebDropData. Hence, the conversion between WebDropData and ChromiumDataObject (see clipboard_conversion.{h,cc}) is now removed in favor of conversion between WebDropData and WebKit::WebDragData. Conversion between WebKit::WebDragData and WebCore::ChromiumDataObject is very cheap (just reference counting). Finally, this change also brings in WebData, which is now used by the return value of WebKitClient::loadResource. As a companion to that change, I also changed webkit_glue::GetDataResource to return StringPiece instead of std::string. That also saves on an unnecessary buffer copy. R=dglazkov Review URL: http://codereview.chromium.org/63084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13305 0039d316-1c4b-4281-b951-d872f2087c98
* Adds new messages and widens some existing messages between the renderer and ↵michaeln@google.com2009-04-0712-5/+207
| | | | | | | | browser processes to support an implementation of the HTML5AppCache spec with most of the logic running in the browser process. The gist of most of the changes are to indicate which frame each resource request is coming from, and to indicate which appcache each response was retrieved from (if any).See https://docs.google.com/a/google.com/Doc?docid=agv6ghfsqr_15f749cgt3&hl=en Review URL: http://codereview.chromium.org/9712 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13258 0039d316-1c4b-4281-b951-d872f2087c98
* Switching things to FilePath:phajdan.jr@chromium.org2009-04-0710-58/+67
| | | | | | | | | | | | | | | | Remove following deprecated wstring-using functions: net/net_util: FilePathToFileURL net/net_util: FileURLToFilePath Switch net/base/upload_data to FilePath. Switch upload-related parts of net/url_request/url_request to FilePath. Made necessary adjustments in rest of code (a lot). Review URL: http://codereview.chromium.org/63011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13242 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: add basic console support.pfeldman@chromium.org2009-04-077-37/+132
| | | | | | Review URL: http://codereview.chromium.org/62050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13240 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: more windowless plugin work.evan@chromium.org2009-04-061-78/+73
| | | | | | | | | | - Try not to pass the entire drawing buffer through X and back -- instead, just the region covered by the windowless plugin. - Pass through some events (just hits a later NOTIMPLEMENTED()). Review URL: http://codereview.chromium.org/56160 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13184 0039d316-1c4b-4281-b951-d872f2087c98
* Stop serializing WebString over IPC. The new rule is that only POD (plain olddarin@chromium.org2009-04-063-35/+51
| | | | | | | | | | | | | data) types from WebKit API are allowed to be used in the browser process. I added a big note about this to webkit_param_traits.h to explain the details of this decision. R=dglazkov Review URL: http://codereview.chromium.org/62032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13181 0039d316-1c4b-4281-b951-d872f2087c98
* First pass of refactoring dialogs.avi@chromium.org2009-04-061-1/+2
| | | | | | Review URL: http://codereview.chromium.org/60110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13168 0039d316-1c4b-4281-b951-d872f2087c98
* Roll out dominantScript, getGenericFontFamily patches to unfork a bunch of ↵dglazkov@google.com2009-04-061-2/+1
| | | | | | | | | | | files, Chromium side. R=jshin BUG=9768 Review URL: http://codereview.chromium.org/60058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13157 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Glue part for the 'attach early' functionality.pfeldman@chromium.org2009-04-065-30/+62
| | | | | | | | | - Establish 2 main scenarios for attach: 'attach to live' and 'start attached' - Make WebFrameLoaderImpl call setMainFrameDocumentReady only for main frame document. Review URL: http://codereview.chromium.org/62038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13154 0039d316-1c4b-4281-b951-d872f2087c98
* Callbacks through ChromeClient->RenderView->RenderViewHost for ↵rafaelw@chromium.org2009-04-046-1/+29
| | | | | | | | ContentsDidChangeSize so that extensions can change their toolbar size when the contained contents changes size. Review URL: http://codereview.chromium.org/56122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13130 0039d316-1c4b-4281-b951-d872f2087c98
* Fix potential crash when multiple workers try to start at the same time. In ↵jianli@chromium.org2009-04-031-0/+18
| | | | | | | | our worker processs, we do not run any WebKit code in main thread. Thus when multiple workers try to start at the same time, we might hit crash due to contention for initializing static values. The fix is to do the initialization first in main thread of worker process. Review URL: http://codereview.chromium.org/60099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13125 0039d316-1c4b-4281-b951-d872f2087c98
* - Added support for keeping track of load times.davemoore@chromium.org2009-04-037-34/+154
| | | | | | | | | | | | | | | | | For each document loaded we record the time the page was requested by the user (or as close as we can get to that), the time the load process started, the time the document and it's dependent resources (scripts) have been loaded (before onload()) and the time all the document's resources have been loaded. We use this data for two things: 1) We histogram the deltas between the time marks 2) We expose the times to javascript running on the page which was loaded Review URL: http://codereview.chromium.org/42527 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13116 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit merge 42132:42199 (Chrome side)darin@chromium.org2009-04-031-3/+4
| | | | | | | | | | Account for a FrameLoader method that was renamed. R=amanda Review URL: http://codereview.chromium.org/62011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13095 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unneeded uses of base/pickle.h. Add some explicit #includes.thestig@chromium.org2009-04-031-1/+0
| | | | | | Review URL: http://codereview.chromium.org/60095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13093 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Scope pane is populated with local variables, arguments and 'this' object ↵yurys@google.com2009-04-033-52/+231
| | | | | | | | | for each call frame. These are only data we can extract from 'backtrace' response for now. It will be improved once we extend the debugger protocol. 2. Created descendants of ObjectPropertiesSection and ObjectPropertyTreeElement for Elements panel. This way we avoid conflicts with Scripts panel which uses same classes but with data represented in a different format. Review URL: http://codereview.chromium.org/62003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13081 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Use string literals when encoding messages.pfeldman@chromium.org2009-04-033-124/+89
| | | | | | Review URL: http://codereview.chromium.org/62002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13078 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: fixes for crashes / bugs while debugging calendar.google.com.pfeldman@chromium.org2009-04-037-114/+180
| | | | | | Review URL: http://codereview.chromium.org/60051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13077 0039d316-1c4b-4281-b951-d872f2087c98
* Don't call NPP_StreamAsFile on the plugin, if the stream is being closed due ↵ananta@chromium.org2009-04-031-1/+2
| | | | | | | | | | | | | to an error, i.e. due to a user break or a network error. This causes the FoxIt reader plugin to crash. Fixes bug http://code.google.com/p/chromium/issues/detail?id=9539 Bug=9539 Review URL: http://codereview.chromium.org/56206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13075 0039d316-1c4b-4281-b951-d872f2087c98
* A workaround fix for Issue 9186.hbono@chromium.org2009-04-031-0/+6
| | | | | | | | | This crash is caused in a unnecessary check whether or not to add a "text direction" submenu to a context menu. Since we don't have a "text direction" submenu and this check is unnecessary now, this change set a page setting that disables this check. BUG=9186 Review URL: http://codereview.chromium.org/42690 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13072 0039d316-1c4b-4281-b951-d872f2087c98
* An empty MIME type doesn't match any plugin, no matter what they may claim.pam@chromium.org2009-04-021-1/+1
| | | | | | | | | | BUG=9549 TEST=install Silverlight, 'run_webkit_tests.sh --force LayoutTests/webarchive/loading', see no crashes (timeouts are OK) Review URL: http://codereview.chromium.org/60021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13051 0039d316-1c4b-4281-b951-d872f2087c98
* Only create one downloads tab per window. If there is already a Downloadsestade@chromium.org2009-04-021-3/+4
| | | | | | | | | | tab, then switch to it instead of creating new one. Introduce FOCUS_SINGLETON_TAB disposition. patch by Mohamed Mansour <http://codereview.chromium.org/50003/show> Review URL: http://codereview.chromium.org/60062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13045 0039d316-1c4b-4281-b951-d872f2087c98
* Paste from the x clipboard into webkit.estade@chromium.org2009-04-024-1/+41
| | | | | | Review URL: http://codereview.chromium.org/51008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13031 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: beautify debugger script list.pfeldman@chromium.org2009-04-021-1/+11
| | | | | | Review URL: http://codereview.chromium.org/56181 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13018 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: add missing changes to the js file (from the ↵pfeldman@chromium.org2009-04-021-7/+31
| | | | | | | | http://codereview.chromium.org/60047). Review URL: http://codereview.chromium.org/60050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13017 0039d316-1c4b-4281-b951-d872f2087c98
* Fix tests that depend on setCustomPolicyDelegate and waitForPolicyDelegate.darin@chromium.org2009-04-023-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes: 1- Need to support a second parameter to setCustomPolicyDelegate that controls whether subsequent loads are permitted or not. Previously, we would always deny any subsequent loads. 2- Need to change the string that we produce when writing out the URL that is impacted by a custom policy delegate. We need to write out only the filename part of the URL. (We need to do this only for file:// URLs.) 3- Add LayoutTestController::waitForPolicyDelegate and corresponding method on TestWebViewDelegate. 4- Improve the way we reset the TestWebViewDelegate. Now, instead of having support for reseting individual fields, we just reallocate the delegate. This requires adding a SetDelegate method to WebView. BUG=9582 R=dglazkov Review URL: http://codereview.chromium.org/56169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13014 0039d316-1c4b-4281-b951-d872f2087c98
* Added trivial exception event handler that prints message to the Console and ↵yurys@google.com2009-04-021-0/+13
| | | | | | | | resumes the script execution. Review URL: http://codereview.chromium.org/59005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13010 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Add support for r/o CSS inspection. Original review CL by serya : ↵pfeldman@chromium.org2009-04-026-44/+377
| | | | | | | | http://codereview.chromium.org/57007 Review URL: http://codereview.chromium.org/60047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13009 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: add support for provisional load tracking.pfeldman@chromium.org2009-04-027-60/+117
| | | | | | Review URL: http://codereview.chromium.org/56149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13008 0039d316-1c4b-4281-b951-d872f2087c98
* Debugger output is now handled on the render thread.yurys@google.com2009-04-021-1/+4
| | | | | | Review URL: http://codereview.chromium.org/60013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13007 0039d316-1c4b-4281-b951-d872f2087c98
* Replace webkit/glue/screen_info.h with WebKit/chromium/public/WebScreenInfo.hdarin@chromium.org2009-04-0110-200/+45
| | | | | | | | | | | | | This also eliminates webkit_glue::GetScreenInfo and webkit_glue::GetScreenInfoHelper. As part of this CL, I also extracted all of the ParamTraits for WebKit API types into chrome/common/webkit_param_traits.h. R=dglazkov Review URL: http://codereview.chromium.org/58008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12993 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the checked-in scons configuration files.sgk@google.com2009-04-012-256/+0
| | | | | | Review URL: http://codereview.chromium.org/53121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12982 0039d316-1c4b-4281-b951-d872f2087c98
* Context menu on RMB-down, not up, on Linux.evan@chromium.org2009-04-011-3/+9
| | | | | | Review URL: http://codereview.chromium.org/60017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12963 0039d316-1c4b-4281-b951-d872f2087c98
* Switch the new tab key to command on the Mac. Popping new tabs still doesn't ↵avi@google.com2009-04-011-3/+7
| | | | | | | | | | work, but this is a step. BUG=9417 Review URL: http://codereview.chromium.org/56150 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12956 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Supported removal of breakpoints from UI.yurys@google.com2009-04-015-5/+138
| | | | | | | | | 2. Fixed bug in resume debugger functionality. 3. Implemented pause in debugger. 4. Removed deprecated messages and their handlers. Review URL: http://codereview.chromium.org/60012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12952 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Support r/o properties inspection.pfeldman@chromium.org2009-04-0115-32/+396
| | | | | | Review URL: http://codereview.chromium.org/56067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12949 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Mac build break.jam@chromium.org2009-04-011-1/+1
| | | | | | Review URL: http://codereview.chromium.org/56137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12931 0039d316-1c4b-4281-b951-d872f2087c98
* Port plugin messages.jam@chromium.org2009-04-0111-93/+82
| | | | | | Review URL: http://codereview.chromium.org/49050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12928 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enabling ENABLE_VIDEO since and made appropriate changes due toWebKit ↵hclam@chromium.org2009-03-314-56/+96
| | | | | | | | merge since r41907 (http://trac.webkit.org/changeset/41907).Changes include change names of state enums and adding method tosupport added state change event in WebCore::MediaPlayer. Review URL: http://codereview.chromium.org/56038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12917 0039d316-1c4b-4281-b951-d872f2087c98
* Use WebConsoleMessage instead of ConsoleMessageLevel.darin@chromium.org2009-03-315-1009/+992
| | | | | | | | R=dglazkov Review URL: http://codereview.chromium.org/57073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12916 0039d316-1c4b-4281-b951-d872f2087c98
* Use WebScriptSource and WebFindInPageRequest from the WebKit API.darin@chromium.org2009-03-319-102/+100
| | | | | | | | | | | | | | | | | | 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
* Update our webframe_impl to use loadURLIntoChildFrame().playmobil@google.com2009-03-311-31/+4
| | | | | | Review URL: http://codereview.chromium.org/57061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12867 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome side of WebKit merge 42026:42115playmobil@google.com2009-03-314-2/+4
| | | | | | Review URL: http://codereview.chromium.org/57033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12861 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Allow to add breakpoints using Scripts panel.yurys@google.com2009-03-313-35/+353
| | | | | | | 2. Support step in/step out/step over/resume actions in Scripts panel. Review URL: http://codereview.chromium.org/56108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12855 0039d316-1c4b-4281-b951-d872f2087c98
* Reland changes to enable worker layout tests. Compared to last review ↵jianli@chromium.org2009-03-302-3/+10
| | | | | | | | | | | (http://codereview.chromium.org/50045), the following changes are made: 1) Add chrome/test/worker/DEPS to address checkdeps error. 2) Change test_expectations.txt to skip some worker layout tests. 3) Add test_worker.vcproj to webkit.sln so that test_worker.dll can be built for WebKit build. Review URL: http://codereview.chromium.org/56074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12822 0039d316-1c4b-4281-b951-d872f2087c98
* Enable running webkit tests in parallel and make it useojan@google.com2009-03-304-12/+13
| | | | | | | | | | | | | | | | | | | | the number of cpus as the default number of test_shells to spawn. This involved ignoring focus/blur messages and mocking out the clipboard. The test_shell window still sometimes seems to get focus, so there's still a bit more work to do, but the tests seem to all pass. We still default to 1 test_shell at a time. Once I get this committed, I'll try multiple. I just don't want to have to rollback this whole thing. Review URL: http://codereview.chromium.org/56040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12821 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Added 'scripts' command response handler that populates Scripts panel ↵yurys@google.com2009-03-303-64/+71
| | | | | | | | | with script sources. 2. Modify WebDevToolsClientImpl::JsAddSourceToFrame so that it returns false when fails. Review URL: http://codereview.chromium.org/56058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12769 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: support null callbacks in the frontend, encapsulate node ids.pfeldman@chromium.org2009-03-303-8/+5
| | | | | | Review URL: http://codereview.chromium.org/57004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12768 0039d316-1c4b-4281-b951-d872f2087c98
* Fix devtools tests.pfeldman@chromium.org2009-03-301-2/+2
| | | | | | Review URL: http://codereview.chromium.org/56057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12766 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Implement basic DOM edit operations.pfeldman@chromium.org2009-03-3011-253/+537
| | | | | | Review URL: http://codereview.chromium.org/56005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12765 0039d316-1c4b-4281-b951-d872f2087c98