summaryrefslogtreecommitdiffstats
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Mouse events, touch events, or both can be locked to a target.tdresser@chromium.org2012-04-111-2/+2
| | | | | | | | | | | | | | NativeWidgetPrivate and Window event capture related commands now take a set of flags, indicating what event types to lock. Current options are CW_LOCK_MOUSE and CW_LOCK_TOUCH. BUG=117554 TEST=WindowTest.TouchCaptureTests, WindowTest.CaptureTests Review URL: http://codereview.chromium.org/9838011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131761 0039d316-1c4b-4281-b951-d872f2087c98
* Enable the webrtc audio tests on the build bots that have audio hardware.tommi@chromium.org2012-04-113-14/+23
| | | | | | | | | | | BUG=none TEST=This enables the audio tests in content_unittests on bots with audio hardware. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=130019 Review URL: https://chromiumcodereview.appspot.com/9921035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131757 0039d316-1c4b-4281-b951-d872f2087c98
* Adds WebRTC histogram data to be uploaded as part of UMA logging events.henrika@chromium.org2012-04-112-8/+131
| | | | | | | | | | | The plan is to start adding "audio-related" histograms on the WebRTC side first. I will add more on the media side in upcoming CLs as well. BUG=114702 TEST=manual inspection of chrome://histograms/WebRTC and chrome://histograms/Media Review URL: http://codereview.chromium.org/9963046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131751 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up TabContents::OnDidFailLoadWithError to IPC message.mkosiba@chromium.org2012-04-111-0/+2
| | | | | | | | | | | | | | | | The TabContents::OnDidFailLoadWithError method was added in revision @111912 but not hooked up to the IPC message. This change adds the missing line. This shouldn't introduce any functional changes as currently no Chromium code uses the WebContentsObserver::DidFailLoad method. BUG=none TEST=base_unittests,content_unittests,browser_tests Review URL: http://codereview.chromium.org/9999027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131747 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash when removing a MediaStream from a PeerConnection.perkj@chromium.org2012-04-113-14/+20
| | | | | | | | | | BUG= 121083 TEST= unit test Review URL: http://codereview.chromium.org/9968077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131735 0039d316-1c4b-4281-b951-d872f2087c98
* Make FileStream::Seek async and add FileStream::SeekSync for sync operationkinuko@chromium.org2012-04-111-1/+1
| | | | | | | | | BUG=75548,113300 TEST=existing tests should pass Review URL: https://chromiumcodereview.appspot.com/9949011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131732 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some constant spew in unit test logserg@chromium.org2012-04-115-13/+19
| | | | | | | | | | BUG=44565 TEST=none Review URL: http://codereview.chromium.org/9960073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131729 0039d316-1c4b-4281-b951-d872f2087c98
* Add roleDescription to DumpAccessibilityTree for mac.aboxhall@chromium.org2012-04-113-14/+19
| | | | | | | | | | BUG= TEST=Rebaselined test expectations for DumpAccessibilityTreeTest tests. Review URL: http://codereview.chromium.org/9835038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131719 0039d316-1c4b-4281-b951-d872f2087c98
* Update uses of TimeDelta in geolocation code.tedvessenes@gmail.com2012-04-112-4/+6
| | | | | | | | | | R=bulach@chromium.org BUG=108171 Review URL: http://codereview.chromium.org/10027012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131718 0039d316-1c4b-4281-b951-d872f2087c98
* Implement RenderWidgetHostViewMac::CopyFromCompositingSurface.mazda@chromium.org2012-04-115-23/+116
| | | | | | | | | | | | This adds the support of the browser side thumbailing to Mac Chrome. BUG=120001 TEST=Manually tested that thumbnails are properly generated on GPU composited pages with --enable-in-browser-thumbnailing. Review URL: http://codereview.chromium.org/10022007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131710 0039d316-1c4b-4281-b951-d872f2087c98
* Log GPU process launch time to UMA.fischman@chromium.org2012-04-112-0/+9
| | | | | | | | | | BUG=106509 TEST=manually checked chrome://histograms/GPU.GPUPro Review URL: http://codereview.chromium.org/10037025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131691 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 131679 - Add DCHECK to ensure IndexedDBDispatcher doesn't get re-created.rsesek@chromium.org2012-04-111-8/+1
| | | | | | | | | | | | | | | | | | Broke content_unittests WebRTCAudioDeviceTest.TestValidOutputRates This could happen if there are IDB objects that survive the call to didStopWorkerRunLoop. BUG=121734 TEST= Review URL: http://codereview.chromium.org/9999035 TBR=dgrogan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10014040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131683 0039d316-1c4b-4281-b951-d872f2087c98
* Modify the base::JSONReader interface to take a set of options rather than a ↵rsesek@chromium.org2012-04-112-2/+2
| | | | | | | | | | | | | | boolean flag. This is just prep work for a large CL that rewrites the JSON parser. Splitting out this interface change will make it easier to review the other CL. BUG=121469 TEST=No functional change. Review URL: https://chromiumcodereview.appspot.com/9960077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131680 0039d316-1c4b-4281-b951-d872f2087c98
* Add DCHECK to ensure IndexedDBDispatcher doesn't get re-created.dgrogan@chromium.org2012-04-111-1/+8
| | | | | | | | | | | | | This could happen if there are IDB objects that survive the call to didStopWorkerRunLoop. BUG=121734 TEST= Review URL: http://codereview.chromium.org/9999035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131679 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the BrowserMainParts::GetMainMessageLoop method. Change ↵marshall@chromium.org2012-04-104-17/+4
| | | | | | | | | | | BrowserMainLoop::MainMessageLoopStart to only create the default MessageLoop if one does not already exist for the current thread. If a custom MessageLoop is desired it can be created in BrowserMainParts::PreMainMessageLoopStart. BUG=122829 TEST=none Review URL: http://codereview.chromium.org/10024065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131674 0039d316-1c4b-4281-b951-d872f2087c98
* Convert BrowserAccessibilityStateImpl to LeakySingletonTraits.marshall@chromium.org2012-04-102-7/+5
| | | | | | | | | BUG=122856 TEST=none Review URL: http://codereview.chromium.org/10024071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131672 0039d316-1c4b-4281-b951-d872f2087c98
* gl_implementation_win includes d3d9.h, so add the dx sdk to include_dirsthakis@chromium.org2012-04-101-0/+1
| | | | | | | | | | BUG=none TEST=Install the dx sdk from microsoft instead of going the src-internal route, build with msvc2010. No error messages about d3d9.h or d3d9x.lib. TBR=avi Review URL: http://codereview.chromium.org/10033003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131663 0039d316-1c4b-4281-b951-d872f2087c98
* Windows: Reduce GPU process sandbox to XP level on Windows Server 2003.apatrick@chromium.org2012-04-101-1/+1
| | | | | | | | | | It seems to have the same issues as XP. BUG=121809 Review URL: http://codereview.chromium.org/10012029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131655 0039d316-1c4b-4281-b951-d872f2087c98
* Properly set drag image offset in aura's drag drop controller. Currently thevarunjain@chromium.org2012-04-101-2/+3
| | | | | | | | | | | | drag image is always positioned at the mouse cursor. BUG=118024 TEST=none Review URL: http://codereview.chromium.org/10044002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131648 0039d316-1c4b-4281-b951-d872f2087c98
* TabContents -> WebContentsImpl, part 3.avi@chromium.org2012-04-1033-67/+67
| | | | | | | | | | BUG=105875 TEST=no change Review URL: http://codereview.chromium.org/9960071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131634 0039d316-1c4b-4281-b951-d872f2087c98
* Added code so renderer would cleanly exit.asharif@chromium.org2012-04-105-4/+29
| | | | | | | | | | | | | | | | | | | | | | | This code is only invoked when --renderer-clean-exit is passed to Chrome. It does the following: 1. Makes the browser process not send a SIGTERM to its children. 2. Makes the renderer process not call _exit() in OnChannelError(). Why is this needed? The renderer process in Chrome does not exit cleanly currently so when Chrome is profiled for optimization we do not get representative data and miss out on optimization opportunities. This CL addresses that problem by ensuring that exit handlers including profile dumpers get run before the renderer exits. BUG=107584 TEST=Rebuilt Chrome with -fprofile-generate. Verified that the renderer process' profile is included when Chrome is closed. Review URL: http://codereview.chromium.org/9936002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131625 0039d316-1c4b-4281-b951-d872f2087c98
* TabContents -> WebContentsImpl, part 2.avi@chromium.org2012-04-1021-52/+52
| | | | | | | | | BUG=105875 TEST=no change Review URL: https://chromiumcodereview.appspot.com/10014024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131599 0039d316-1c4b-4281-b951-d872f2087c98
* TabContents -> WebContentsImpl, part 1.avi@chromium.org2012-04-1037-510/+512
| | | | | | | | | | BUG=105875 TEST=no change Review URL: http://codereview.chromium.org/10024034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131571 0039d316-1c4b-4281-b951-d872f2087c98
* Removing all reference to deprecated switch --enable-accelerated-2d-canvas ↵junov@chromium.org2012-04-102-4/+0
| | | | | | | | | | | (code cleanup) BUG=102899 TEST-None Review URL: http://codereview.chromium.org/10007019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131560 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 131177 - aura: Change shared context to be offscreen for armmazda@chromium.org2012-04-103-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This change causes Chrome OS to get stuck in the login screen on Lumpy and Stumpy, so it is reverted for now. BUG=chrome-os-partner:8831 TEST=Manually checked that I can log in successfully ARM drivers don't like to have 2 EGLSurface on the same Window. So we need to make the UI shared context offscren. This also requires the image transport surface to be an "offscreen" GLSurface (a pbuffer), however the GLES2Decoder needs to be "onscreen" (i.e. it calls SwapBuffers on the surface instead managing the offscreen buffers itself). So this decouples the 2 notions of "offscreen". BUG=chrome-os-partner:8284 TEST=gpu_unittests. Aura chrome --ui-use-gpu-process with poster circle and webgl on tegra, lumpy, desktop GL. Desktop chrome with poster circle and webgl. Review URL: http://codereview.chromium.org/10007034 TBR=piman@chromium.org Review URL: https://chromiumcodereview.appspot.com/10031036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131559 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r131429 (Moved SuicideOnChannelErrorFilter to content.). Install it ↵jam@chromium.org2012-04-101-2/+33
| | | | | | | | in renderer_main.cc so that it's not used in tests. Review URL: https://chromiumcodereview.appspot.com/10032023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131537 0039d316-1c4b-4281-b951-d872f2087c98
* Pass content-type resources to web intents. Goes through download, then ↵gbillock@chromium.org2012-04-105-12/+75
| | | | | | | | | | | | | | | invokes the picker. Code to handle policy and intent payload creation is embedder-side. New API for dispatching the browser-initiated internal intent added to content. BUG=105732 TEST=None Review URL: http://codereview.chromium.org/9651020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131535 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r131452: Add GLHelper::AsyncCopyTextureTo and make thumbnail ↵mazda@chromium.org2012-04-1017-123/+493
| | | | | | | | | | | | | generation asynchronous. BUG=118547 TEST=Manually checked that UI thread is not blocked by the thumbnailer TBR=brettw,piman Review URL: http://codereview.chromium.org/10033008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131529 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 131429 because content_unittests is early exiting- Moved ↵jam@chromium.org2012-04-101-28/+0
| | | | | | | | | | | | | | | SuicideOnChannelErrorFilter to content. BUG=none TEST=trybots Review URL: http://codereview.chromium.org/10027027 TBR=asharif@chromium.org Review URL: https://chromiumcodereview.appspot.com/9960057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131506 0039d316-1c4b-4281-b951-d872f2087c98
* Run test for WK82678 (which doesn't repro in DRT) as a browser test.jsbell@chromium.org2012-04-101-0/+9
| | | | | | | | | | BUG=none TEST=out/Debug/browser_tests --gtest_filter=IndexedDBLayoutTest.RegressionTests Review URL: http://codereview.chromium.org/10008056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131502 0039d316-1c4b-4281-b951-d872f2087c98
* Rename AudioRendererBase and AudioRendererAlgorithmBasevrk@chromium.org2012-04-092-4/+3
| | | | | | | | | | | | | Neither of these classes are base classes anymore, so rename to AudioRendererImpl and AudioRendererAlgorithm respectively BUG=116645 TEST=media_unittests; chrome compiles and runs audio/video Review URL: http://codereview.chromium.org/9826028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131481 0039d316-1c4b-4281-b951-d872f2087c98
* Use Scoped COM helpers for collecting GPU informationrsleevi@chromium.org2012-04-092-68/+52
| | | | | | | | | | | | | Change explicit COM functions to use the scoped helpers from base::win, ensuring that releasing happens in the proper order. R=zmo,kbr BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10022011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131479 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 131452 - Add GLHelper::AsyncCopyTextureTo and make thumbnail ↵mazda@chromium.org2012-04-0917-493/+123
| | | | | | | | | | | | | | | generation asynchronous. BUG=118547 TEST=Manually checked that UI thread is not blocked by the thumbnailer Review URL: http://codereview.chromium.org/9791031 TBR=mazda@chromium.org Review URL: https://chromiumcodereview.appspot.com/10024036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131456 0039d316-1c4b-4281-b951-d872f2087c98
* Add GLHelper::AsyncCopyTextureTo and make thumbnail generation asynchronous.mazda@chromium.org2012-04-0917-123/+493
| | | | | | | | | | BUG=118547 TEST=Manually checked that UI thread is not blocked by the thumbnailer Review URL: http://codereview.chromium.org/9791031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131452 0039d316-1c4b-4281-b951-d872f2087c98
* Use 16x16 surfaces instead of 1x1 to avoid issues on ARM devicesanush@chromium.org2012-04-091-1/+3
| | | | | | | | | | BUG=122292 TEST=build ChromiumOS on ARM and test the graphics driver is happy Review URL: http://codereview.chromium.org/10005032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131439 0039d316-1c4b-4281-b951-d872f2087c98
* Moved SuicideOnChannelErrorFilter to content.asharif@chromium.org2012-04-091-0/+28
| | | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/10027027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131429 0039d316-1c4b-4281-b951-d872f2087c98
* Remove duplicated gtk_init()simon.hong81@gmail.com2012-04-091-1/+0
| | | | | | | | | | | | in the Shell::PlatformInitialize(). gtk_init() is called in content layer by calling gfx::GtkInitFromCommandLine(). BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10025013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131428 0039d316-1c4b-4281-b951-d872f2087c98
* Update some uses of TimeDelta in render widget and bookmark code.tedvessenes@gmail.com2012-04-093-6/+13
| | | | | | | | | | R=sky@chromium.org BUG=108171 Review URL: http://codereview.chromium.org/10029004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131369 0039d316-1c4b-4281-b951-d872f2087c98
* Move --user-agent overriding logic from chrome into content.scherkus@chromium.org2012-04-097-24/+23
| | | | | | | | | BUG=117259 TEST=start chrome and content_shell with and without --user-agent and visit a site like www.whatsmyuseragent.com to verify the expected user agent Review URL: https://chromiumcodereview.appspot.com/9623027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131365 0039d316-1c4b-4281-b951-d872f2087c98
* Add BrowserThread::PostBlockingTaskAndReply.willchan@chromium.org2012-04-092-3/+16
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/10007010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131352 0039d316-1c4b-4281-b951-d872f2087c98
* Using WeakPtr for requests to MediaStreamDispatcher.grunell@chromium.org2012-04-098-63/+84
| | | | | | | | | | This is to ensure no dangling pointers to MediaStreamImpl (and other requesters). It's one of several fixes for the bug. No actual crash or issue has been reported that this CL fixes; it's for removing potential issues. BUG=112408 Review URL: https://chromiumcodereview.appspot.com/9903014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131330 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: OOP font loading should run on FILE thread.bashi@chromium.org2012-04-096-70/+84
| | | | | | | | | | | | | | FontLoader calls file_util::GetFileSize() and file_util::ReadFile(), which should be called from the file thread, but FontLoader runs on the io thread now. Make it run on the file thread. BUG=108645 TEST=none Review URL: http://codereview.chromium.org/9950141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131324 0039d316-1c4b-4281-b951-d872f2087c98
* Set the shell_browser_main_parts_ directly in simon.hong81@gmail.com2012-04-074-10/+4
| | | | | | | | ShellContentBrowserclient::CreateBrowserMainParts Review URL: http://codereview.chromium.org/10025006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131297 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new executable for building tests for soft gpupkotwicz@chromium.org2012-04-072-0/+24
| | | | | | | | As the soft gpu tests would ideally be stateless I added a flag --disable-file-writing to disable the test from writing data Review URL: http://codereview.chromium.org/9722026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131285 0039d316-1c4b-4281-b951-d872f2087c98
* Remove duplicated setlocale(LC_ALL, "")simon.hong81@gmail.com2012-04-071-4/+0
| | | | | | | | | | | | in the BrowserMainLoop::InitializeToolkit(). Already this is called in ContentMain(). BUG=none TEST=compiles Review URL: http://codereview.chromium.org/9360025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131264 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused forward declarationsimon.hong81@gmail.com2012-04-071-3/+1
| | | | | | | | | | | class Task is not used in main_function_params.h BUG=none TEST=compile Review URL: http://codereview.chromium.org/9956074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131258 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on TabContentsViewAura by default.ben@chromium.org2012-04-071-5/+1
| | | | | | | | | http://crbug.com/118410 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131132 Review URL: https://chromiumcodereview.appspot.com/10005028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131251 0039d316-1c4b-4281-b951-d872f2087c98
* Load plug-ins on the blocking pool on Windows and don't block shutdown on it.bauerb@chromium.org2012-04-071-15/+9
| | | | | | | | | | | In order to make PluginPrefsTest work with background threads, PluginPrefs::EnablePlugin and PluginPrefs::EnablePluginGlobally need a callback, so we need to update their callers as well. BUG=120902 TEST=none Review URL: http://codereview.chromium.org/9977008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131248 0039d316-1c4b-4281-b951-d872f2087c98
* Cache shared texture in browserjbauman@chromium.org2012-04-073-0/+32
| | | | | | | | | | | | Doing CreateTexture every frame seems to cause a leak in the NVIDIA driver on some optimus systems, so instead cache the texture while it exists. BUG=115422 TEST= Review URL: http://codereview.chromium.org/10007024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131245 0039d316-1c4b-4281-b951-d872f2087c98
* Make pepper use the renderer sandbox setup pathjschuh@chromium.org2012-04-071-8/+7
| | | | | | | | | | This is specificaly to prevent crashing on Desktop's injected injected DLL. More generally, however, we want pepper to always apply the renderer's general sandbox restrictions. BUG=118225 Review URL: http://codereview.chromium.org/10012019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131244 0039d316-1c4b-4281-b951-d872f2087c98