summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Don't let file:// URLs script Web URLs.abarth@chromium.org2009-03-061-0/+4
| | | | | | | | BUG=7986 R=finnur Review URL: http://codereview.chromium.org/39141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11100 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes CRLF and trailing white spaces.maruel@chromium.org2009-03-051-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing WebKeyboardEvent.avi@chromium.org2009-03-041-33/+17
| | | | | | Review URL: http://codereview.chromium.org/39075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10918 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 10794.avi@chromium.org2009-03-031-17/+31
| | | | | | Review URL: http://codereview.chromium.org/40027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10808 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing WebKeyboardEvent. Third time's the charm.avi@chromium.org2009-03-031-31/+17
| | | | | | Review URL: http://codereview.chromium.org/27332 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10794 0039d316-1c4b-4281-b951-d872f2087c98
* Make our IME backend platform-independent.hbono@chromium.org2009-03-031-4/+2
| | | | | | | This change makes our IME backend run not only on Windows but also on Linux and Mac. This change also adds another unit-test which verifies the backend runs on Linux and Mac without problems. Review URL: http://codereview.chromium.org/27124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10783 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up inspector highlighting again. This time we useojan@google.com2009-02-261-9/+0
| | | | | | | | | upstream's drawNodeHighlight methods. BUG=5178 Review URL: http://codereview.chromium.org/31010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10497 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting key change (again); this breaks every keyboard layout test there ↵avi@chromium.org2009-02-261-16/+29
| | | | | | | | is. Will fix and recommit. Review URL: http://codereview.chromium.org/28186 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10469 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing WebKeyboardEvent. For reals this time.avi@chromium.org2009-02-261-29/+16
| | | | | | | A recommit of http://codereview.chromium.org/27056 . Review URL: http://codereview.chromium.org/28136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10464 0039d316-1c4b-4281-b951-d872f2087c98
* Add an identity (id) to system drag & drop.tc@google.com2009-02-261-0/+26
| | | | | | | | | | | | | | | | | Used for gears file drag & drop in chrome, assign a drag id (identity) to each drag and drop session. Send the identity to the renderer WebViewImpl in drag enter notifications, provide a getter method. BUG=7995 Original patch by noel.gordon@gmail.com in: http://codereview.chromium.org/28108/show Review URL: http://codereview.chromium.org/28158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10430 0039d316-1c4b-4281-b951-d872f2087c98
* The autocomplete popup was shown relative to the main frame, causing it to ↵jcampan@chromium.org2009-02-251-1/+1
| | | | | | | | | | be displayed in the wrong place when shown in a sub-frame. BUG=8072 TEST=See bug. Review URL: http://codereview.chromium.org/28141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10393 0039d316-1c4b-4281-b951-d872f2087c98
* This CL causes the autofill popup to hide when the browser window is moved ↵jcampan@chromium.org2009-02-251-1/+5
| | | | | | | | | | | or resized. TEST=Bring up an autofill popup in a form, move the browser. The autofill popup should be closed. BUG=7401 R=ben Review URL: http://codereview.chromium.org/28126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10384 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Fixing WebKeyboardEvent."kuchhal@chromium.org2009-02-251-16/+29
| | | | | | | Review URL: http://codereview.appspot.com/21071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10362 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing WebKeyboardEvent.avi@chromium.org2009-02-251-29/+16
| | | | | | Review URL: http://codereview.chromium.org/27056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10360 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused 'node' parameter from ImeUpdateStatus.darin@chromium.org2009-02-201-1/+0
| | | | | | | | R=hbono Review URL: http://codereview.chromium.org/21531 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10096 0039d316-1c4b-4281-b951-d872f2087c98
* Reported crashers indicate that the autofill popup-menu is showing for a ↵jcampan@chromium.org2009-02-191-2/+17
| | | | | | | | | | | | | | detached text field. I am not sure how this could happen as when the text field has to have focus for the autofill popup to show and the popup is closed when it loses focus. This CL is a work-around the crasher. Hopefully someone will trigger the DCHECK and provide more info. BUG=7708 TEST=Exercise the autofill. Review URL: http://codereview.chromium.org/21528 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10063 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9944.yurys@google.com2009-02-181-5/+0
| | | | | | | This change broke ui, interactive and Vista Perf tests. I felt like reverting. Review URL: http://codereview.chromium.org/24020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9947 0039d316-1c4b-4281-b951-d872f2087c98
* Create communication channel between developer tools UI implemented in JS ↵yurys@google.com2009-02-181-0/+5
| | | | | | | | | | | | | and residing in a process different from inspected page renderer process. There is no direct IPC channel between the two processes so all messages are routed through browser process. On the side of inspected page there is ToolsAgent existing in all renderers so that we can start inspecting the page at any moment by talking to this object. On the side of developer tools renderer there is ToolsClient which is created only for RenderView that host developer tools UI. This change is a slightly modified version of http://codereview.chromium.org/20221/show Review URL: http://codereview.chromium.org/20430 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9944 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for Issue 7651 Regression: The position of input method window is not ↵hbono@chromium.org2009-02-181-1/+4
| | | | | | | | | | | | | correct after scrolling page down. This is caused by my bonehead mistake in fixing Issue 6652 that I forgot calling the FrameView::contentsToWindow() function. (I need to add a unit-test to prevent this regression, though.) BUG=7651 Review URL: http://codereview.chromium.org/21338 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9942 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9855.maruel@chromium.org2009-02-161-5/+0
| | | | | | | This change didn't have any description and it broke the tree Review URL: http://codereview.chromium.org/21393 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9856 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/20405yurys@google.com2009-02-161-0/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9855 0039d316-1c4b-4281-b951-d872f2087c98
* The WebFrame interface currently supports reference counting, but no one uses.darin@chromium.org2009-02-131-0/+2
| | | | | | | | | | | | | | | | Internally, WebFrameImpl needs reference counting, so we still define it there. Same goes for WebView and WebWidget. While making this change, I noticed that WebInspectorClient was casting WebView pointers to WebViewImpl pointers too much. By just starting with WebViewImpl pointers, things could be cleaned up considerably. R=brettw Review URL: http://codereview.chromium.org/21342 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9745 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land the WebKit merge 40722:40785.darin@chromium.org2009-02-101-1/+1
| | | | | | | | TBR=amanda Review URL: http://codereview.chromium.org/21197 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9462 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback WebKit merge since background images don't paint.darin@chromium.org2009-02-091-1/+1
| | | | | | | | TBR=amanda Review URL: http://codereview.chromium.org/21193 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9434 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit merge 40722:40785 (part 2)darin@chromium.org2009-02-091-1/+1
| | | | | | | | | Account for the renaming of toRange to toNormalizedRange done by Eric Seidel. R=amanda Review URL: http://codereview.chromium.org/20192 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9427 0039d316-1c4b-4281-b951-d872f2087c98
* Selecting an item in the autocomplete popup would cause a crasher.jcampan@chromium.org2009-02-091-27/+39
| | | | | | | | | | | | | | This was caused by a change in the PopupMenuChromium where the popup would first hide itself before setting the selection. We use to delete our client on hide, causing a crasher when setting the selection. This new CL makes the autocomplete popup and client live as long as the WebView is alive and the WebView reuse them (we just hide the popup when necessary). TEST=In a form, type some text in an input field. Make sure the autocomplete popups up and behaves as expected. BUG=7435 Review URL: http://codereview.chromium.org/21153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9397 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line option --disable-web-security. People can use this ↵abarth@chromium.org2009-02-061-0/+1
| | | | | | | | | | | option when the same-origin policy interferes with testing their web sites. R=deanm BUG=6449 Review URL: http://codereview.chromium.org/20101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9337 0039d316-1c4b-4281-b951-d872f2087c98
* A workaround fix for Issue 6971.hbono@chromium.org2009-02-051-39/+40
| | | | | | | | | | This is a workaround for Issue 6971 "Chrome crashes if Javascript dynamically clears an input field while user attempts to type Korean into that field." To prevent this crash, this code verifies if the parent nodes of an IME composition node exist and are editable before updating the composition node. This change also changes an Editor::completeComposition() call to an Editor::setComposition() call to emulate the behavior of Safari. It seems Safari calls the Editor::setComposition() function when it cancels an ongoing composition. Review URL: http://codereview.chromium.org/19619 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9208 0039d316-1c4b-4281-b951-d872f2087c98
* Autocomplete popup should not handle the Home and end key messages, they ↵jcampan@chromium.org2009-02-041-12/+28
| | | | | | | | | should be left to the text edit to proceed. BUG=4874 Review URL: http://codereview.chromium.org/20046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9164 0039d316-1c4b-4281-b951-d872f2087c98
* The autocomplete popup menu was using the style of the edit field it is ↵jcampan@chromium.org2009-02-041-6/+18
| | | | | | | | | | associated with. This is wrong, its font should be independent of the edit field. TEST=Open a page with a form that has an input field that uses a huge font. Bring up the autocomplete popup, the items should use a normal size font. BUG=7372,6326 Review URL: http://codereview.chromium.org/20030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9153 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit merge 40474:40500 [chromium-side].ericroman@google.com2009-02-041-4/+8
| | | | | | Review URL: http://codereview.chromium.org/21029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9121 0039d316-1c4b-4281-b951-d872f2087c98
* WebKitMerge 40409:40464 (chromium-side).ericroman@google.com2009-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The death of FrameLoaderClient.cpp correspond with <http://trac.webkit.org/changeset/40435> * The custom V8 binding for V8HTMLFormElement::submit() corresponds with <http://trac.webkit.org/changeset/40424> * Changes to FrameLoader::loadFrameRequestWithFormAndValues() and FrameLoadTypeRedirectWithLockedHistory correspond with <http://trac.webkit.org/changeset/40432> * No action was taken for the disable-web-security change <http://trac.webkit.org/changeset/40449>, defaults to enabled. * Frame::isFrameSet() moving to Document::isFrameSet corresponds with <http://trac.webkit.org/changeset/40443> * Frame::sendResizeEvent() moved to EventHandler::sendResizeEvent() <http://trac.webkit.org/changeset/40444> * Not sure which webkit change added RenderObjectChildList.cpp. ======================= Rebaselined the following layout tests to reflect upstream changes: ======================= * LayoutTests/fast/table/form-with-table-style.html http://trac.webkit.org/browser/trunk/LayoutTests/platform/mac/fast/table/form-with-table-style-expected.png?rev=40457 * LayoutTests/fast/table/insert-row-before-form.html http://trac.webkit.org/changeset/40456/trunk/LayoutTests/platform/mac/fast/table/insert-row-before-form-expected.txt?old=30635&old_path=trunk/LayoutTests/platform/mac/fast/table/insert-row-before-form-expected.txt * LayoutTests/tables/mozilla/bugs/bug4527.html http://trac.webkit.org/changeset/40458/trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug4527-expected.txt?old=30635&old_path=trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug4527-expected.txt * LayoutTests/tables/mozilla/bugs/bug96343.html http://trac.webkit.org/changeset/40458/trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug96343-expected.txt?old=30635&old_path=trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug96343-expected.txt * LayoutTests/tables/mozilla_expected_failures/bugs/bug1725.html http://trac.webkit.org/changeset/40459/trunk/LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug1725-expected.txt?old=30635&old_path=trunk/LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug1725-expected.txt * LayoutTests/tables/mozilla_expected_failures/other/test4.html http://trac.webkit.org/changeset/40460/trunk/LayoutTests/platform/mac/tables/mozilla_expected_failures/other/test4-expected.txt?old=34683&old_path=trunk/LayoutTests/platform/mac/tables/mozilla_expected_failures/other/test4-expected.txt * LayoutTests/editing/deleting/deletionUI-single-instance-actual.png http://trac.webkit.org/changeset/40454/trunk/LayoutTests/platform/mac/editing/deleting/deletionUI-single-instance-expected.txt?old=32226&old_path=trunk/LayoutTests/platform/mac/editing/deleting/deletionUI-single-instance-expected.txt Review URL: http://codereview.chromium.org/21007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9077 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium side of merge 40314:40364.ojan@google.com2009-01-301-1/+1
| | | | | | Review URL: http://codereview.chromium.org/19485 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8946 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome part of the Webkit related CL.jcampan@chromium.org2009-01-231-0/+1
| | | | | | Review URL: http://codereview.chromium.org/16815 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8585 0039d316-1c4b-4281-b951-d872f2087c98
* A quick fix for "Issue 6252: Regression: IME candidate window showing far ↵hbono@chromium.org2009-01-231-5/+2
| | | | | | | | | | | | away from the input box". This issue is caused by a recent WebKit merge that changes the behavior of the ScrollView::contentsToWindow() function. To fix this issue, this change uses the SelectionController::absoluteCaretBounds() function instead of calling the ScrollView::contentsToWindow() function. BUG=6252 Review URL: http://codereview.chromium.org/17638 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8550 0039d316-1c4b-4281-b951-d872f2087c98
* Part 2 (webkit/glue side) of cleaning RenderThemeChromiumWin.darin@chromium.org2009-01-161-1/+1
| | | | | | | | R=macdome Review URL: http://codereview.chromium.org/18140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8203 0039d316-1c4b-4281-b951-d872f2087c98
* The popup for autofill is now never activated, even when clicked.jcampan@chromium.org2009-01-091-9/+3
| | | | | | | | | | | | | This allows us to hide it when the page loses focus. (doing that previously would have caused the popup to be hidden before the click in the popup was sent to the renderer). Most of the file changes are just renaming focus_on_show to activatable. TEST=Open a form and make an autofill popup. Focus another window, the popup should disappear. Ensure the autofill still work properly, and the combo-box as well. BUG=3844,5830 Review URL: http://codereview.chromium.org/17455 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7823 0039d316-1c4b-4281-b951-d872f2087c98
* Move RenderThemeWin to WebCore/rendering and rename it to ↵dglazkov@google.com2008-12-221-1/+1
| | | | | | | | | | RenderThemeChromiumWin (for now) R=darin Review URL: http://codereview.chromium.org/16211 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7372 0039d316-1c4b-4281-b951-d872f2087c98
* We now show the form autofill when the user does any of these on a focused ↵jcampan@chromium.org2008-12-181-0/+26
| | | | | | | | | | | | | | | empty text-field: - presses the up/down arrow key - left-clicks it The other browsers have that feature. BUG=5130 TEST=See bug. Review URL: http://codereview.chromium.org/14852 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7269 0039d316-1c4b-4281-b951-d872f2087c98
* Move the "platform" wrappers in skia/ext to the skia namespace.brettw@google.com2008-12-171-1/+1
| | | | | | Review URL: http://codereview.chromium.org/14110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7182 0039d316-1c4b-4281-b951-d872f2087c98
* Changes to the autofill popup:jcampan@chromium.org2008-12-161-15/+40
| | | | | | | | | | | - we now reuse the existing popup if there is one (instead of creating a new on with each key stoke), this prevents the flickering we used to see. - we don't hide the popup on every key stroke, instead we rely on the client editor telling us the field is not being edited anymore. TEST=Enter some text in a form's text field several times, the autofill should show and not flicker. BUG=5258 Review URL: http://codereview.chromium.org/14100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7017 0039d316-1c4b-4281-b951-d872f2087c98
* Add "Enable spell check for this field" menu option in sub context menu for ↵sidchat@google.com2008-12-151-24/+0
| | | | | | | | context menu over text box, and deploy its functionality accordingly across the code. This patch also allows manual switch-on of spell check in single line text box fields. Review URL: http://codereview.chromium.org/13731 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7000 0039d316-1c4b-4281-b951-d872f2087c98
* Move implementation of BackForwardListClient to a new class nameddarin@chromium.org2008-12-131-47/+11
| | | | | | | | | | BackForwardListClientImpl. R=dglazkov Review URL: http://codereview.chromium.org/14407 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6959 0039d316-1c4b-4281-b951-d872f2087c98
* Minor cleanup.darin@chromium.org2008-12-121-5/+2
| | | | | | | | R=ojan Review URL: http://codereview.chromium.org/13768 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6854 0039d316-1c4b-4281-b951-d872f2087c98
* Move skia-specific files into platform/graphics/skia to better correspond ↵darin@google.com2008-12-111-1/+1
| | | | | | | | | | | | with where they will live once we upstream them. R=ojan Review URL: http://codereview.chromium.org/13727 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6841 0039d316-1c4b-4281-b951-d872f2087c98
* Webkit merge 39050:39100 (CL 5 of 5).ericroman@google.com2008-12-111-1/+1
| | | | | | Review URL: http://codereview.chromium.org/13740 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6810 0039d316-1c4b-4281-b951-d872f2087c98
* Correctly construct platform keyboard event in event sending controller.estade@chromium.org2008-12-091-4/+4
| | | | | | | | Same as issue 12981 with but now with change to test_shell.vsprops. This change makes it actually compile on windows! It also makes it clear that test shell is looking in webkit directories for include files. Apparently this was already the case on linux and mac, but it is new for windows. Review URL: http://codereview.chromium.org/13678 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6657 0039d316-1c4b-4281-b951-d872f2087c98
* revert commit 6607.estade@chromium.org2008-12-091-4/+4
| | | | | | | | tbr=ojan Review URL: http://codereview.chromium.org/13675 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6609 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: the WebKeyboardEvent key_code field is the windows key code, not the ↵estade@chromium.org2008-12-091-4/+4
| | | | | | | | | | | | native key code. Also match windows behavior for setting m_text field of platform event equal to key_code. update: fixes at least 7 layout tests. Review URL: http://codereview.chromium.org/12981 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6607 0039d316-1c4b-4281-b951-d872f2087c98
* The autofill menu does not accept the selection on abandon, such as when ↵jcampan@chromium.org2008-11-261-1/+1
| | | | | | | | | | | | pressing ESC. I had to introduce another acceptOnAbandon member, though the name I came up with is pretty lame. BUG=4803 TEST=Type some text in a from input text, in the autofill popup menu, use the arrow keys to select something then press ESC. The text input content should not change. Also, make sure the select input still does keep the selection when ESC is pressed. Review URL: http://codereview.chromium.org/12667 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6042 0039d316-1c4b-4281-b951-d872f2087c98