summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view.cc
Commit message (Collapse)AuthorAgeFilesLines
* Refactor return message into webkit_glue (make include-friendly).gbillock@chromium.org2011-10-051-10/+0
| | | | | | | | | | | | | Refactor return message handling into IntentsDispatcher so that this class can implement a WebKit client interface. BUG=None TEST=None Review URL: http://codereview.chromium.org/8072013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104125 0039d316-1c4b-4281-b951-d872f2087c98
* Add a second line of defense for receiving a bad message in the renderer.creis@chromium.org2011-10-041-1/+9
| | | | | | | | | BUG=88949 TEST=none Review URL: http://codereview.chromium.org/8142009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104010 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of web_ui_bindings.h include from Chrome's ExternalHostBindings. The ↵jam@chromium.org2011-10-041-3/+1
| | | | | | | | | ChromeFrame object wasn't using anything from that class except for storing an IPC sender and a route. BUG=98716 Review URL: http://codereview.chromium.org/8139004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103996 0039d316-1c4b-4281-b951-d872f2087c98
* Make V8ValueConverter be an interface and move it to content\public\renderer ↵jam@chromium.org2011-10-041-2/+3
| | | | | | | | | and put in the content namespace. BUG=98716 Review URL: http://codereview.chromium.org/8122011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103925 0039d316-1c4b-4281-b951-d872f2087c98
* Send IME events to windowless plug-ins (Chromium side)hbono@chromium.org2011-10-041-0/+51
| | | | | | | | | | This change adds a new class WebPluginIMEWin that converts the platform-independent IME data sent from a renderer process (or WebKit) to the Win32 IME messages and send them to a plug-in. To allow the plug-in to retrieve the IME data with IMM32 function calls, this change also adds a patch to GetProcessAddress(). (Flash seems to retrieve the pointers to IMM32 function with this function.) This change also sends IME status retrieved from the plug-in to a browser process (via a renderer process). BUG=82507 TEST=manual Review URL: http://codereview.chromium.org/7082034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103869 0039d316-1c4b-4281-b951-d872f2087c98
* Move NavigationState to content\public\renderer and put it in the content ↵jam@chromium.org2011-10-041-1/+2
| | | | | | | | | namespace. BUG=98716 Review URL: http://codereview.chromium.org/8114019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103826 0039d316-1c4b-4281-b951-d872f2087c98
* Move RenderProcessObserver and RenderViewVisitor to content\public\renderer ↵jam@chromium.org2011-10-031-1/+2
| | | | | | | | | and put them in the content namespace. BUG=98716 Review URL: http://codereview.chromium.org/8116009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103796 0039d316-1c4b-4281-b951-d872f2087c98
* Move RenderViewObserver and RenderViewObserverTracker to ↵jam@chromium.org2011-10-031-1/+2
| | | | | | | | | content\public\renderer and put them in the content namespace. BUG=98716 Review URL: http://codereview.chromium.org/8124001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103758 0039d316-1c4b-4281-b951-d872f2087c98
* Show keyboard when the focused editable field is touched inside the web ↵mazda@chromium.org2011-10-031-0/+5
| | | | | | | | | | | | | | | | | | | | content area. When an editable fieled is touched and the focus is moved to the element, NOTIFICATION_FOCUS_CHANGED_IN_PAGE is sent. However, if the field is already focused, no notification is sent. But keyboard should be shown in such a case. This CL - Adds NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED notification, which is sent when the focused editable field is touched, - Adds ChromeViewHostMsg_FocusedEditableNodeTouched IPC message, which is sent from renderer to browser when a touch released on the focused editable field, - Changes RenderWidget to handle touch events in OnHandleInputEvent, and - Handles NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED in KeyboardWidget to show keyboard. BUG=none TEST=Manual Review URL: http://codereview.chromium.org/7923005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103694 0039d316-1c4b-4281-b951-d872f2087c98
* Start off the Content API by moving content::ContentRendererClient to ↵jam@chromium.org2011-10-011-1/+1
| | | | | | | | | content\public\renderer. BUG=98716 Review URL: http://codereview.chromium.org/8100013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103609 0039d316-1c4b-4281-b951-d872f2087c98
* content: Move the final headers and residual traces of contrained windowserg@chromium.org2011-09-301-1/+1
| | | | | | | | | | | | to chrome/ BUG=95257 TEST=none Review URL: http://codereview.chromium.org/8103004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103579 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrites renderer accessibility to not use WebAccessibilityCache.dmazzoni@chromium.org2011-09-291-252/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the primary underlying cause of a number of bugs where the browser's accessibility tree got out of sync with the renderer's accessibility tree, which makes the page seem not functional anymore. Splits renderer accessibility code out of render_view.cc into its own file. All code now uses the axID directly from WebCore::AccessibilityObject rather than WebAccessibilityCache, which can now be deleted. One implication of this is that the top-level node can now change its ID, so we introduce a new role ROLE_ROOT_WEB_AREA to distinguish it from an iframe's ROLE_WEB_AREA node. To solve the problem of getting out of sync, the renderer now maintains a tree of axIDs that reflects the state of the tree as of the most recent message sent to the browser. Whenever a new accessibility notification is posted, it refers to that tree to determine precisely what information needs to be sent to the browser, eliminating problems where the renderer was posting notifications about nodes that the browser didn't know about. BUG=93095,93232,92716,90787,90768 TEST=updated lots of tests Review URL: http://codereview.chromium.org/7966013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103249 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Use link doctor for failed provisional load when DevTools are opened.vsevik@chromium.org2011-09-231-15/+4
| | | | | | | | | BUG=94909 Review URL: http://codereview.chromium.org/8021001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102595 0039d316-1c4b-4281-b951-d872f2087c98
* Don't depend on the embedder creating a plugin. That way embedders can ↵jam@chromium.org2011-09-231-2/+7
| | | | | | | | always provide an empty ContentRendererClient interface and still have functional rendering. Review URL: http://codereview.chromium.org/7972018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102427 0039d316-1c4b-4281-b951-d872f2087c98
* net: Put more functions from escape.h into net namespace.tfarina@chromium.org2011-09-221-3/+3
| | | | | | | | | | | BUG=64263 TEST=None R=willchan@chromium.org Review URL: http://codereview.chromium.org/7978039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102271 0039d316-1c4b-4281-b951-d872f2087c98
* Mouse lock implementation, including the renderer side and the Windows ↵yzshen@chromium.org2011-09-221-0/+15
| | | | | | | | | | | | version of the browser side. BUG=41781 TEST=Manual test in ppapi/examples/mouse_lock Review URL: http://codereview.chromium.org/7863003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102234 0039d316-1c4b-4281-b951-d872f2087c98
* Add routing id and notification type to accessibility logging.dtseng@chromium.org2011-09-211-2/+4
| | | | | | | | | | BUG=none TEST=manual. Review URL: http://codereview.chromium.org/7867018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102167 0039d316-1c4b-4281-b951-d872f2087c98
* Update Chrome to use new context notification APIs from WebKit.aa@chromium.org2011-09-211-12/+12
| | | | | | Review URL: http://codereview.chromium.org/7955001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102166 0039d316-1c4b-4281-b951-d872f2087c98
* Rename WebIntentData for backend storage to WebIntentServiceData.gbillock@chromium.org2011-09-211-2/+6
| | | | | | | | | | | | Change startActivity IPC to use the WebIntentData struct. R=jhawkins@chromium.org BUG=None TEST=None Review URL: http://codereview.chromium.org/7930002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102069 0039d316-1c4b-4281-b951-d872f2087c98
* Move sending of the following IPC messages out of Chrome\renderer.ananta@chromium.org2011-09-191-6/+22
| | | | | | | | | | | | | | | | | | 1. ViewHostMsg_UserMetricsRecordAction. 2. ViewHostMsg_GetPluginInfo. 3. ViewHostMsg_AllocateSharedMemoryBuffer. 4. ViewHostMsg_PreCacheFont Added helper functions to the RenderView and RenderThread classes to ensure that this functionality continues to work as before. Continuing fixes to ensure that IPC messages don't span across Content and Chrome. BUG=87335 TEST=No change in functionality. Review URL: http://codereview.chromium.org/7919002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101826 0039d316-1c4b-4281-b951-d872f2087c98
* Add notification of virtual keyboard hide/show and change varunjain@chromium.org2011-09-161-6/+4
| | | | | | | | | | | | ScrollFocusedNodeToView IPC to Scroll to a specific location. BUG=none TEST=none Review URL: http://codereview.chromium.org/7903017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101546 0039d316-1c4b-4281-b951-d872f2087c98
* Add messages/handlers for the invocation sequence. Copy from ↵gbillock@chromium.org2011-09-161-0/+11
| | | | | | | | | | | | | | geolocation_dispatcher. Get return path serialization working. R=groby@chromium.org BUG=None TEST=None Review URL: http://codereview.chromium.org/7823002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101536 0039d316-1c4b-4281-b951-d872f2087c98
* Move the handling of the ViewMsg_CustomContextMenuAction and ↵ananta@chromium.org2011-09-131-0/+4
| | | | | | | | | | | | | | ViewMsg_Navigate out of chrome and replace the intended handling with notifications on the RenderViewObserver interface. Continuing changes to get rid of the pattern of IPC messages going across content and chrome. BUG=87335 TEST=no change in functionality. Blocked plugins and about handler should continue to work. Review URL: http://codereview.chromium.org/7880006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100933 0039d316-1c4b-4281-b951-d872f2087c98
* Move TextInputClient from chrome to content.avi@chromium.org2011-09-121-0/+4
| | | | | | | | | BUG=95573 TEST=dictionary popup still works Review URL: http://codereview.chromium.org/7844003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100703 0039d316-1c4b-4281-b951-d872f2087c98
* Disable keyboard input in flash for touch uipenghuang@chromium.org2011-09-071-0/+6
| | | | | | | | | | BUG=None TEST=cros device Review URL: http://codereview.chromium.org/7800044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99976 0039d316-1c4b-4281-b951-d872f2087c98
* Get the rest of the chrome target to build (but not link) with USE_AURA.ben@chromium.org2011-09-061-1/+2
| | | | | | | | | | http://crbug.com/93947 TEST=none Review URL: http://codereview.chromium.org/7839002 Review URL: http://codereview.chromium.org/7839002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99830 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 99810 - Get the rest of the chrome target to build (but not link) ↵ben@chromium.org2011-09-061-2/+1
| | | | | | | | | | | | | with USE_AURA. http://crbug.com/93947 TEST=none Review URL: http://codereview.chromium.org/7839002 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/7840010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99813 0039d316-1c4b-4281-b951-d872f2087c98
* Get the rest of the chrome target to build (but not link) with USE_AURA.ben@chromium.org2011-09-061-1/+2
| | | | | | | | http://crbug.com/93947 TEST=none Review URL: http://codereview.chromium.org/7839002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99810 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 98946 - New windows opened in javascript with target = "_blank" shouldatwilson@chromium.org2011-09-021-0/+2
| | | | | | | | | | | | | | | have an empty name. BUG=88129 TEST=InProcessRenderViewBrowserTest::* Review URL: http://codereview.chromium.org/7497058 TBR=shinyak@google.com Review URL: http://codereview.chromium.org/7800016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99472 0039d316-1c4b-4281-b951-d872f2087c98
* Update base/timer.h code to pass through Location from call sites. (reland) ↵jbates@chromium.org2011-09-021-3/+4
| | | | | | | | original CL w/LGTMs: http://codereview.chromium.org/7812036/ Review URL: http://codereview.chromium.org/7824041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99409 0039d316-1c4b-4281-b951-d872f2087c98
* Add PluginServiceFilter interface and ChromePluginServiceFilter.bauerb@chromium.org2011-09-021-1/+1
| | | | | | | | | | | This should get rid of all references to webkit::npapi::IsPluginEnabled in content/. BUG=80794 TEST=none Review URL: http://codereview.chromium.org/7387010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99355 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Currently, base/timer.cc calls PostTask with FROM_HERE as the Location,mattm@chromium.org2011-09-021-4/+3
| | | | | | | | | | | | so the original code that created the delayed callback is lost." This reverts commit 4cf5cf73d319b69c32ad30af8954235755856455. (r99284) TBR=jbates@chromium.org Review URL: http://codereview.chromium.org/7825026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99290 0039d316-1c4b-4281-b951-d872f2087c98
* Currently, base/timer.cc calls PostTask with FROM_HERE as the Location, so ↵jbates@chromium.org2011-09-021-3/+4
| | | | | | | | | | the original code that created the delayed callback is lost. This change adds a tracked_objects::Location parameter to the APIs in base/timer.h so we can trace the PostTask callbacks. The other files are touched to add the FROM_HERE Location parameter. Review URL: http://codereview.chromium.org/7812036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99284 0039d316-1c4b-4281-b951-d872f2087c98
* Add a big grab bag of missing web accessibilitydmazzoni@chromium.org2011-09-011-17/+48
| | | | | | | | | | | | | | | | | | | functionality on Windows. (Much of this will benefit Mac in a future changelist.) Improvements include dozens of corrected roles and states for various elements, improved support for tables with rowspan and colspan, range control support, and live region support. Also adds a new command-line flag to turn on logging of accessibility events, to help making this type of bug fixing much easier in the future. BUG=89181,89185,89187,89188,89202,89205,89210,89212,89213,89223 TEST=Manual testing with JAWS, NVDA, AViewer, and accProbe. Review URL: http://codereview.chromium.org/7745035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99161 0039d316-1c4b-4281-b951-d872f2087c98
* Moved the following IPC messages used by the chrome NPAPI plugin installer ↵ananta@chromium.org2011-08-311-36/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | out of content into Chrome. 1. PluginProcessHostMsg_GetPluginFinderUrl 2. PluginProcessHostMsg_MissingPluginStatus 3. PluginProcessHostMsg_DownloadUrl These messages are prefixed with Chrome. Removed the InstallMissingPlugin and OnInstallMissingPlugin handlers from the NPAPI plugin sources and from our webkit plugin implementation. The plugin infobar no longer sends over an IPC message to initiate installation of the third party plugin. It sends over a windows message which is handled in the plugin installer for Windows. This functionality is not implemented for the mac and linux as before. To display the plugin installation infobar the PluginProcessHostMsg_MissingPluginStatus message sent by the plugin needs the routing id and the renderer process id. This information is now passed along with the plugin instantiation parameters in NPP_New. These parameters are only read by the default plugin. This is a continuation of the fixes to ensure that IPC's don't span across content and chrome. BUG=87335 Review URL: http://codereview.chromium.org/7812020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99062 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 98716 - Enable Fixed Layout Mode on TOUCH_UI.jam@chromium.org2011-08-311-20/+0
| | | | | | | | | | | | | BUG=none TEST=manually Review URL: http://codereview.chromium.org/7764006 TBR=fsamuel@chromium.org Review URL: http://codereview.chromium.org/7820006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99050 0039d316-1c4b-4281-b951-d872f2087c98
* New windows opened in javascript with target = "_blank" shouldshinyak@google.com2011-08-311-2/+0
| | | | | | | | | | | | have an empty name. BUG=88129 TEST=InProcessRenderViewBrowserTest::* Review URL: http://codereview.chromium.org/7497058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98946 0039d316-1c4b-4281-b951-d872f2087c98
* Treat files downloaded from the address bar as "always safe" (including ↵pkasting@chromium.org2011-08-301-19/+21
| | | | | | | | | | | | | | extensions per discussion with asargent and the extensions folks). This required plumbing the PageTransition::Type from render_view.cc back up through various layers to the download system, as well as adding an extra state qualifier bit on the Type to mark navigations triggered "FROM_ADDRESS_BAR" (since the Type itself sans-qualifier cannot be used to reliably check this). This also fixes an inconsistency in IsDangerousFile() where "auto-open" lowered our safety checks for Dangerous files but not for AllowOnUserGesture files. BUG=87192,92345 TEST=Paste the PDF link from bug 87192 comment 0 into your address bar and hit enter. The file should download without triggering any warning UI in the download shelf. Review URL: http://codereview.chromium.org/7624031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98897 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Fixed Layout Mode on TOUCH_UI.fsamuel@chromium.org2011-08-291-0/+20
| | | | | | | | | | BUG=none TEST=manually Review URL: http://codereview.chromium.org/7764006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98716 0039d316-1c4b-4281-b951-d872f2087c98
* Use the request's URL rather than the document's when deciding to swap.creis@chromium.org2011-08-261-2/+5
| | | | | | | | | | | | | | | | | This allows pages to use a meta-refresh when trying to fork a new renderer process for a cross-site popup. Also migrate some stale/flaky UI tests to browser tests. BUG=93517 BUG=32799 TEST=Use a meta-refresh instead of assigning to w.document.location in http://www.google.com/chrome/intl/en/webmasters-faq.html#newtab Review URL: http://codereview.chromium.org/7740028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98457 0039d316-1c4b-4281-b951-d872f2087c98
* Move P2P code to content namespace.sergeyu@chromium.org2011-08-251-2/+1
| | | | | | | | | BUG=None TEST=Compiles Review URL: http://codereview.chromium.org/7715020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98294 0039d316-1c4b-4281-b951-d872f2087c98
* Fullscreen JS API implementation.koz@chromium.org2011-08-251-1/+14
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/7461059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98193 0039d316-1c4b-4281-b951-d872f2087c98
* Correctly report scaling factor in wrench menufsamuel@chromium.org2011-08-241-2/+7
| | | | | | | | | | BUG=none TEST=manually Review URL: http://codereview.chromium.org/7714037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98097 0039d316-1c4b-4281-b951-d872f2087c98
* Do not ignore notifications that come before a LoadComplete.dtseng@chromium.org2011-08-241-5/+8
| | | | | | | | | | | | In the browser, we currently assume that a page has not loaded until a load complete comes from the renderer. However, this does not appear to be the way WebKit behaves. One can move the focus on a webpage that has not completely loaded for example. In such cases, this patch sends a "fake" load complete to keep with our assumptions before allowing the original notification to go through our previous logic. BUG=90787,93232 TEST=manual (OS X only). Review URL: http://codereview.chromium.org/7712018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98094 0039d316-1c4b-4281-b951-d872f2087c98
* Moved the handling of the IPC message ViewMsg_EnableViewSourceMode to ↵ananta@chromium.org2011-08-221-0/+11
| | | | | | | | | | | | | content (RenderView) as all code which handles this message lives in content. This CL is the first of many changes to ensure that IPCs don't span across content and chrome. BUG=87335 Review URL: http://codereview.chromium.org/7712009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97763 0039d316-1c4b-4281-b951-d872f2087c98
* Update selection handles to keep them in sync with the webpage.varunjain@chromium.org2011-08-201-35/+32
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7670070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97567 0039d316-1c4b-4281-b951-d872f2087c98
* Move the RequestExtraData structure to content/, where we can modify it more ↵pkasting@chromium.org2011-08-201-1/+1
| | | | | | | | | | freely. BUG=87192 TEST=none Review URL: http://codereview.chromium.org/7697009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97539 0039d316-1c4b-4281-b951-d872f2087c98
* Keep normal popups opened from same-origin iframes in an extension process.creis@chromium.org2011-08-181-1/+3
| | | | | | | | | | | | | | This allows the iframe to script the popup, despite being in an extension. Also use safer logic for detecting the popup case. BUG=92669 BUG=87417 TEST=Open a popup from a web iframe inside an extension page and script it. Review URL: http://codereview.chromium.org/7624011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97386 0039d316-1c4b-4281-b951-d872f2087c98
* Add startActivity message processing chromium-side.gbillock@chromium.org2011-08-181-0/+8
| | | | | | | | | | | R=jhawkins@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/7552017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97380 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Kill browser-side rubberband gutter painting.asvitkine@chromium.org2011-08-171-5/+0
| | | | | | | | | | | | | | | Reverts a large chunk of: http://crrev.com/96387 This is now done in the renderer by WebKit. Depends on: https://bugs.webkit.org/show_bug.cgi?id=66226 BUG=88353,92645 TEST=manual Review URL: http://codereview.chromium.org/7671019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97164 0039d316-1c4b-4281-b951-d872f2087c98