summaryrefslogtreecommitdiffstats
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Workaround for failing Aura browser tests (take 2)backer@chromium.org2012-01-311-2/+2
| | | | | | | | | | | | With r119520, many browser_tests started failing on GYP_DEFINES="use_aura=1 chromeos=1" builds. This works around the problem. Fixed most of the tests in r119733. This caused another test to fail. A minor tweak fixes it. BUG=111929 TEST=Linux ChromeOS Aura bot goes green TBR=jamesr Review URL: https://chromiumcodereview.appspot.com/9311001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119915 0039d316-1c4b-4281-b951-d872f2087c98
* Remove a bunch of easy entries from chrome\browser\DEPS.jam@chromium.org2012-01-313-12/+25
| | | | | | | | | | | | -hide PluginProcessHost from chrome by having extensions code just tell PluginService which plugin to kill -hide RenderProcessHostImpl from a test by using the interface instead -use TestBrowserThread in the SyncListenNotifications tool instead of BrowserThreadImp -remove some unnecessary mocks from chrome\browser\DEPS BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9159059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119906 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Send correct screen position for touch-points to webkit.sadrul@chromium.org2012-01-311-3/+3
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9293027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119899 0039d316-1c4b-4281-b951-d872f2087c98
* Revert to default title upon page reload (and the new page does not have a ↵primiano@chromium.org2012-01-312-1/+12
| | | | | | | | | | | | <title> tag) BUG=96041 TEST= Review URL: http://codereview.chromium.org/9288060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119891 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build when webrtc is disabled; i.e. when enable_webrtc is set to 0 in ↵grunell@chromium.org2012-01-312-32/+34
| | | | | | | | | | | | | | build/common.gypi. Building with webrtc disabled is currently not tested by any build bots. Landing the support for PeerConnection v2 (instead of v1) in 119568 broke the build when webrtc is disabled. The stub implementations must be updated to reflect the new interfaces. TEST=Set enable_webrtc to 0 in build/common.gypi; build chrome. Review URL: https://chromiumcodereview.appspot.com/9302030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119888 0039d316-1c4b-4281-b951-d872f2087c98
* Remove file_extension from WebDropData since it's not needed.dcheng@chromium.org2012-01-313-29/+35
| | | | | | | | | | | | | | On Win and Mac, refactor the code to derive file extension from the file name. Also fixes two minor bugs: - We added NSTIFFPboardType even when we couldn't supply it. - We registered a type using NSCreateFileContentsPboardType(extension-with-no-dot) and then try to match against it with NSCreateFileContentsPboardType(extension-with-dot) BUG=none TEST=compiles+manual testing on Windows and Mac TBR=brettw Review URL: http://codereview.chromium.org/9297040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119872 0039d316-1c4b-4281-b951-d872f2087c98
* Move DownloadFile back to content\browser\download. Only static functions in ↵jam@chromium.org2012-01-318-14/+9
| | | | | | | | | that file are used by chrome. Will move them out in a separate change. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9303021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119862 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebKitPlatformSupport::createOffscreenGraphicsContext3Dpiman@chromium.org2012-01-314-2/+27
| | | | | | | | | | | | This is in preparation of https://bugs.webkit.org/show_bug.cgi?id=76593 BUG=99516 TEST=manually ran Chrome w/accelerated content, DRT, test_shell_tests. Review URL: http://codereview.chromium.org/9297046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119857 0039d316-1c4b-4281-b951-d872f2087c98
* The tricky part about logging to the console is that many of the errors are ↵brettw@chromium.org2012-01-312-0/+10
| | | | | | | | | | | | | | generated by invalid resources, from which we have no context. This means we don't know the instance to send the error message of. Plumbing this through in a way that works proved much harder than I expected. I added log functions to the PpapiGlobals so that we can call it easily from all places. It can either go off an instance (like PPB_Console does) or a module, or nothing. In the module case, all consoles associated with all instances in the module get the log message, in the no context case, all consoles associated with any pepper plugin get the message. In the IPC proxy, we know the module from whence the error came since there's a unique process for it. So proxied errors with no context when run out of process get translated into errors with PP_Module context. In the common case, there's only one instance for a module, so this works out nicely. I added some logging ability to resources and added some errors to Graphics2D and URLLoader. We can add messages to more classes as the need arises. I added some advice on writing them to the chromium pepper page. Review URL: https://chromiumcodereview.appspot.com/9160017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119853 0039d316-1c4b-4281-b951-d872f2087c98
* Fix relay support in P2P Transport API.sergeyu@chromium.org2012-01-311-3/+4
| | | | | | | | | | | | Changed P2PPortAllocator to add Relays to PortConfiguration only after relay configuration is received. BUG=111942 Review URL: http://codereview.chromium.org/9302009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119777 0039d316-1c4b-4281-b951-d872f2087c98
* Disable accelerated animation when using a software 3d rasterizer.jbauman@chromium.org2012-01-311-0/+1
| | | | | | | | | | | | | Using a software 3d rasterizer to do animation is probably slower than the regular software mode, so avoid doing that. BUG= TEST= Review URL: http://codereview.chromium.org/9289012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119776 0039d316-1c4b-4281-b951-d872f2087c98
* Switch AudioDevice classes from SyncSocket to CancelableSyncSocket.tommi@chromium.org2012-01-308-97/+80
| | | | | | | | | | | | | This fixes the double close issue and makes Stop() instant. Also, this addresses some issues reported by tsan (see bug reports). BUG=103711,95509 TEST=content_unittests,media_unittests Review URL: http://codereview.chromium.org/9121045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119769 0039d316-1c4b-4281-b951-d872f2087c98
* First version of the layoutTestController for content_shelljochen@chromium.org2012-01-3016-2/+297
| | | | | | | | | | | | | This version supports dumpAsText, dumpChildFramesAsText, waitUntilDone, and notifyDone BUG=111316 TEST=run content_shell --dump-render-tree <some layout test that only uses above functions> Review URL: http://codereview.chromium.org/9121074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119750 0039d316-1c4b-4281-b951-d872f2087c98
* Delete "moved" files from r119577.fischman@chromium.org2012-01-308-724/+0
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/9301009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119749 0039d316-1c4b-4281-b951-d872f2087c98
* Update a few more function calls to use TimeDeltas instead of int ms.tedvessenes@gmail.com2012-01-303-18/+17
| | | | | | | | | | | | | | I found a few more spots that need to have their time structuring updated. Can you review? Thanks much. R=apatrick@chromium.org BUG=108171 TEST= Review URL: http://codereview.chromium.org/9264040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119748 0039d316-1c4b-4281-b951-d872f2087c98
* Remove code that I missed in r119703.jam@chromium.org2012-01-301-4/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9104017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119741 0039d316-1c4b-4281-b951-d872f2087c98
* Workaround for failing Aura browser tests.backer@chromium.org2012-01-301-1/+8
| | | | | | | | | | | | With r119520, many browser_tests started failing on GYP_DEFINES="use_aura=1 chromeos=1" builds. This works around the problem (cause still unknown). BUG=111929 TEST=Linux ChromeOS Aura bot goes green TBR=jamesr Review URL: https://chromiumcodereview.appspot.com/9264048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119733 0039d316-1c4b-4281-b951-d872f2087c98
* Move js_modal_dialogs.h to content\public\browser.jam@chromium.org2012-01-304-7/+5
| | | | | | | | BUG=98716 TBR=joi Review URL: https://chromiumcodereview.appspot.com/9159038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119722 0039d316-1c4b-4281-b951-d872f2087c98
* Simplifying JS dialog interfaces.jam@chromium.org2012-01-305-107/+40
| | | | | | | | | | | | | -got rid of JavaScriptDialogDelegate since the embedder really only needs to know one callback to give the results to content -for telling it that the dialog is shown, it seemed that chrome's decision to activate the tab would be in chrome -used WebContents as the token for resetting dialogs if their tab went away -used currying to hide the implementation detail of reply_msg from the embedder -made content handle NULL JS dialog creator interface instead of having a stub one in the public directory BUG=098716 Review URL: https://chromiumcodereview.appspot.com/9159033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119703 0039d316-1c4b-4281-b951-d872f2087c98
* Create Content API around HostZoomMap.jam@chromium.org2012-01-3016-79/+134
| | | | | | | BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9296041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119684 0039d316-1c4b-4281-b951-d872f2087c98
* Move the DownloadManager and DownloadFile unittests to content so they can ↵jam@chromium.org2012-01-3014-216/+1751
| | | | | | | | | | | | | | | live beside the code they're testing. -moved some of the logic about renaming intermediate files into content as the tests depended on them -made the DownloadManagerDelegate interface have empty default implementations. Darin convinced me that it's better to have delegate interfaces in the API have emptry interfaces, for tests and to make life easier for embedders. -removed the DownloadItemModel checks; these really were duplicating the DownloadItem::GetState call -removed the MockDownloadManagerDelegate class since it wasn't being used anymore -removed DownloadManagerDelegate::OnResponseCompleted since it wasn't called anymore BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9224006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119683 0039d316-1c4b-4281-b951-d872f2087c98
* Add default title for untitled tabs to shell devtools discovery pagejochen@chromium.org2012-01-301-1/+4
| | | | | | | | | | BUG=97465 TEST=try to remote debug a page without a title Review URL: http://codereview.chromium.org/9232077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119670 0039d316-1c4b-4281-b951-d872f2087c98
* Ensuring we crash directly if creating native PeerConnection object fails.grunell@chromium.org2012-01-301-0/+1
| | | | | | | | | BUG=111841 TEST=content_unittests Review URL: https://chromiumcodereview.appspot.com/9298055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119662 0039d316-1c4b-4281-b951-d872f2087c98
* Add enable-shadow-dom command line flag.hayato@chromium.org2012-01-304-0/+8
| | | | | | | | | | BUG=111112 TEST=Run chrome with '--enable-shadow-dom' and enter 'new WebKitShadowRoot(document.createElement('div'))' in Console. Review URL: http://codereview.chromium.org/9285014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119652 0039d316-1c4b-4281-b951-d872f2087c98
* Merge Compositor and CompositorCCpiman@chromium.org2012-01-295-108/+85
| | | | | | | | | | | | This also removes a few unused calls. BUG=None TEST=compiles, tests pass Review URL: http://codereview.chromium.org/9297041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119645 0039d316-1c4b-4281-b951-d872f2087c98
* Add option --dump-render-tree to content_shell to dump the render tree as text.jochen@chromium.org2012-01-2912-6/+247
| | | | | | | | | | BUG=111316 TEST=run out/Debug/content_shell --dump-render-tree file://$(pwd)/third_party/WebKit/LayoutTests/fast/html/section-element.html > section-element-actual.txt - should be the same as section-element-expected.txt Review URL: http://codereview.chromium.org/9289045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119642 0039d316-1c4b-4281-b951-d872f2087c98
* BufferedResourceHandler::ShouldDownload shouldn't manually parse ↵abarth@chromium.org2012-01-281-28/+5
| | | | | | | | | | | | Content-Disposition Now that we have net::HttpContentDisposition to parse the Content-Disposition header, BufferedResourceHandler::ShouldDownload shouldn't use its own ad-hoc parser. Review URL: http://codereview.chromium.org/9297039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119611 0039d316-1c4b-4281-b951-d872f2087c98
* Fold views_compositor=1 into use_aura=1piman@chromium.org2012-01-281-1/+1
| | | | | | | | | | | | | We don't have a use case for views_compositor=1 and use_aura=0 (and it's broken/untested anyway), so this simplifies things a little bit. BUG=None TEST=compiles, tests pass. Review URL: http://codereview.chromium.org/9225038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119583 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Add Layer::LAYER_SOLID_COLOR to compositor.derat@chromium.org2012-01-281-3/+3
| | | | | | | | | | | | | | | | | | This adds a new layer type backed by WebKit::WebSolidColorLayer. I'm using it for the power button animation's background (which previously had a fullscreen texture that it just painted black). I'm also renaming LAYER_HAS_TEXTURE to LAYER_TEXTURED and LAYER_HAS_NO_TEXTURE to LAYER_NOT_DRAWN. BUG=109083 TEST=manual: checked that the power button animation looks the same as before TBR=sky Review URL: http://codereview.chromium.org/9289036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119580 0039d316-1c4b-4281-b951-d872f2087c98
* Minor code refactoring: move 'signal send end of stream' fromenal@chromium.org2012-01-282-6/+9
| | | | | | | | | | | AudioRendererBase::FillBuffer(), to allow making it asynchronous in the future. First step in implementing software audio mixing. BUG=61293 Review URL: http://codereview.chromium.org/9129004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119578 0039d316-1c4b-4281-b951-d872f2087c98
* Move audio/video files from content/renderer into content/renderer/media.fischman@chromium.org2012-01-2812-18/+742
| | | | | | | | | | | | Should reduce rubberstampage. BUG=none TEST=none Review URL: http://codereview.chromium.org/9295018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119577 0039d316-1c4b-4281-b951-d872f2087c98
* Added missing member initializationgroby@chromium.org2012-01-281-2/+3
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/9295008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119575 0039d316-1c4b-4281-b951-d872f2087c98
* Send replies to sync IPCs from swapped out renderers.creis@chromium.org2012-01-289-26/+129
| | | | | | | | | BUG=93427 TEST=Go back/forward quickly with cross-process navigations. Review URL: http://codereview.chromium.org/9271054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119572 0039d316-1c4b-4281-b951-d872f2087c98
* Enabling usage of native PeerConnection v2 in libjingle.grunell@chromium.org2012-01-2813-625/+896
| | | | | | | | | | The new PeerConnection in libjingle follows the current specification much closer and allows us to remove workarounds and limitations in the glue for WebRTC functionality. TEST=content_unittests Review URL: http://codereview.chromium.org/9284020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119568 0039d316-1c4b-4281-b951-d872f2087c98
* content: Modfiy ResourceBundle and content_shell to run with alternative pak ↵erg@chromium.org2012-01-281-6/+2
| | | | | | | | | | | | files. BUG=111326 R=jam TBR=sky,tony,ajwong,ananta Review URL: http://codereview.chromium.org/9232060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119566 0039d316-1c4b-4281-b951-d872f2087c98
* Convert use of int ms to TimeDelta in content/plugin.tedvessenes@gmail.com2012-01-282-6/+9
| | | | | | | | | | BUG=108171 TEST= Review URL: http://codereview.chromium.org/9223020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119556 0039d316-1c4b-4281-b951-d872f2087c98
* Add GPU info collection to GPUTestConfig.zmo@chromium.org2012-01-284-6/+16
| | | | | | | | | | | | We didn't add it the first place due to a shared build failure. This should be added so the GPUTestConfig can be easier to use. BUG=101216 TEST=content_unittests R=kbr Review URL: http://codereview.chromium.org/9288073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119553 0039d316-1c4b-4281-b951-d872f2087c98
* Saving content will prefer to retrieve the data out of the HTTP cache for GETs.cbentzel@chromium.org2012-01-2814-84/+72
| | | | | | | | | | | | For example, if the current tab is navigated to a JPEG and the user chooses "Save Page As" from the wrench menu, the data will be retrieved from cache without validation even if Cache-Control: no-cache is specified. BUG=32246,55551,94574 TEST=DownloadTest.SavePageNonHTMLViaGet Review URL: http://codereview.chromium.org/9178029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119538 0039d316-1c4b-4281-b951-d872f2087c98
* Convert use of int ms to TimeDelta in files owned by eroman.tedvessenes@gmail.com2012-01-281-1/+2
| | | | | | | | | | | R=eroman@chromium.org BUG=108171 TEST= Review URL: http://codereview.chromium.org/9107025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119537 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove static storage for variables in an unnamed namespace.jhawkins@chromium.org2012-01-283-10/+11
| | | | | | | | | | BUG=none TEST=none R=binji Review URL: https://chromiumcodereview.appspot.com/9271061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119535 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DirectX diagnostic collection for about:gpu page.apatrick@chromium.org2012-01-286-22/+41
| | | | | | | The DirectX diagnostics are collected by a separate GPU process that is not sandboxed. This is because the sandbox prevents them from being collected. Review URL: https://chromiumcodereview.appspot.com/9212054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119534 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid trying to query ScreenInfo without a valid host_window_jamesr@chromium.org2012-01-271-1/+4
| | | | | | | | | | | | | | | | | | It's possible for RenderWidget::screenInfo() to be called before the host_window_ id is set, either because we haven't received the IPC yet with the id or because the native widget hasn't been created yet. The implementations of this all fall over in different platform-specific ways without the parameter, and since this is a synchronous IPC it seems better to avoid the round-trip if we know it won't be successful. This returns a WebScreenInfo in the default state (zero'd out). It'd be better to have a way to signal an error but that would require a WebKit API change. TEST= Review URL: http://codereview.chromium.org/9169103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119520 0039d316-1c4b-4281-b951-d872f2087c98
* Add OSSTATUS_LOG API.mark@chromium.org2012-01-271-3/+4
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9235084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119511 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 119430 - Make transferbuffer increase in size dynamically"gman@chromium.org2012-01-272-24/+21
| | | | | | | | | | | | | This reverts commit 2f38c45427c68fe731c1f5c05256b6c141a6a590. BUG=101431 TEST= TBR=apatrick@chromium.org Review URL: http://codereview.chromium.org/9121057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119509 0039d316-1c4b-4281-b951-d872f2087c98
* Roll webrtc 1538 and libjingle 112grunell@chromium.org2012-01-273-25/+18
| | | | | | | | This is in preparation for switching to PeerConnection v2. Review URL: https://chromiumcodereview.appspot.com/9297013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119505 0039d316-1c4b-4281-b951-d872f2087c98
* adjust start_time_ for video capture decoder so that the preroll in video ↵wjia@chromium.org2012-01-272-0/+7
| | | | | | | | | | | renderer is correctly compensated. Since video renderer prerolls, the start_time_ is set a bit earlier (at seek state). This results in mismatching between host time and clock for captured video frames. The clock for captured video frames starts earlier than host time. Then video renderer sleep too long to flip next frame, which also results in delay of read request to CaptureVideoDecoder, which leads to frame dropping in CaptureVideoDecoder. Review URL: https://chromiumcodereview.appspot.com/9234050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119503 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak of DownloadCreateInfo if we couldn't find a DownloadManager. ↵jam@chromium.org2012-01-272-9/+13
| | | | | | | | This happens in unittests. But it could also happen in production if we couldn't get the associated RenderView (i.e. page closed right after starting the download). Review URL: https://chromiumcodereview.appspot.com/9295017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119496 0039d316-1c4b-4281-b951-d872f2087c98
* Detect errors in audio output and report them upstream.fischman@chromium.org2012-01-277-6/+23
| | | | | | | | | | | | Stop feeding audio packets to AUDIO DemuxerStreams once audio has been disabled. BUG=111409 TEST=uninstall pulseaudio, make /dev/snd inaccessible, and observe <video> plays correctly (muted) instead of hanging. Review URL: http://codereview.chromium.org/9234066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119488 0039d316-1c4b-4281-b951-d872f2087c98
* Send proper gesture-types for tap-down and double-tap now that WebInputEvent ↵sadrul@chromium.org2012-01-271-4/+2
| | | | | | | | | | | is updated. BUG=111402 TEST=none Review URL: https://chromiumcodereview.appspot.com/9223021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119463 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 119430 - Make transferbuffer increase in size dynamicallykinuko@chromium.org2012-01-272-21/+24
| | | | | | | | | | | | | TEST=unit tests BUG=101431 Review URL: http://codereview.chromium.org/9113069 TBR=gman@chromium.org Review URL: https://chromiumcodereview.appspot.com/9298005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119436 0039d316-1c4b-4281-b951-d872f2087c98