summaryrefslogtreecommitdiffstats
path: root/webkit/glue
Commit message (Collapse)AuthorAgeFilesLines
* Retrofit the pre-existing appache message dispatching with the new WebKit ↵michaeln@google.com2009-08-2110-134/+20
| | | | | | | | | | | | | APIs and concrete classes defined in our new appcache library, and get rid of the old files. There are many files in the CL, mostly to pickup constant values now defined in our new appcache library, and to reflect a terminilogy change (from 'context' to 'host'). TEST=some existing unit tests apply BUG=none Review URL: http://codereview.chromium.org/170003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24022 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting r24002 due to test_shell_tests rednessajwong@chromium.org2009-08-214-49/+13
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24004 0039d316-1c4b-4281-b951-d872f2087c98
* Correct network state and ready state reporting.ajwong@chromium.org2009-08-214-13/+49
| | | | | | | | | | | | | For network state, make it return "loading" for everything that's not a file source since our cache does not yet reliably support caching the full media w/o need for a network. For ready state, correctly handle seeks to drop from HaveEnoughData down to HaveMetaData until the seek completes. Also implement the seeking() function. BUG=18975 TEST=none Review URL: http://codereview.chromium.org/165432 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24002 0039d316-1c4b-4281-b951-d872f2087c98
* Auto: change errant base::VKEY_* values to just VKEY_*.estade@chromium.org2009-08-211-4/+4
| | | | | | | | | | This shouldn't affect mac or windows as the definitions with our without base:: are identical there. BUG=19664 Review URL: http://codereview.chromium.org/174121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24000 0039d316-1c4b-4281-b951-d872f2087c98
* Change the way that we search for iframes. The original code assumed thatdarin@chromium.org2009-08-213-227/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | children to a RenderLayer would be completely contained in a parent layers bounding box. This is not true in at least the following case: e.g. plugin contained in a div, that is absolute positioned. dhyatt from #webkit suggested just iterating through the Widget list. iframes are all FrameViews. This should greatly reduce the number of objects that need to be tested. This change also fixes the z-order check, which the stack iterator got wrong in some cases. The z-order check now matches IE7/IE8 for all tested permutations. The layout test has been updated to check these permutations. Also see http://tulrich.com/iframe_shims/permutations.html For a discussion of z-order, this is a good reference: https://developer.mozilla.org/En/Understanding_CSS_z-index/The_stacking_context Derived from John Newlin's change 155118 for bug 15840 by Thatcher Ulrich. R=darin,ojan TEST=extended existing layout test BUG=15840 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23967 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Restore devtools sanity console tests.pfeldman@chromium.org2009-08-211-4/+5
| | | | | | | | BUG=18786 Review URL: http://codereview.chromium.org/174220 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23962 0039d316-1c4b-4281-b951-d872f2087c98
* More removal of WebCore usage from webplugin_impl.ccdarin@chromium.org2009-08-2111-104/+95
| | | | | | | | | | | | Adds a few helper methods on WebFrame. R=jam BUG=10036 TEST=none Review URL: http://codereview.chromium.org/173152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23956 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools l10n: generate localized strings and use them.mnaganov@chromium.org2009-08-219-32/+182
| | | | | | | | | | | Reapplying r23820, this time interactive UI tests should not fail. BUG=none TEST=none Review URL: http://codereview.chromium.org/174216 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23950 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: wire Inspect Element action to DOMAgent-enabled inspector controller.pfeldman@chromium.org2009-08-211-0/+2
| | | | | | | TBR=mnaganov git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23949 0039d316-1c4b-4281-b951-d872f2087c98
* I forgot to hook up the inspector settings during my webpreferences ↵jorlow@chromium.org2009-08-201-0/+3
| | | | | | | | | | | refactoring change (http://src.chromium.org/viewvc/chrome?view=rev&revision=23589). Do that now. TEST=none BUG=none Review URL: http://codereview.chromium.org/173130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23904 0039d316-1c4b-4281-b951-d872f2087c98
* Disable mute/unmute when media does not have an audio track.scherkus@chromium.org2009-08-202-1/+6
| | | | | | | | | BUG=18970 TEST=test matrix videos ending in 0 should have mute context menu disabled Review URL: http://codereview.chromium.org/174018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23889 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WebPluginImpl::element_darin@chromium.org2009-08-202-76/+71
| | | | | | | | | | | | | This member was of type HTMLPlugInElement. This is a step toward removing all WebCore includes from webplugin_impl.cc. R=jam BUG=10036 TEST=none Review URL: http://codereview.chromium.org/173126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23858 0039d316-1c4b-4281-b951-d872f2087c98
* Disable playback controls if audio/video element has errored.scherkus@chromium.org2009-08-201-1/+4
| | | | | | | | | | TEST=load an audio/video with an unsupported input, then right click on it.. the playback control items should be disabled BUG=19740 Review URL: http://codereview.chromium.org/174119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23853 0039d316-1c4b-4281-b951-d872f2087c98
* Move MediaPlayerAction out of context_menu.h into webview.h since it's ↵ajwong@chromium.org2009-08-204-23/+33
| | | | | | | | really only used by webview. Review URL: http://codereview.chromium.org/174143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23850 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r23820 by mnaganov due to Interactive Test failuresasargent@chromium.org2009-08-208-179/+31
| | | | | | | | | TBR=brg TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23830 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools l10n: generate localized strings and use them.mnaganov@chromium.org2009-08-208-31/+179
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/174140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23820 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Remove resource panel-related RPC methods.pfeldman@chromium.org2009-08-205-90/+35
| | | | | | Review URL: http://codereview.chromium.org/174142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23817 0039d316-1c4b-4281-b951-d872f2087c98
* linux: Plugin descriptions can be UTF-8.evan@chromium.org2009-08-201-1/+1
| | | | | | | | | | | Tested with a Japanese locale, I saw Japanese plugin descriptions when I assumed UTF-8. BUG=18866 Review URL: http://codereview.chromium.org/174078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23815 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Add delegate for method added upstream.pfeldman@chromium.org2009-08-201-1/+1
| | | | | | Review URL: http://codereview.chromium.org/173119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23811 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebPlugin::acceptsInputEvents method.darin@chromium.org2009-08-202-0/+5
| | | | | | | | | | | | | | This allows us to restore a windowless_ check that used to exist in webplugin_impl.cc prior to r23797. The goal of this change is to not handle input events for windowed plugins. R=hbono BUG=none TEST=pending/plugins/iframe-shims.htm Review URL: http://codereview.chromium.org/173114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23808 0039d316-1c4b-4281-b951-d872f2087c98
* Need to cast to WebCore::Widget explicitly since the method beingdarin@chromium.org2009-08-201-2/+4
| | | | | | | | | | | | called takes a void pointer! Argh :( TBR=jam BUG=10036 TEST=covered by layout tests Review URL: http://codereview.chromium.org/174126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23800 0039d316-1c4b-4281-b951-d872f2087c98
* Move WebPluginContainer into the WebKit APIdarin@chromium.org2009-08-206-648/+271
| | | | | | | | | | | | | | | | | | | | | | This change introduces the following new interfaces: WebPlugin WebPluginContainer The implementation of WebPluginContainer is moved to webkit/api/src/WebPluginContainerImpl.{h,cpp}, and WebPluginImpl from webkit/glue now implements WebKit::WebPlugin. This change does not completely eliminate dependencies in WebPluginImpl on WebCore. The rest will be removed in a separate change. A hack was added to TemporaryGlue to deal with the fact that ChromeClientImpl still resides in webkit/glue. Also, StackingOrderIterator in webkit/glue because there is another CL out to remove that from the source tree. Note: This change depends on another CL that I am brewing to make WebCanvas be a CGContext on Mac. R=jam BUG=10036 TEST=covered by existing tests Review URL: http://codereview.chromium.org/165464 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23797 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a line that was accidently deleted in my plugin change.jam@chromium.org2009-08-201-1/+1
| | | | | | | TBR=ananta Review URL: http://codereview.chromium.org/173108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23794 0039d316-1c4b-4281-b951-d872f2087c98
* Change WebCanvas to be a CGContext on Mac.darin@chromium.org2009-08-196-16/+42
| | | | | | | | | | | | This change removes the code that previously existed to render HTML5 video on Mac. That code was already broken (video doesn't work at all on tip-of-tree), and so instead of trying to translate broken code, I just removed it. Andrew approved this. R=amanda,scherkus BUG=none TEST=none Review URL: http://codereview.chromium.org/174022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23742 0039d316-1c4b-4281-b951-d872f2087c98
* Enable the Google Talk Video plugin, which seems pretty well behaved.amanda@chromium.org2009-08-191-3/+4
| | | | | | Review URL: http://codereview.chromium.org/173064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23720 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: touch the resources file in hopes to fix interactive ui tests.pfeldman@chromium.org2009-08-191-1/+1
| | | | | | | TBR=mnaganov git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23707 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Re-enable devtools sanity tests.pfeldman@chromium.org2009-08-191-2/+1
| | | | | | | TBR=mnaganov Review URL: http://codereview.chromium.org/173053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23704 0039d316-1c4b-4281-b951-d872f2087c98
* Finished implementation of hasAudio() to detect media without playback audio ↵scherkus@chromium.org2009-08-182-1/+4
| | | | | | | | | | | | | | tracks. There is a WebKit side to this patch out for review as well: https://bugs.webkit.org/show_bug.cgi?id=28310 BUG=18970 TEST=play a video without audio (i.e., trek0.ogv), the UI should display a disabled audio icon Review URL: http://codereview.chromium.org/171091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23671 0039d316-1c4b-4281-b951-d872f2087c98
* Checking in updated images for disable play/mute buttons.scherkus@chromium.org2009-08-182-0/+0
| | | | | | | | | BUG=18969,18970 TEST=watch for a faded out play/mute button Review URL: http://codereview.chromium.org/171094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23662 0039d316-1c4b-4281-b951-d872f2087c98
* Renames the function CreateTemporaryFilename to CreateTemporaryFile and ↵erikkay@chromium.org2009-08-181-1/+1
| | | | | | | | | | | | | | track down all callers, also removes the deprecated function that uses std::wstring. BUG=3078 (http://crbug.com/3078) TEST=run base_unittests, installer_util_unittests, net_unittests, setup_unittests, and unit_tests. Review URL: http://codereview.chromium.org/164537 Patch from Thiago Farina. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23631 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Reset utility context for given document only once.pfeldman@chromium.org2009-08-185-69/+31
| | | | | | Review URL: http://codereview.chromium.org/172091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23621 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools Heap profiler: add a bar with Code / Objects and Data / Others size ↵mnaganov@chromium.org2009-08-185-3/+96
| | | | | | | | | | | | | distribution. This helps to reveal memory size occupied by compiled code and engine's data. And this is also an eye candy. BUG=none TEST=none Review URL: http://codereview.chromium.org/172090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23619 0039d316-1c4b-4281-b951-d872f2087c98
* Video plays on server without range requesthclam@chromium.org2009-08-181-3/+7
| | | | | | | | | | | | | | BUG=19521 TEST=Go to http://htmlfive.appspot.com/static/video.html and it will play. r23255 introduced a regression that causes an extra seek in the beginning of playing a video file. This extra seek causes FFmpeg to look for index at the end of file which issue a range request at the end of the file. Review URL: http://codereview.chromium.org/171084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23598 0039d316-1c4b-4281-b951-d872f2087c98
* Remove webview's dependency on webpreferences.jorlow@chromium.org2009-08-177-123/+120
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/165513 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23589 0039d316-1c4b-4281-b951-d872f2087c98
* Catch up with webkit change which removes id() from the HTMLElementmbelshe@google.com2009-08-173-4/+6
| | | | | | | | | | | and instead accesses the attributes directly. BUG=none TEST=none TBR=jparent Review URL: http://codereview.chromium.org/172053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23562 0039d316-1c4b-4281-b951-d872f2087c98
* Fix WebInspector breakpoint removal broken after WebKit changes (disabling a ↵apavlov@chromium.org2009-08-171-1/+7
| | | | | | | | breakpoint effectively removes it in our implementation). Review URL: http://codereview.chromium.org/164561 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23542 0039d316-1c4b-4281-b951-d872f2087c98
* A quick fix for Issue 18844 (Take 2).hbono@chromium.org2009-08-172-4/+22
| | | | | | | | | | | | | | | | | This is the same change as <http://codereview.chromium.org/164309> that I reverted to investigate a test_shell_test failure (Issue 19263). This change checks if the modifier flag is a WebInputEvent::MetaKey flag to switch the scroll granularity when a user types a up/down key. Editor::Commands ("MoveToBeginningOfDocument" and "MoveToEndOfDocument") works only in an editable control, such as <textarea>. On the other hand, this WebViewImpl::ScrollViewWithKeyboard() is for scrolling a page. BUG=18844 "Apple (command) key + down arrow is not working" TEST=Type command+down keys in a web page which contains a scroll bar, and verify Chrome scrolls the page to its end. Review URL: http://codereview.chromium.org/165523 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23540 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure we don't load plugins on the IO thread.jam@chromium.org2009-08-158-123/+122
| | | | | | | | | | I had to move the locks from PluginService to PluginList, so that a lock (which can block other threads) isn't held while loading the plugins. BUG=17938 TEST=added asserts which crash if plugins loaded on IO thread, current UI tests exercise them Review URL: http://codereview.chromium.org/164305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23501 0039d316-1c4b-4281-b951-d872f2087c98
* Framework to display disabled mute button when audio fails.kylep@chromium.org2009-08-142-0/+7
| | | | | | | | BUG=18970 TEST=play a video with no audio hardware, verify that UI changes Review URL: http://codereview.chromium.org/169010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23491 0039d316-1c4b-4281-b951-d872f2087c98
* Stop resource loading for WebCore::MediaDocumenthclam@chromium.org2009-08-141-0/+8
| | | | | | | | | | | | | | | | | BUG=17973 When a WebCore::Document is loaded, a resource request for the document is made. In case of MediaDocument the request for the media file is made separately through <video> and so the DocumentLoader should be stopped. This change mimic what is done in WebHTMLRepresentation (which is similar to our RenderView) and stops the resource loading in WebFrameLoaderClient since RenderView doesn't have access to WebCore types. Review URL: http://codereview.chromium.org/165286 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23471 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WebFrame::selectAll and WebFrame::clearSelection in favor of havingdarin@chromium.org2009-08-144-18/+5
| | | | | | | | | | | | | consumers use executeCommand. Patch by Marshall Greenblatt R=darin BUG=19270 TEST=covered by unit tests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23442 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 23420. It caused a reliability regression.maruel@chromium.org2009-08-148-122/+123
| | | | | | | | | TBR=jam BUG=none TEST=reliability Review URL: http://codereview.chromium.org/165532 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23437 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Re-enable sanity tests.pfeldman@chromium.org2009-08-143-9/+8
| | | | | | Review URL: http://codereview.chromium.org/165530 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23435 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: implement comparison of heap snapshots in Heap profiler.mnaganov@chromium.org2009-08-144-49/+250
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/164557 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23434 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Fix implications of the DOMAgent migration upstream.pfeldman@chromium.org2009-08-143-50/+22
| | | | | | Review URL: http://codereview.chromium.org/164556 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23433 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: dom_agent is dead. Long live InspectorDOMAgent.pfeldman@chromium.org2009-08-1418-2620/+58
| | | | | | Review URL: http://codereview.chromium.org/165526 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23429 0039d316-1c4b-4281-b951-d872f2087c98
* Move glue/event_conversion.{h,cc} into the WebKit API implementation.darin@chromium.org2009-08-146-332/+34
| | | | | | | | | | | | | | | | | | | I also renamed the MakeFoo classes to FooBuilder so that it would be more clear at the call sites that you are dealing with a class. I then translated the ToBar functions to also be BarBuilder classes. I just did this for consistency with the FooBuilders. For reference, "Foo" refers to WebCore Platform*Event classes and "Bar" refers to WebInputEvent subclasses :-) R=jorlow BUG=none TEST=none Review URL: http://codereview.chromium.org/164524 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23425 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure we don't load plugins on the IO thread.jam@chromium.org2009-08-148-123/+122
| | | | | | | | | | I had to move the locks from PluginService to PluginList, so that a lock (which can block other threads) isn't held while loading the plugins. BUG=17938 TEST=added asserts which crash if plugins loaded on IO thread, current UI tests exercise them Review URL: http://codereview.chromium.org/164305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23420 0039d316-1c4b-4281-b951-d872f2087c98
* Add disabled play and mute icons for media player.kylep@chromium.org2009-08-145-0/+7
| | | | | | | | BUG=18969,18970 TEST=none Review URL: http://codereview.chromium.org/164356 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23415 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Chromium canary^h^h^h^H parrot build: remove ↵levin@chromium.org2009-08-131-4/+5
| | | | | | | | | | | | | | | InspectorController::clearConsole call. Landing for pfeldman@chromium.org TBR=mnaganov BUG=None TEST=None Review URL: http://codereview.chromium.org/165498 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23391 0039d316-1c4b-4281-b951-d872f2087c98