summaryrefslogtreecommitdiffstats
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* [Android] Attach RenderWidgetHostView to ContentView at construction time.dfalcantara@chromium.org2012-11-081-1/+4
| | | | | | | | | | | | | | | | | | Upstreaming of downstream CL. This handles the case where during ContentViewCore construction the WebContents being used does not have a RWHV yet and it matches other platforms where new windows in CreateViewForWidget() are shown by default. Original bugs:6937843,6931901 BUG=159063 TBR=ben Review URL: https://chromiumcodereview.appspot.com/11362130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166620 0039d316-1c4b-4281-b951-d872f2087c98
* Test for destroying leveldb directory when we detect corruption or a schema ↵dgrogan@chromium.org2012-11-083-26/+135
| | | | | | | | | | downgrade BUG=156490,158176 Review URL: https://chromiumcodereview.appspot.com/11196029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166600 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Finish hooking up the orientation eventsdfalcantara@chromium.org2012-11-082-0/+56
| | | | | | | | | | | | Upstreaming. Finishes connecting the pipeline required to alert JavaScript observers that the device has been rotated. BUG=159063 Review URL: https://chromiumcodereview.appspot.com/11312134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166596 0039d316-1c4b-4281-b951-d872f2087c98
* Enable GPU watchdog after initializing GL on Chrome OSjbauman@chromium.org2012-11-081-1/+14
| | | | | | | | | | | This was causing errors when developers switched to VT2 on startup. BUG=159137 Review URL: https://chromiumcodereview.appspot.com/11293158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166590 0039d316-1c4b-4281-b951-d872f2087c98
* Browser Plugin: guest_focused = embedder_focused && plugin_focused;fsamuel@chromium.org2012-11-089-20/+123
| | | | | | | | | | | | If the embedder loses focus, so should the guest. If the embedder regains focus, and the BrowserPlugin was focused, so should the guest. BUG=158474 Test=BrowserPluginHostTest.FocusTracksEmbedder Review URL: https://chromiumcodereview.appspot.com/11348040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166568 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for interstitial pages on android.tedchoc@chromium.org2012-11-085-4/+50
| | | | | | | | | | | | | | Required fixes: 1.) Notify webcontents when attaching/detaching the layer associated with the interstitial's RVH. 2.) Expose RVH for interstitials on Android for passing the gestures. BUG=159066 Review URL: https://chromiumcodereview.appspot.com/11366118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166559 0039d316-1c4b-4281-b951-d872f2087c98
* Binary indexeddb test files for http://codereview.chromium.org/11196029/dgrogan@chromium.org2012-11-0710-0/+4
| | | | | | | | | BUG=156490,158176 TBR=jsbell Review URL: https://codereview.chromium.org/11369123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166553 0039d316-1c4b-4281-b951-d872f2087c98
* This adjusts the tile-size to 512x512 for the Nexus 10epenner@chromium.org2012-11-072-0/+28
| | | | | | | | | | | | | | | | | | | quickly. This is so we can work on Manta's scrolling and texture upload performance and compare with m18 which used 512x512 tiles, and find any tile-size related bugs early. In upstream Chrome, there is no code to adjusts the tile size for high-res/dpi displays, so we should implement a generic solution which works across all platforms and devices. This bug tracks this feature: http://crbug.com/159524 BUG=159524 Review URL: https://chromiumcodereview.appspot.com/11358106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166545 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: change protobuf default option to allow buildingphajdan.jr@chromium.org2012-11-071-1/+0
| | | | | | | | | | | | | | | | | | with unpatched system protobuf. This is a preparation for landing https://codereview.chromium.org/11231046/ and a solution chosen because our custom protobuf changes will not be accepted upstream. Setting defaults to optimize for lite runtime and retain unknown fields makes it possible to use the same .proto files with system protobuf. BUG=157155 TEST=none Review URL: https://codereview.chromium.org/11228038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166534 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] remove OVERRIDE from WebTestDelegate implementationjochen@chromium.org2012-11-071-12/+12
| | | | | | | | | | | This makes two-sided patches to the TestRunner library's API easier BUG=111316 Review URL: https://chromiumcodereview.appspot.com/11293154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166532 0039d316-1c4b-4281-b951-d872f2087c98
* Adding histogram for the number of Wifi adapters for Mac.vadimt@chromium.org2012-11-071-0/+8
| | | | | | | | BUG=158787 Review URL: https://chromiumcodereview.appspot.com/11293133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166527 0039d316-1c4b-4281-b951-d872f2087c98
* Using low profile controls in the status bar when playing fullscreen videoqinmin@chromium.org2012-11-071-3/+28
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11279005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166513 0039d316-1c4b-4281-b951-d872f2087c98
* touch: Do not crash if touch-handlers are uninstalled in response to a ↵sadrul@chromium.org2012-11-072-1/+43
| | | | | | | | | | | | | | | touch-event. If a touch-event handler removes all the touch event handlers on the page in response to a touch-event, then the touch-queue for that page will have been flushed by the time the ACK for the event comes in. Handle such cases gracefully to avoid a crash. BUG=157783 Review URL: https://codereview.chromium.org/11378002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166509 0039d316-1c4b-4281-b951-d872f2087c98
* Remove knowledge about the view's window from the renderer.jam@chromium.org2012-11-0710-45/+19
| | | | | | Review URL: https://codereview.chromium.org/11359089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166499 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for external out-of-process PPAPI plugins in the browser.bbudge@chromium.org2012-11-0717-130/+193
| | | | | | | | | | | | | | | | - Modifies content::BrowserPpapiHostImpl so it's not ref-counted. - Adds a public content API method, BrowserPpapiHost::CreateExternalPluginProcess which allows the embedder to associate a browser ppapi host with a plugin process. - Adds a public content API method, ContentBrowserClient::GetExternalBrowserPpapiHost, so content can track instance creation and deletion for external plugins (e.g. NaCl) - Removes the content API method EnablePepperSupportForChannel. This is now done when creating the BrowserPpapiHost. BUG=116317 TEST=none Review URL: https://chromiumcodereview.appspot.com/11368019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166480 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 166461 - [content shell] remove OVERRIDE from WebTestDelegate ↵scottmg@google.com2012-11-071-12/+12
| | | | | | | | | | | | | | | | | | | | | | implementation Broke Android compile. Failed try, but CQ ignores Android apparently. :( http://build.chromium.org/p/chromium.linux/builders/Android%20Clang%20Builder%20%28dbg%29/builds/729/steps/compile/logs/stdio#error1 This makes two-sided patches to the TestRunner library's API easier BUG=111316 Review URL: https://chromiumcodereview.appspot.com/11366131 TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/11368121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166467 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] remove OVERRIDE from WebTestDelegate implementationjochen@chromium.org2012-11-071-12/+12
| | | | | | | | | | | This makes two-sided patches to the TestRunner library's API easier BUG=111316 Review URL: https://chromiumcodereview.appspot.com/11366131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166461 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DownloadManager::Observer::ModelChangedbenjhayden@chromium.org2012-11-078-91/+47
| | | | | | | | | This signal is too coarse and is replaced by DownloadManager::Observer::OnDownloadCreated and DownloadItem::Observer::OnDownloadRemoved/OnDownloadDestroyed. Review URL: https://chromiumcodereview.appspot.com/10928119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166453 0039d316-1c4b-4281-b951-d872f2087c98
* Push the screen rect of the page and browser to the renderer to avoid sync ↵jam@chromium.org2012-11-0718-154/+132
| | | | | | | | | IPCs to get this. The old approach doesn't work in Win Aura since the data is only available on the UI thread and we can't make a sync IPC call to it. This change also removes the last remaining usage of the view HWND. I'll clean that up in a future change to not clutter this one. Review URL: https://codereview.chromium.org/11364061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166446 0039d316-1c4b-4281-b951-d872f2087c98
* Prefer 'Content-Security-Policy' to 'X-WebKit-CSP'.mkwst@chromium.org2012-11-072-4/+4
| | | | | | | | | | | | | | Support for the canonical CSP header landed in wkrev.com/133095. This CL migrates the various places inside Chromium that use the prefixed header over to the new hotness. BUG=151857 TBR=aa@chromium.org,michaeln@chromium.org,sky@chromium.org,estade@chromium.org,kinuko@chromium.org,willchan@chromium.org,phajdan.jr@chromium.org Review URL: https://chromiumcodereview.appspot.com/11368048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166435 0039d316-1c4b-4281-b951-d872f2087c98
* Provide mutable members of UrlRequestContext via pure-virtual interface. ↵pauljensen@chromium.org2012-11-073-4/+13
| | | | | | | | | | Create a pure-virtual interface called HttpUserAgentSettings that provides access to the Accept-Language, Accept-Charset, and User-Agent HTTP headers. Each UrlRequestContext should have a HttpUserAgentSettings implementation attached via set_http_user_agent_settings(). BUG=146596 Review URL: https://chromiumcodereview.appspot.com/10918279 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166425 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for html select state not restored when app brought to foreground from ↵aruslan@chromium.org2012-11-071-0/+1
| | | | | | | | | | | | | | | | | background. BUG=139760 TEST=As described in the bug. When power button or home key is pressed, ChromeView's onActivityPause dismisses the SelectPopupDialog. But this is not known to native code. Next time user clicks a select box, renderer(RenderViewImpl::createExternalPopupMenu) assumes the previously created external_popup_menu_ is still visible and doesn't show it again. Fix is to let the native code know that the popup menu is dismissed. Original CL: https://chromiumcodereview.appspot.com/10837075/ Review URL: https://chromiumcodereview.appspot.com/11365008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166424 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Simplifies LibraryLoader API.bulach@chromium.org2012-11-071-99/+0
| | | | | | | | | | | | The application can handle it by loading in a background thread. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/11344037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166415 0039d316-1c4b-4281-b951-d872f2087c98
* Restructure memory management function inccameron@chromium.org2012-11-072-98/+111
| | | | | | | | | | | | preparation for allowing backgrounded tabs to have memory. BUG=134750 Review URL: https://chromiumcodereview.appspot.com/11369115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166413 0039d316-1c4b-4281-b951-d872f2087c98
* Adds android folks as OWNERS for content/content_jni.gypibulach@chromium.org2012-11-071-0/+2
| | | | | | | | | | | | Avoids requesting rubberstamps for this android-specific file. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/11360097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166403 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb drag event info through from the renderer. This CL appends the followingvarunjain@chromium.org2012-11-0726-32/+125
| | | | | | | | | | | | | | | | two pieces of information to the StartDragging IPC: 1. Whether the drag was started by a touch event or mouse event 2. The location of drag start. This information is needed for chromeos and was currently being read from the platform. But that is not possible (also not correct) for touch based drag/drop. So we pass this information from the renderer. BUG=114755 Review URL: https://chromiumcodereview.appspot.com/11369102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166401 0039d316-1c4b-4281-b951-d872f2087c98
* Track the total amount of managed memory allocated by all clients.ccameron@chromium.org2012-11-073-68/+192
| | | | | | | | | | | | | | Remove tracking of the historical maximum, since it wasn't used. Also move the ifdef-heavy const function out of the header and into the source file. BUG=134750 Review URL: https://chromiumcodereview.appspot.com/11366082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166393 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid watching for plugin updates on Androiddfalcantara@chromium.org2012-11-072-7/+7
| | | | | | | | | | | | Chrome doesn't support plugins on Android, so we shouldn't monitor the plugins directory for any new ones that appear. BUG=159063 Review URL: https://chromiumcodereview.appspot.com/11364106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166378 0039d316-1c4b-4281-b951-d872f2087c98
* IPC to generate mailbox names on the GPU process IO thread.apatrick@chromium.org2012-11-076-0/+99
| | | | | | | | This allows the browser and renderer processes to get new unique mailbox names without syncing with the GPU process main thread. Review URL: https://chromiumcodereview.appspot.com/11362053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166351 0039d316-1c4b-4281-b951-d872f2087c98
* Tentatively reenable MediaTest.VideoTulipWebm on Mac.scherkus@chromium.org2012-11-071-7/+0
| | | | | | | | | | | The corresponding WebKit bug 94365 has been fixed and flakiness dashboard hasn't reported a recent failure. BUG=142896 TBR=jam Review URL: https://chromiumcodereview.appspot.com/11364104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166335 0039d316-1c4b-4281-b951-d872f2087c98
* Set supported sampling rate for platforms other than linux, bsd, win and mac.wjia@chromium.org2012-11-072-6/+16
| | | | | | | To compile on android, kValidOutputRates and kValidInputRates need to be defined. Review URL: https://codereview.chromium.org/11359075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166327 0039d316-1c4b-4281-b951-d872f2087c98
* Remove --disable-audio from tests.dalecurtis@chromium.org2012-11-071-16/+0
| | | | | | | | | | | | | | Now that we have support for fake audio streams when a real audio device is not present, we should be able to remove this flag. BUG=120749 TEST=fingers crossed! (works locally at least) TBR=jam,dalecurtis Review URL: https://chromiumcodereview.appspot.com/11362121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166315 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream a fix for fulscreen video after resuming from screen lockqinmin@chromium.org2012-11-061-1/+4
| | | | | | | | | | | Cherrypick from m18 BUG=137065 Review URL: https://chromiumcodereview.appspot.com/11363111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166302 0039d316-1c4b-4281-b951-d872f2087c98
* Do not attempt to sync os.Trace on pre-JB installs as it doesn't exist.tedchoc@chromium.org2012-11-061-19/+23
| | | | | | | | | | This causes unnecessary error logging. BUG= Review URL: https://codereview.chromium.org/11360070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166301 0039d316-1c4b-4281-b951-d872f2087c98
* Push ContentViewCore size change to RWHVdtrainor@chromium.org2012-11-069-20/+52
| | | | | | | | | | | | | | | - Properly propagate onSizeChanged events to ContentViewCore native and RWHVA. - Tie RWHVA's size to the ContentViewCore, making sure it always pulls the right size. - Fix what looks like a bug in TextureImageTransportSurface (thanks sievers@!). We were exposing the size of the old buffer through GetSize() when we were dispatching swap messages. BUG=http://crbug.com/158430 Review URL: https://chromiumcodereview.appspot.com/11367021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166288 0039d316-1c4b-4281-b951-d872f2087c98
* Reloading a view-source: page from the devtools loads the original ↵pfeldman@chromium.org2012-11-061-2/+4
| | | | | | | | | | | (non-view-source) page BUG=112701 Review URL: https://chromiumcodereview.appspot.com/11365031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166287 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Add flag to indicate if a drag session is started with touch or mouse.varunjain@chromium.org2012-11-061-1/+3
| | | | | | | | | BUG=114755 Review URL: https://chromiumcodereview.appspot.com/11368072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166278 0039d316-1c4b-4281-b951-d872f2087c98
* Add two crash keys for debugging to record Text Input Services information ↵rsesek@chromium.org2012-11-061-0/+17
| | | | | | | | | | | in the renderer. BUG=152566 Review URL: https://chromiumcodereview.appspot.com/11363106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166275 0039d316-1c4b-4281-b951-d872f2087c98
* Merge most instances of DownloadSaveInfo into DownloadUrlParams.rdsmith@chromium.org2012-11-065-30/+47
| | | | | | | | | | | This simplifies the programmatic interface for downloads. R=benjhayden@chromium.org Review URL: https://chromiumcodereview.appspot.com/11338045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166269 0039d316-1c4b-4281-b951-d872f2087c98
* Disable multisampling for Intel GPUs on Maczmo@google.com2012-11-061-2/+13
| | | | | | | | | | | It causes corrupted rendering. BUG=137303 TEST=content_unittests TBR=kbr Review URL: https://codereview.chromium.org/11293123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166261 0039d316-1c4b-4281-b951-d872f2087c98
* No further GPUInfo update once we fallback to SwiftShader.zmo@google.com2012-11-063-6/+56
| | | | | | | | | | | | Otherwise because we have no further access to D3D devices, we will fail to collect driver date, etc., and then blacklisting will be based on incomplete GPUInfo. This causes about:gpu to mis-behave when --blacklist-webgl is passed in and SwiftShader is installed. BUG=158377 TEST=content_unittests, about:gpu Review URL: https://codereview.chromium.org/11364060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166260 0039d316-1c4b-4281-b951-d872f2087c98
* Adding histogram for Windows Mac scan latency.vadimt@chromium.org2012-11-061-0/+13
| | | | | | | | BUG=158787 Review URL: https://chromiumcodereview.appspot.com/11312075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166257 0039d316-1c4b-4281-b951-d872f2087c98
* win: Make sure the modifier is set correctly for touch-events.sadrul@chromium.org2012-11-061-0/+3
| | | | | | | | | | | | | This also fixes the modifiers for gesture events. The gesture events on windows used to explicitly set the modifiers, but the right thing to do is to set the modifiers appropriately on touch-events, and the gesture events will inherit that. BUG=159330 Review URL: https://codereview.chromium.org/11293102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166251 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up the interface between GpuMemoryManager and GpuCommandBufferStub.ccameron@chromium.org2012-11-069-468/+487
| | | | | | | | | | | | Change the meaning of GPU memory manager client to a stub. Maintain a list of stubs in the GPU memory manager. BUG=134750 Review URL: https://chromiumcodereview.appspot.com/11363075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166197 0039d316-1c4b-4281-b951-d872f2087c98
* Set up include rules for webkit/dom_storage.marja@chromium.org2012-11-066-18/+31
| | | | | | | | | | | | | | | This limits which files can include headers from webkit/dom_storage, and it forces the access to go via libcontent. Refactoring: moving (Local|Session)StorageUsageInfo away from DomStorageContext and allowing the inclusion of dom_storage_types.h. BUG=156446 Review URL: https://chromiumcodereview.appspot.com/11361096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166196 0039d316-1c4b-4281-b951-d872f2087c98
* Android: uses an object rather than the Boolean for synchronizing LibraryLoad.bulach@chromium.org2012-11-061-4/+5
| | | | | | | | | BUG=159173 Review URL: https://chromiumcodereview.appspot.com/11312066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166193 0039d316-1c4b-4281-b951-d872f2087c98
* Android: disable use of libyuv.torne@chromium.org2012-11-062-2/+9
| | | | | | | | | | | | | The Anrdoid WebView build doesn't have libyuv, so the code depending on it was broken there. It doesn't look like we need this on Android at all, so just disable it based on OS for now; this can be revisited if it's needed later. BUG= Review URL: https://codereview.chromium.org/11366084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166190 0039d316-1c4b-4281-b951-d872f2087c98
* Removing support for PeerConnection00tommyw@chromium.org2012-11-0619-993/+0
| | | | | | | | | | | This patch removes all relevant files from Chromium; no new functionality at all. BUG=159406 Review URL: https://chromiumcodereview.appspot.com/11293092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166187 0039d316-1c4b-4281-b951-d872f2087c98
* RenderWidgetHostViewMacTest: reset the old rwhv after destroying the rwhv_macmattm@chromium.org2012-11-061-3/+3
| | | | | | | | | BUG=159468 Review URL: https://chromiumcodereview.appspot.com/11364094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166162 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize renderer color preferences to reasonable defaults.avi@chromium.org2012-11-063-24/+11
| | | | | | | | | | BUG=158422 TEST=as in bug Review URL: https://chromiumcodereview.appspot.com/11365096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166146 0039d316-1c4b-4281-b951-d872f2087c98