summaryrefslogtreecommitdiffstats
path: root/webkit/glue
Commit message (Collapse)AuthorAgeFilesLines
* linux: add windowless plugin plumbingpiman@google.com2009-07-222-8/+10
| | | | | | | Review URL: http://codereview.chromium.org/159128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21250 0039d316-1c4b-4281-b951-d872f2087c98
* Creating a unique user-agent string for ChromeOS builds, so that metrics can ↵evan@chromium.org2009-07-221-2/+9
| | | | | | | | | be aggregated separately from standard Chrome on Linux Review URL: http://codereview.chromium.org/155101 Patch from Chris Masone <cmasone@google.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21247 0039d316-1c4b-4281-b951-d872f2087c98
* Fix another d&d crash that happens when the tab contentstc@google.com2009-07-211-3/+6
| | | | | | | | | | | | | | | | is swapped out while a drag is happening. Since the tab contents is swapped out, our RVH that the drag started on is no longer valid. Simply null out the pointer and no longer try to send feedback to the drag source. This allows the user to continue the drag even though the source RVH is gone. BUG=16073 Review URL: http://codereview.chromium.org/159040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21187 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: mute accidental refresh requests while on DevTools window.pfeldman@chromium.org2009-07-211-0/+13
| | | | | | | | BUG=12956 Review URL: http://codereview.chromium.org/159132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21177 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools Profiler: small UI improvements.mnaganov@chromium.org2009-07-212-2/+36
| | | | | | | | | | | | - if profile is generated, and no profile is shown, show the new one; - display processed ticks count during processing to show that we're alive. BUG=none TEST=none Review URL: http://codereview.chromium.org/159135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21176 0039d316-1c4b-4281-b951-d872f2087c98
* Enable DOM_STORAGE in our build. Put LocalStorage and SessionStorage behind ↵jorlow@chromium.org2009-07-212-0/+6
| | | | | | | | their own flags. Add the beginnings of StorageNamespaceProxy since it implements WebCore::StorageNamespace::____StorageNamespace and we'd get link errors otherwise.--enable-local-storage and --enable-session-storage are the new flags. If you enable them and try to use DOM Storage, Chromium will crash.Originally Committed in http://src.chromium.org/viewvc/chrome?view=rev&revision=21059 but then backed out due to include path issues.BUG=4360TEST=none Review URL: http://codereview.chromium.org/159059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21157 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Make splitters move while dragged over iframes.pfeldman@chromium.org2009-07-201-0/+23
| | | | | | | BUG=16608 Review URL: http://codereview.chromium.org/159080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21082 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: remember variable tree expansion state while debugging.pfeldman@chromium.org2009-07-202-4/+24
| | | | | | | | BUG=17233 Review URL: http://codereview.chromium.org/155770 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21074 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Fix debugPrint to work via new Console API.pfeldman@chromium.org2009-07-201-1/+4
| | | | | | Review URL: http://codereview.chromium.org/155767 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21073 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Use Chrome's colors for DevTools toolbar.pfeldman@chromium.org2009-07-201-0/+6
| | | | | | Review URL: http://codereview.chromium.org/155766 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21072 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Disable dock action on Mac OS since it is not yet implemented.pfeldman@chromium.org2009-07-201-0/+3
| | | | | | | | BUG=15936 Review URL: http://codereview.chromium.org/155765 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21071 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 21059.jorlow@chromium.org2009-07-182-6/+0
| | | | | | Review URL: http://codereview.chromium.org/159056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21060 0039d316-1c4b-4281-b951-d872f2087c98
* Enable DOM_STORAGE in our build. Put LocalStorage and SessionStorage behind ↵jorlow@chromium.org2009-07-182-0/+6
| | | | | | | | | | | | | their own flags. Add the beginnings of StorageNamespaceProxy since it implements WebCore::StorageNamespace::____StorageNamespace and we'd get link errors otherwise. --enable-local-storage and --enable-session-storage are the new flags. If you enable them and try to use DOM Storage, Chromium will crash. BUG=4360 TEST=none Review URL: http://codereview.chromium.org/149792 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21059 0039d316-1c4b-4281-b951-d872f2087c98
* Added reference counting to the Pipeline interface.scherkus@chromium.org2009-07-182-2/+2
| | | | | | | | | BUG=17107 TEST=none Review URL: http://codereview.chromium.org/155713 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21044 0039d316-1c4b-4281-b951-d872f2087c98
* Spellcheck should not only work if the element is contentEditable, it should ↵jparent@chromium.org2009-07-181-6/+4
| | | | | | | | | | also work if the document is in designMode. WebKit has an helper function to check if something is editable in any way (and properly excludes things like read only text areas), so use that here instead of our home grown check. Note that this code defaults text inputs to not be spell checkable, which is preserving the current behavior. BUG=14870 TEST=Will commit a WebKit LayoutTest for this after I check this in. Review URL: http://codereview.chromium.org/155611 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21034 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a memory leak found by Valgrind.evan@chromium.org2009-07-181-6/+11
| | | | | | | | | | | See https://developer.mozilla.org/en/NPN_GetProperty for doc on proper use of NPN_GetProperty. BUG=9515 Review URL: http://codereview.chromium.org/155730 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21027 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash in plugin handling. The code was destroying the passed-in cairo_t,brettw@chromium.org2009-07-171-1/+0
| | | | | | | | which I broke when I changed the argument to cairo_t from a raw surface, and removed the extra surface creation. Review URL: http://codereview.chromium.org/155727 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21020 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed FilterHost::Error() and Pipeline::GetTime() to more appropriate names.scherkus@chromium.org2009-07-172-3/+3
| | | | | | | | | BUG=17107 TEST=none Review URL: http://codereview.chromium.org/155711 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21013 0039d316-1c4b-4281-b951-d872f2087c98
* Land Anton's change to cast from v8::Value to v8::Object beforeager@chromium.org2009-07-171-2/+4
| | | | | | | | | | | converting a wrapper to a native Node pointer in devtools. BUG=none TEST=none Review URL: http://codereview.chromium.org/159003. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21002 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 20516 by re-landing this previous patch.brettw@chromium.org2009-07-171-10/+10
| | | | | | | | | | | | | Keep the cairo clipping region in sync with the Skia one. The PlatformCanvas now tracks this, so we don't need to have the similar code in gfx::Canvas. I moved most references of cairo_surface_t to cairo_t since the cairo_t has a transform and clip but the surface does not. Review URL: http://codereview.chromium.org/149409 Review URL: http://codereview.chromium.org/155700 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20992 0039d316-1c4b-4281-b951-d872f2087c98
* linux: obey standard system paths for pluginsevan@chromium.org2009-07-171-3/+20
| | | | | | | | | | | | This logic comes from carefully reading what Mozilla does. We're still behind the flag --enable-plugins so this won't turn on plugins for users anymore. BUG=15504 Review URL: http://codereview.chromium.org/155594 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20963 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebLocalizedString and queryLocalizedString methodsdarin@chromium.org2009-07-176-202/+87
| | | | | | | | | | | | | on WebKitClient. This allows glue/localized_strings.cc to move into the WebKit API implementation. BUG=16933 TEST=none R=dglazkov Review URL: http://codereview.chromium.org/149760 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20938 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unintended addition of a forward delcaration for WebWidget.ajwong@chromium.org2009-07-171-1/+0
| | | | | | Review URL: http://codereview.chromium.org/149789 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20932 0039d316-1c4b-4281-b951-d872f2087c98
* Begin implementation of the context menu for Video and Audio tags.ajwong@chromium.org2009-07-175-11/+105
| | | | | | | | | | | This code should enable the creation of a basic context menu for the Video and Audio tags. The actions for fullscreen, save screenshot, loop, and set playback rate are not yet implemented. BUG=15686 TEST=None Review URL: http://codereview.chromium.org/149604 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20931 0039d316-1c4b-4281-b951-d872f2087c98
* WebFrameImpl::GetSelection(): Replace NBSPs with spaces.estade@chromium.org2009-07-161-1/+7
| | | | | | | | | | | Also, on windows, replace new lines with window style new lines. This call is just there to match Pasteboard::writeSelection(), since AFAICT WebFrameImpl::GetSelection() is never used on any platform besides linux. BUG=16926 TEST=see bug Review URL: http://codereview.chromium.org/155650 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20920 0039d316-1c4b-4281-b951-d872f2087c98
* Enable isolated worlds for content scripts.abarth@chromium.org2009-07-163-4/+24
| | | | | | | | | | R=aa TEST=LayoutTests/http/tests/security/isolatedWorld/ (will be landing soon after this patch) BUG=12218 Review URL: http://codereview.chromium.org/155626 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20883 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify window_open_disposition.cc since we only require conversion fromdarin@chromium.org2009-07-162-30/+15
| | | | | | | | | | | | | WebNavigationPolicy. This is cleanup from the WebWidget patch that you reviewed yesterday. TEST=none BUG=none R=dglazkov Review URL: http://codereview.chromium.org/155637 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20874 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Make 'toggle node search' mode work.pfeldman@chromium.org2009-07-165-10/+37
| | | | | | | BUG=16824 Review URL: http://codereview.chromium.org/155639 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20873 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 20855.darin@chromium.org2009-07-1619-618/+487
| | | | | | Review URL: http://codereview.chromium.org/149744 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20859 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 20854.darin@chromium.org2009-07-1619-487/+618
| | | | | | Review URL: http://codereview.chromium.org/155621 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20855 0039d316-1c4b-4281-b951-d872f2087c98
* Use WebWidget from the WebKit API. This change also makesdarin@chromium.org2009-07-1619-618/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use of WebKitClient (replacing WebWidgetDelegate from glue). The ripple effects of this change are rather large, but most of the impact is mechanical. The more interesting changes include: 1- Removing the WebWidget parameter from WebWidgetClient methods. This didn't matter at all to RenderWidget or RenderView, but it did cause some changes to be made to TestWebViewDelegate. Now, it is not possible to share a delegate implementation for both the WebView and a popup menu, so I have a second instance of the delegate owned by TestShell for use with popup menus. 2- Plumbing WebNavigationPolicy in place of WindowOpenDisposition was getting to be a pretty large change, so I stopped short of deleting WindowOpenDisposition. That way the Chrome side can remain mostly unmodified. I then added a mapping function to convert from WebNavigationPolicy to WindowOpenDisposition. 3- The IME methods on WebWidget were renamed (reviewed separately by hbono), and there is now an enum to specify the composition command (WebCompositionCommand). 4- I added IPC serialization for WebCompositionCommand and WebTextDirection, which cleaned up some code that was just using ints in IPC messages. R=jam BUG=16234 TEST=none Review URL: http://codereview.chromium.org/149620 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20854 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid dereferencing uninitialized pointers.cevans@chromium.org2009-07-162-6/+49
| | | | | | | | | | | | Thanks to "The Mighty Hoppy" for requesting a browser crash investigation. BUG=NONE TEST=GlueSerializeTest.BadMessagesTest TBR=cpu Review URL: http://codereview.chromium.org/149738 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20849 0039d316-1c4b-4281-b951-d872f2087c98
* Adding callback support to media filter Initialize() and Seek().scherkus@chromium.org2009-07-162-12/+21
| | | | | | | | | | | | | Also includes unit tests for AudioRendererBase and VideoRendererBase. I had to rollback my first attempt at this change. Original review: http://codereview.chromium.org/155469 BUG=16014,16031 TEST=media_unittests, layout tests Review URL: http://codereview.chromium.org/155608 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20836 0039d316-1c4b-4281-b951-d872f2087c98
* Removed extraneous call to the now depreacted WebCore::parseURL().japhet@chromium.org2009-07-151-3/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/149707 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20804 0039d316-1c4b-4281-b951-d872f2087c98
* Reenable content script messaging test.mpcomplete@chromium.org2009-07-151-4/+0
| | | | | | | | | | | Remove temporary change now that webkit DEPS roll landed. TEST=no BUG=16228 Review URL: http://codereview.chromium.org/149655 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20755 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: provisional commit for new WebInspector's 'last opened panel' change.pfeldman@chromium.org2009-07-155-2/+36
| | | | | | Review URL: http://codereview.chromium.org/149613 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20751 0039d316-1c4b-4281-b951-d872f2087c98
* Removed the bool parameter from PipelineCallback and cleaned up ↵scherkus@chromium.org2009-07-152-106/+73
| | | | | | | | | | | | | WebMediaPlayerImpl::Proxy. This forces clients to check Pipeline::GetError() instead of using a simple true/false check for success. Also the bool parameter wasn't being used for Seek() and Stop() callbacks, further hinting at its removal. BUG=16009 TEST=media_unittests pass, layout tests pass Review URL: http://codereview.chromium.org/149584 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20738 0039d316-1c4b-4281-b951-d872f2087c98
* linux: destroy browser-side plugin windows on plugin crashevan@chromium.org2009-07-151-0/+1
| | | | | | | | | | | | | | | | Because the plugin windows must be destroyed by the UI thread, we store the map of plugin PID -> plugin windows there, on the RenderWidgetHostView. This differs slightly from Windows, where the map is stored on the PluginProcessHost, but is otherwise pretty similar. TEST=crash a windowed plugin; you should see a sad plugin icon in the place of the plugin Review URL: http://codereview.chromium.org/155517 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20693 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 20683.jorlow@chromium.org2009-07-141-1/+0
| | | | | | Review URL: http://codereview.chromium.org/155539 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20686 0039d316-1c4b-4281-b951-d872f2087c98
* linux: destroy browser-side plugin windows on plugin crashevan@chromium.org2009-07-141-0/+1
| | | | | | | | | | | | | | | | Because the plugin windows must be destroyed by the UI thread, we store the map of plugin PID -> plugin windows there, on the RenderWidgetHostView. This differs slightly from Windows, where the map is stored on the PluginProcessHost, but is otherwise pretty similar. TEST=crash a windowed plugin; you should see a sad plugin icon in the place of the plugin Review URL: http://codereview.chromium.org/155517 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20683 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome-side of fixes for content-script messaging.mpcomplete@chromium.org2009-07-143-8/+29
| | | | | | | | | | | | | | | | | | This change adds registration of content scripts, parented to a frame's context. When a frame's context goes away, we unregister it and any content script contexts for it. There's a corresponding webkit change that lets us know when a content script context is created. Filed upstream as https://bugs.webkit.org/show_bug.cgi?id=27104. BUG=16228 TEST=install an extension with a content script that communicates with a parent process. Messages should be sendable both ways. Review URL: http://codereview.chromium.org/155309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20677 0039d316-1c4b-4281-b951-d872f2087c98
* Middle clicks on all fragment links open in new tab.cmp@google.com2009-07-141-22/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Middle clicking on an anchor tag that points to an in-doc fragment should result in a new background tab being opened. Before this change, we were overriding this behavior to cause a middle click to behave like a left click. This patch allows middle clicks to function similar to the behavior seen in Firefox and Safari. No change in behavior should be seen by users for left clicks on anchor tags that refer to in-doc fragments. While testing, I see at times issues due to scrolling within the tab to the correct fragment identifier or start of the page. This has already been identified in issues such as 9319, so I'm ignoring that for now. BUG=2913 TEST=Load Wikipedia, visit a page with many subheadings, left click on a subheading, verify the current page scrolls to the correct heading. Click back, verify you are taken back to your original position. Middle click on the same subheading, verify a new tab is loaded in the background that is scrolled to the correct heading. Review URL: http://codereview.chromium.org/155522 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20674 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed bug where playbackRate wasn't being respected.scherkus@chromium.org2009-07-142-4/+18
| | | | | | | | | BUG=16502 TEST=setting defaultPlaybackRate before the media starts playing should be respected when play() is called Review URL: http://codereview.chromium.org/155404 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20652 0039d316-1c4b-4281-b951-d872f2087c98
* Replace ShowAsPopupWithItems to CreatePopupWidgetWithInfo. Also,darin@chromium.org2009-07-1410-112/+99
| | | | | | | | | | | | | | | | | | make use of WebPopupMenuInfo from the WebKit API. WebMenuItem remains in webkit/glue for convenience with IPC marshalling and related usage in Chrome. This work is precursor to switching over to using WebWidget from the WebKit API. BUG=16234 TEST=html select drop downs should still work on the mac. try switching languages on news.google.com. R=paul Review URL: http://codereview.chromium.org/155378 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20624 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: mitigate WebKit console API changes.pfeldman@chromium.org2009-07-143-18/+2
| | | | | | Review URL: http://codereview.chromium.org/155490 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20613 0039d316-1c4b-4281-b951-d872f2087c98
* A quick fix for Issue 16597.hbono@chromium.org2009-07-141-1/+1
| | | | | | | | | | Our autofill code handles keyboard events by itself and it prevents dispatch a return key to WebKit when the key is comsumed by the autofill. Unfortunately, this code is enclosed with "#if defined(OS_WIN)" and "#endif". This change just activates this code on Linux. BUG=16597 "Prevents submitting a form when pressing a return key in an auto-fill popup" TEST=Type a return key on an auto-fill popup and verify this is not submitted. Review URL: http://codereview.chromium.org/149517 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20612 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the ConsoleLog test and enable it. It was previously disabled because ↵dimich@google.com2009-07-141-10/+10
| | | | | | | | | | | | WebKit change http://trac.webkit.org/changeset/45786 had split the 'type' and 'level' parameters of the ConsoleMessage into 2 separate parameters, which changed the way CSS styles are formatted for messages in Inspector front-end. Updated test expectations. BUG=16684 TEST=the test DevToolsSanityTest.TestConsoleLog is enabled by this CL Review URL: http://codereview.chromium.org/155482 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20609 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS from 45738 to 45840.dimich@google.com2009-07-147-3/+18
| | | | | | Review URL: http://codereview.chromium.org/149575 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20589 0039d316-1c4b-4281-b951-d872f2087c98
* Add autofill dropdown support for password forms.tim@chromium.org2009-07-147-217/+93
| | | | | | | | BUG=5406 Review URL: http://codereview.chromium.org/155399 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20585 0039d316-1c4b-4281-b951-d872f2087c98
* Add a temporary flag to enable plugins on the Mac and Linux whileamanda@chromium.org2009-07-131-5/+2
| | | | | | | | | | | | | | leaving the default to "disabled" until they work better. Temporary, for use by people who like living on the bleeding edge. BUG=none TEST=none jam: review evan,jon: FYI Review URL: http://codereview.chromium.org/149570 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20540 0039d316-1c4b-4281-b951-d872f2087c98