summaryrefslogtreecommitdiffstats
path: root/webkit/glue
Commit message (Collapse)AuthorAgeFilesLines
* Align autoscroll cursors by setting their hotspots correctly. Original ↵pkasting@chromium.org2009-08-258-0/+0
| | | | | | | | | patch by Philippe Beauchamp (see http://codereview.chromium.org/149742 ), r=me. BUG=6173 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24192 0039d316-1c4b-4281-b951-d872f2087c98
* linux/mac: implement NPN_ThreadAsyncCallpiman@chromium.org2009-08-241-1/+1
| | | | | | | Review URL: http://codereview.chromium.org/174296 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24136 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Migrate to the new InjectedScript-based CallFrame.pfeldman@chromium.org2009-08-243-497/+187
| | | | | | Review URL: http://codereview.chromium.org/173266 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24135 0039d316-1c4b-4281-b951-d872f2087c98
* Change to use nodeName from the base class to avoid the compiling error in ↵jianli@chromium.org2009-08-241-1/+1
| | | | | | | | | | | | the future WebKit merge. BUG=none TEST=none Review URL: http://codereview.chromium.org/173276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24118 0039d316-1c4b-4281-b951-d872f2087c98
* This CL fixes "RTL: Form autofill pop-up is not right aligned".xji@chromium.org2009-08-241-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The complete patch includes 2 parts: 1. patch in webkit (https://bugs.webkit.org/show_bug.cgi?id=27889), mainly PopupMenuChromium.cpp 2. this one (depends on the first patch to be able to compile). The changes apply to autofill only, not <select>. It 1. restricts the popup box to be the same size as that of the input field. 2. displays the text in the popup box in the same directionality as the text in input field. BUGS=http://crbug.com/7323 TEST= 1. open the following HTML page: <html> <head> </head> <body> <form action="form_action.asp" method="get"> First name: <input type="text" name="fname" dir="rtl"/><br /> Last name: <input type="text" name="lname" /><br /> <input type="submit" value="Submit" /> </form> </body> </html> 2. Type some long text in the "Last name" input box >>Say "abcd abcd abcd abcd abcd abcd" 3. Click "Submit" 4. Open the file again 5. Type the first letter "a" 6. The form autofill pop-up should show up the same width as the input field, with the input text truncated to be "abcd abcd abcd abcd ab ...". 7. Type "hi!" in both "First name" and "Last name". Click "submit". Open the file again. Type "h" in "First name", "hi!" should be displayed as RTL ("!hi") in pop-up. Type "h" in "Last name", "hi!" should be displayed as LTR ("hi!") in pop-up Review URL: http://codereview.chromium.org/160613 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24108 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: define escapeString in injected script for DOM search to work.pfeldman@chromium.org2009-08-241-0/+23
| | | | | | | BUG=19526 Review URL: http://codereview.chromium.org/173269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24107 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 24094, caused a build break.maruel@chromium.org2009-08-243-12/+38
| | | | | | | | | TBR=mnaganov BUG=none TEST=none Review URL: http://codereview.chromium.org/174319 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24096 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools l10n: merge Inspector's and DevTools's strings; also, disable l10n ↵mnaganov@chromium.org2009-08-243-38/+12
| | | | | | | | | | | until mgr agreeement. BUG=none TEST=none Review URL: http://codereview.chromium.org/173267 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24094 0039d316-1c4b-4281-b951-d872f2087c98
* Adds support and exposure of additional accessibility roles. Includes naming ↵klink@chromium.org2009-08-222-1/+10
| | | | | | | | | | of the LocationBar, and correctly exposing MSAA/ARIA roles for Documents, Graphics, Menubars and Toolbars. BUG=13291,19982 TEST=Assign @role menubar or toolbar to any dom element, and use Inspect32 (or similar tool) to see it exposed correctly. In the same way, <html> tag is exposed as role document. Review URL: http://codereview.chromium.org/174252 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24049 0039d316-1c4b-4281-b951-d872f2087c98
* Correct network state and ready state reporting.ajwong@chromium.org2009-08-215-26/+60
| | | | | | | | | | | | | 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@24036 0039d316-1c4b-4281-b951-d872f2087c98
* Adding image for volume slider thumbhclam@chromium.org2009-08-213-0/+2
| | | | | | | | | | BUG=18973 Volume silder thumb image for media controls. Review URL: http://codereview.chromium.org/173139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24035 0039d316-1c4b-4281-b951-d872f2087c98
* 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