summaryrefslogtreecommitdiffstats
path: root/content/common
Commit message (Collapse)AuthorAgeFilesLines
* Add a gyp flag to allow removing dependency on ppapi.nileshagrawal@chromium.org2012-12-051-0/+2
| | | | | | | | | | | | | | | - Introduces a new macro ENABLE_PLUGINS - Create a new PluginDelegateHelper interface which is used by RenderViewImpl This flag will be used to remove all plugins related code from the Android build. BUG=162667 Review URL: https://chromiumcodereview.appspot.com/11414180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171162 0039d316-1c4b-4281-b951-d872f2087c98
* The refactors PPB_Flash_File_ModuleLocal/FileRef to the new resource model. ↵raymes@chromium.org2012-12-042-1/+4
| | | | | | | | Calls for both these interfaces are now made directly to the browser. This removes the in-process implementation for these interfaces also (as they are flash-only). Tests are added for PPB_Flash_File_ModuleLocal. Review URL: https://codereview.chromium.org/11359097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171080 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 170701 since the WebKit change has now been rolled in again.tommi@chromium.org2012-12-041-3/+3
| | | | | | | | | | | | | | | | | | | | | > Revert 170668 > Needs to revert this because its WebKit patch was unrolled. > (See r136319, unreviewed, rolling out r136236). > > Update the Speech Api to support array(s) of result items > > instead of a single item at a time. > > > > BUG=143124 > > TEST=Covered by content_unittests > > > > Review URL: https://chromiumcodereview.appspot.com/11421103 > > TBR=tommi@chromium.org > Review URL: https://codereview.chromium.org/11416310 TBR=tasak@google.com Review URL: https://codereview.chromium.org/11316330 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170920 0039d316-1c4b-4281-b951-d872f2087c98
* Associate audio streams with their source/destination RenderView.miu@chromium.org2012-12-041-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a first step towards implementing three major Chromium features, all of which need to associate audio outputs with their source tabs. See BUGs referenced by this change for more details. Previous attempt/approach: https://codereview.chromium.org/11166002/ Specifics: 1. Added two new IPC messages: AudioHostMsg_AssociateStreamWithProducer and AudioInputHostMsg_AssociateStreamWithConsumer. 2. Added "associate to render_view_id" IPC calls: PepperPlatformAudioInputImpl, PepperPlatformAudioOutputImpl, RenderAudioSourceProvider, RendererWebAudioDeviceImpl, WebRtcAudioRenderer. 3. AudioOutputDevice instances re-use the same stream IDs. 4. Removed AudioDeviceFactory and replaced test-injection scheme in AudioRendererMixerManager. Not in scope: 1. Associating RenderViews with audio input to WebRTC. 2. Associating RenderViews with streams produced by the AudioRendererMixer. 3. Speech Input (implementation is in the browser process, not the render process). Testing method: Confirm correct render_view_id shows up in debug logging when engaging the various audio code paths. Some of the many test sites used: 1. PPAPI (in and out): http://www.midomi.com/index.php?action=main.mic_check 2. WebMediaPlayer (e.g., <audio> and <video>): http://html5video.org/ 3. WebAudio API: http://chromium.googlecode.com/svn/trunk/samples/audio/convolution-effects.html 4. WebRTC (output only): http://apprtc.appspot.com/ BUG=3541,64215,153392 TEST=Enabled debug logging via --vmodule=audio_renderer_host=1,audio_input_renderer_host=1 and then engaged the various Chrome audio code paths to confirm correct render_view_id shows up in browser process. Review URL: https://chromiumcodereview.appspot.com/11359196 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170919 0039d316-1c4b-4281-b951-d872f2087c98
* Revert an occasional change of Trap to UnsafeTrapglider@chromium.org2012-12-041-3/+3
| | | | | | | | | BUG=127536 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11416336 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170894 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Use skia::RefPtr in place of raw pointers and SkAutoTUnref.danakj@chromium.org2012-12-042-3/+7
| | | | | | | | | | | | | Safe reference counting for skia objects ahoy! R=jamesr BUG=163454 Depends on: https://codereview.chromium.org/11418217/ NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11412255 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170889 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the sandbox to actually allow __NR_sched_getaffinity under ASan.glider@google.com2012-12-041-7/+7
| | | | | | | BUG=127536 Review URL: https://codereview.chromium.org/11434097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170883 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Add CompositorFrame class with IPC param traits for itdanakj@chromium.org2012-12-043-3/+181
| | | | | | | | | | | | | | Tests: content_unittests:CCMessagesTest.AllQuads content_unittests:CCMessagesTest.Resources BUG=152337 R=piman NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11308306 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170853 0039d316-1c4b-4281-b951-d872f2087c98
* Allow ASanified Chrome to use sched_getaffinityglider@google.com2012-12-031-0/+8
| | | | | | | BUG=127536 Review URL: https://codereview.chromium.org/11418277 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170827 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 170668tasak@google.com2012-12-031-3/+3
| | | | | | | | | | | | | | | | | Needs to revert this because its WebKit patch was unrolled. (See r136319, unreviewed, rolling out r136236). > Update the Speech Api to support array(s) of result items > instead of a single item at a time. > > BUG=143124 > TEST=Covered by content_unittests > > Review URL: https://chromiumcodereview.appspot.com/11421103 TBR=tommi@chromium.org Review URL: https://codereview.chromium.org/11416310 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170701 0039d316-1c4b-4281-b951-d872f2087c98
* Update the Speech Api to support array(s) of result itemstommi@chromium.org2012-12-011-3/+3
| | | | | | | | | | | instead of a single item at a time. BUG=143124 TEST=Covered by content_unittests Review URL: https://chromiumcodereview.appspot.com/11421103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170668 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Fix poster circle resize on Alex.backer@chromium.org2012-11-301-1/+1
| | | | | | | | | | | | Only resize the old front buffer (now back buffer) if we flipped. BUG=159880 TEST=by hand as per bug Review URL: https://chromiumcodereview.appspot.com/11280257 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170593 0039d316-1c4b-4281-b951-d872f2087c98
* Let content_unittests almost build with the components build on androidthakis@chromium.org2012-11-303-15/+22
| | | | | | | | | BUG=158821 TBR=fischman Review URL: https://codereview.chromium.org/11428122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170586 0039d316-1c4b-4281-b951-d872f2087c98
* Messages needed for webview compositor communication.alexst@chromium.org2012-11-301-0/+37
| | | | | | | | | | | | | Browser needs to communicate with the embedder when the guest renderer swaps hardware buffers. Embedder needs to provide textures for the guest to render into. BUG=143429 Review URL: https://chromiumcodereview.appspot.com/11364133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170575 0039d316-1c4b-4281-b951-d872f2087c98
* Do DXVA pre-sandbox initialization off the main thread.apatrick@chromium.org2012-11-303-26/+50
| | | | | | | | | | This improves startup time by about 20ms. BUG=163215 Review URL: https://chromiumcodereview.appspot.com/11411249 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170568 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: Add async upload functions.epenner@chromium.org2012-11-302-0/+52
| | | | | | | | | | | | | | Just adding the API first to unblock other CLs and so we can start to use the API. Async tasks are just done synchronously, and the completion query is set immediately when it executes in the GPU process. BUG=161337 Review URL: https://chromiumcodereview.appspot.com/11412232 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170516 0039d316-1c4b-4281-b951-d872f2087c98
* Move RenderStats enumeration out of gpu_benchmarking_extension.hartmanng@chromium.org2012-11-302-0/+21
| | | | | | | | | | | | With this patch, we won't have to keep modifying gpu_benchmarking_extension when we add new fields to RenderStats. BUG=163073 Review URL: https://chromiumcodereview.appspot.com/11280210 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170474 0039d316-1c4b-4281-b951-d872f2087c98
* Remove old transaction() call, proxies, and messages.alecflett@chromium.org2012-11-303-43/+1
| | | | | | | | | BUG=161958 Review URL: https://chromiumcodereview.appspot.com/11348254 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170463 0039d316-1c4b-4281-b951-d872f2087c98
* gpu: don't try to discard/recreate backbuffer while draws are deferred.piman@chromium.org2012-11-304-3/+34
| | | | | | | | | BUG=None Review URL: https://chromiumcodereview.appspot.com/11316238 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170366 0039d316-1c4b-4281-b951-d872f2087c98
* vda_unittest: skip H264 NALUs until first SPSsheu@chromium.org2012-11-301-19/+58
| | | | | | | | | | | | | | | | | | An H264 stream decode cannot start until it encounters the first SPS (sequence parameter set) NALU, which encodes things like picture width, height, etc. video_decode_accelerator_unittest should skip initial NALUs until it encounters the first SPS, and only feed the decode NALUs starting with that one. TEST=local build, run on ARM, unittests on ARM BUG=None Change-Id: Ib8e47cb8058bd18adc3a85ca01b754736300226c Review URL: https://chromiumcodereview.appspot.com/11316183 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170347 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid actual MakeCurrent() calls with virtual contexts.sievers@chromium.org2012-11-301-0/+2
| | | | | | | | | | | | | | When switching to a context that only renders to an FBO, and when the underlying GL surface handle does not change, avoid calling GLContext::MakeCurrent(). BUG=160710 Review URL: https://chromiumcodereview.appspot.com/11308252 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170323 0039d316-1c4b-4281-b951-d872f2087c98
* CrOS: Add hotkey for disabling the GPU watchdog timer.backer@chromium.org2012-11-301-0/+3
| | | | | | | | | | | | This works around the fact that switching to VT1 on CrOS prevents swaps from clearing, which hangs the GPU process, which causes the GPU process to get killed. Sometimes in order to diagnose a problem, we want to switch to VT1. This hotkey allows a developer to do that. TEST=by hand; Ctrl-Shift-Alt-G; then go about://gpuhang; UI should freeze and not unstick after 10 seconds BUG=chromium-os:28253 Review URL: https://chromiumcodereview.appspot.com/11348099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170309 0039d316-1c4b-4281-b951-d872f2087c98
* Change the InputEventAck codepath to use a tri-state-enum instead of a booleanyusufo@chromium.org2012-11-301-1/+3
| | | | | | | | | | | | | Right now whenever an input event ACK is sent back to render_widget_host_impl we do not distinguish between events that are returned because they didn't hit any touch event handlers vs events not handled by touch event handler when there is a hit. This change adds a tri-state enum to the IPC message that will be used to distinguish NotProcessed touch events from Returned touch events. BUG=135818 Review URL: https://chromiumcodereview.appspot.com/11363133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170304 0039d316-1c4b-4281-b951-d872f2087c98
* Move gl_bindings_skia_cmd_buffer into webkit_gpu and make the latter a componentpiman@chromium.org2012-11-301-2/+2
| | | | | | | | | | | | | | | | | | webkit_gpu (implicitly) depends on webkit_glue (and its deep dependencies) just because of this. Moving gl_bindings_skia_cmd_buffer here allows ui/compositor to just depend on webkit_gpu and not glue any more. It also makes somewhat more sense. webkit_gpu should be a component because it's used by both ui/compositor and content/. I think we've been lucky so far without it because each component uses a different subset of webkit_gpu. BUG=159278 Review URL: https://chromiumcodereview.appspot.com/11348231 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170303 0039d316-1c4b-4281-b951-d872f2087c98
* Flip texture on copy for readback.dtrainor@chromium.org2012-11-292-12/+53
| | | | | | | | | | | | | | | | | We need to vertically flip this texture. ContentViewCore#getBitmap() is used to also populate the thumbnail database for the most visited of the NTP. We can't return a flipped bitmap there. We could always flip it back but that's going to slow down an already slow process. This also future proofs the use of the API. Also have to change uses of the resulting bitmap to flip downstream. BUG=http://crbug.com/158696 Review URL: https://chromiumcodereview.appspot.com/11364227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170266 0039d316-1c4b-4281-b951-d872f2087c98
* Support creating virtual contexts.sievers@chromium.org2012-11-292-18/+51
| | | | | | | | | | | | | | | This creates virtual contexts within a GLShareGroup, when '--enable-virtual-gl-contexts' is given on the command line. It requires the shared real GL context, which is created from the default offscreen surface configuration, to be compatible with any surface that is made current with a virtual context. BUG=160710 Review URL: https://chromiumcodereview.appspot.com/11308151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170148 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for int64-based transaction ids.alecflett@chromium.org2012-11-285-9/+46
| | | | | | | | | BUG=161958 Review URL: https://chromiumcodereview.appspot.com/11412091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170040 0039d316-1c4b-4281-b951-d872f2087c98
* Do not request change in minimum buffers for output port.shivdasp@nvidia.com2012-11-281-2/+1
| | | | | | | | | | | | | | | While calling OMX_SetParameter(IndexParamPortDefinition), do not change the minimum buffers, request only the increased actual buffers. As a side-effect, the change in condition for DCHECK as some omx implementations may have lesser than 8 minimum buffers configured for a port. BUG: chrome-os-partner:15311 TEST: Play any H.264 video from USB and verify if it uses h/w decode Review URL: https://chromiumcodereview.appspot.com/11348151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170014 0039d316-1c4b-4281-b951-d872f2087c98
* Remove setVersion plumbing from chromiumdgrogan@chromium.org2012-11-285-63/+0
| | | | | | | | | BUG=161542 Review URL: https://chromiumcodereview.appspot.com/11316205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169857 0039d316-1c4b-4281-b951-d872f2087c98
* Add alecflett to OWNERS of IDB directoriesdgrogan@chromium.org2012-11-271-0/+1
| | | | | | Review URL: https://codereview.chromium.org/11412203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169782 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused opener_url from DidStartProvisionalLoad.creis@chromium.org2012-11-271-4/+2
| | | | | | | | | | | | | The value is unused and potentially incorrect, leading to problems in the browser process. BUG=143155 TEST=kSwappedOutURL DCHECK in FilterURL doesn't fire. Review URL: https://chromiumcodereview.appspot.com/11299019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169756 0039d316-1c4b-4281-b951-d872f2087c98
* Animation code is not yet migrated by this patch, due to WebTransformOperations.shawnsingh@chromium.org2012-11-273-70/+77
| | | | | | | | BUG=159972 Review URL: https://codereview.chromium.org/11308153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169609 0039d316-1c4b-4281-b951-d872f2087c98
* Browser Plugin: Implement asynchronous Resize and Autosizefsamuel@chromium.org2012-11-261-26/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | Resize state is grouped into two sets of params: BrowserPluginHostMsg_AutoSize_Params BrowserPluginHostMsg_ResizeGuest_Params As suggested by the names, the former is autosize state and the latter is standard resize state. This patch enables asynchronous resize and autosize state pushes to the guest process from BrowserPlugin. It also supports flow control of these state pushes. When updated autosize or resize state is pushed to the guest, the guest responds with a ViewHostMsg_UpdateRect that is then propagated to the BrowserPlugin via a BrowserPluginMsg_UpdateRect message. When BrowserPlugin is resized, if there is no pending state push without an associated UpdateRect, then BrowserPlugin allocates an appropriately sized damage buffer |pending_damage_buffer_| and issues an asynchronous "SetAutoSize" or "ResizeGuest" to the browser process with a handle to the new damage buffer. Every UpdateRect the BrowserPlugin receives holds a handle to the damage buffer that was used to copy pixels over to the embedder. Once the browser process begins to use the |pending_damage_buffer_| then the current damage buffer is dropped and the pending buffer becomes the current buffer. If resize or autosize state changes in BrowserPlugin while there's a pending damage buffer, then no additional resize messages get sent. Instead, BrowserPlugin waits until an UpdateRect arrives that uses the pending buffer before pushing new state to the browser process, and guest. BUG=155915 Review URL: https://chromiumcodereview.appspot.com/11369185 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169534 0039d316-1c4b-4281-b951-d872f2087c98
* Deprecate and remove unused PPB_Flash functions.raymes@chromium.org2012-11-261-3/+0
| | | | | | | | | | | | | | | | | | | There are a number of functions in PPB_Flash which have been unused for some time. These are: RunMessageLoop/QuitMessageLoop - Deprecated in M18 GetSettingInt - Deprecated in M21 GetDeviceID - Deprecated in M21 InvokePrinting - Deprecated in M21 This change removes the implementations of those functions so that they do not have to be implemented in the new proxy. It also marks them as deprecated in PPB_Flash for version 13.0. The change also removes PPB_Flash interfaces which are <12.4 because they are pre-M21. BUG= Review URL: https://chromiumcodereview.appspot.com/11411102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169516 0039d316-1c4b-4281-b951-d872f2087c98
* Add flag for disabling touch adjustment.kevers@chromium.org2012-11-261-0/+1
| | | | | | | | | BUG=158759 Review URL: https://chromiumcodereview.appspot.com/11418037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169501 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Create param traits for cc::RenderPass and its contained classes.danakj@chromium.org2012-11-224-0/+812
| | | | | | | | | | | | | Tests: content_unittests:CCMessagesTest.AllQuads R=piman BUG=152337 Depends on: https://codereview.chromium.org/11413106/ Review URL: https://chromiumcodereview.appspot.com/11418111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169309 0039d316-1c4b-4281-b951-d872f2087c98
* Add page scale min/max to UpdateFrameInfo.aelias@chromium.org2012-11-221-1/+3
| | | | | | | | | | | | This information wasn't getting propagated to Android's ContentViewCore, causing a bug with double-tap zooming. BUG=161934 Review URL: https://chromiumcodereview.appspot.com/11299144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169201 0039d316-1c4b-4281-b951-d872f2087c98
* Don't let SandboxSeccompBpf::StartSandbox fail silently.jln@chromium.org2012-11-223-7/+20
| | | | | | | | | | | | | | | | We don't let SandboxSeccompBpf::StartSandbox() fail silently if it is called while threads are running anymore. This does not change the current behavior since we are detecting threads even before calling SandboxSeccompBpf::StartSandbox(). But this is the first step towards making sandbox initialization fail harder on unexpected outcomes. BUG=162334 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11419124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169187 0039d316-1c4b-4281-b951-d872f2087c98
* Convert touch events to tristate flag.flackr@chromium.org2012-11-211-0/+1
| | | | | | | | | | | | When set to auto touch events are enabled when we believe there is a touch device attached (i.e. when pointer:coarse is true). BUG=159527 TEST=Set flag to enabled/auto/disabled, test (document.body.ontouchstart !== undefined). Review URL: https://chromiumcodereview.appspot.com/11410092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169131 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for GL_CHROMIUM_pixel_transfer_buffer_object.reveman@chromium.org2012-11-212-0/+13
| | | | | | | | | | | | | | | | | This adds two new types of buffer objects, GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM and GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM. The PIXEL_PACK buffer affects API calls that pack pixel data, such as glReadPixels. The PIXEL_UNPACK buffer affects API calls that unpack pixel data, such as glTexImage2D. These new buffer object are backed by shared memory, which allows clients to update them without any unnecessary copying. BUG=111096,161337 TEST=unit tests Review URL: https://chromiumcodereview.appspot.com/10440019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168999 0039d316-1c4b-4281-b951-d872f2087c98
* [base] Move AutoReset to base namespace.dbeam@chromium.org2012-11-211-1/+1
| | | | | | | | | | | NOTRY=true R=darin@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/11308132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168978 0039d316-1c4b-4281-b951-d872f2087c98
* This is a fix for http://code.google.com/p/chromium/issues/detail?id=128506 ↵edisonn@google.com2012-11-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | - Random Chinese/Japanese characters are missing in documents printed via the system print dialog on Windows XP SP3 The cause of the bug is that ensureFontLoaded just does not work for the printing thread because GetTextMetrics(font) is not guaranteed to load the TrueType font for an HDC build from CreateEnhMetaFile. The only way I found to force font loading is to create a dummy HDC with CreateEnhMetaFile and then print the offending character(s). This change contains: - wirings for foo_CacheFontCharacters similar with foo_CacheFont, but with dispatch this message in RenderMessageFilter and defined in view_messages.h - SkFontHost::EnsureTypefaceCharactersAccessible similar with SkFontHost::EnsureTypefaceAccessible - Small refactoring of ExtTextOut call which would - Call ExtTextOut - If failed, calls SkFontHost::EnsureTypefaceCharactersAccessible - call ExtTextOutAgain and return success/failure - the calller will default to a skia paintPath (lower quality, but correct) if above fails Notice: No tests for now, lets's make sure the design is right, then I will add tests too. Contributed by edisonn@google.com Review URL: https://chromiumcodereview.appspot.com/11363008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168943 0039d316-1c4b-4281-b951-d872f2087c98
* Browser Plugin: Simplified BrowserPluginManagerfsamuel@chromium.org2012-11-201-43/+42
| | | | | | | | | | | | | | | | | | | | | | BrowserPluginManager is no longer a singleton. BrowserPluginManager is now a RenderViewObserver. All BrowserPluginMsg_* are routed which means they're targeted at a particular RenderView. This means that more than one BrowserPluginManager can exist per process. BrowserPluginManager is now refcounted and so it exists as long as a BrowserPlugin or RenderViewImpl holds a reference to it. In tests, we inject a BrowserPluginManagerFactory that creates MockBrowserPluginManagers. BUG=159936 Test=BrowserPluginTest.*, BrowserPluginHostTest.* Review URL: https://chromiumcodereview.appspot.com/11416074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168920 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Seccomp-BPF sandbox for renderers/workers and PPAPI processes on i386.jorgelo@chromium.org2012-11-201-13/+29
| | | | | | | | | | | | Take 2. BUG=159723 TEST=desktopui_BrowserTest, VMTest on cros_x86, linux_rel_precise Review URL: https://chromiumcodereview.appspot.com/11308061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168899 0039d316-1c4b-4281-b951-d872f2087c98
* Remove usage of WebScreenInfo.{horizontal,vertical}DPIskyostil@chromium.org2012-11-201-2/+0
| | | | | | | | | BUG=158858 Review URL: https://chromiumcodereview.appspot.com/11412071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168801 0039d316-1c4b-4281-b951-d872f2087c98
* Raise an infobar and deny access to WebGL if a GPU reset was detected while ↵kbr@chromium.org2012-11-201-0/+18
| | | | | | | | | | | | | | | | a web page containing WebGL content was visible. The same mechanism will work for Pepper 3D but has not been hooked up for that API yet. https://bugs.webkit.org/show_bug.cgi?id=101826 added the hooks out through the Chromium WebKit API. BUG=125125 TEST=GPUCrashTest.ContextLossRaisesInfobar Review URL: https://chromiumcodereview.appspot.com/11378008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168794 0039d316-1c4b-4281-b951-d872f2087c98
* Removed unnecessary member out of WebGraphicsContext3DCommandBufferImpl.skaslev@chromium.org2012-11-202-12/+8
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11414065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168728 0039d316-1c4b-4281-b951-d872f2087c98
* ImageTransportSurface::CreateSurface on Windows handles the following cases:scottmg@chromium.org2012-11-201-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | 1. content area on regular (non-aura) windows on vista+ 2. content area on regular (non-aura) windows on xp 3. content area on aura 4. top level compositor on aura on windows on angle (normal) 5. top level compositor on aura on windows on mesa (tests) And, the TransportSurface methods that should be used: 1. PbufferImageTransportSurface 2. NativeGLSurface (PassThroughImageTransportSurface) with transport=true 3. TextureImageTransportSurface 4. PbufferImageTransportSurface 5. NativeGLSurface (PassThroughImageTransportSurface) with transport=false This change fixes case #5. TEST=browser_tests, GpuFeatureTest.NoRafDamage Review URL: https://chromiumcodereview.appspot.com/11416075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168675 0039d316-1c4b-4281-b951-d872f2087c98
* Consolidate SetDeviceScaleFactor into ScreenInfoChangedoshima@chromium.org2012-11-201-4/+0
| | | | | | | | | | R=thakis@chromium.org BUG=155213 TEST=none Review URL: https://codereview.chromium.org/11413045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168673 0039d316-1c4b-4281-b951-d872f2087c98
* The WebKit experimental features flag should also control CSS Grid Layout.jchaffraix@chromium.org2012-11-201-0/+1
| | | | | | | | | | | | | | | CSS Grid Layout couldn't be enabled / disabled at runtime as the required plumbing wasn't done. This change adds the missing plumbing so that it responds to --enable-experimental-webkit-features (similar to CSS 3 region). BUG=161565 TEST=Test with --enable-experimental-webkit-features that CSS Grid Layout is enabled. Review URL: https://chromiumcodereview.appspot.com/11411052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168662 0039d316-1c4b-4281-b951-d872f2087c98