summaryrefslogtreecommitdiffstats
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Added CommandBuffer::GetLastError.apatrick@chromium.org2012-02-012-2/+12
| | | | | | | | | | This is equivalent to GetLastState().error. It saves copying 6 ints. This is temporary until skia does not invoke MakeCurrent for every GL call. BUG==112187 Review URL: http://codereview.chromium.org/9314020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120022 0039d316-1c4b-4281-b951-d872f2087c98
* move more webrtc related files under enable_webrt=1wjia@chromium.org2012-02-011-13/+15
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9317022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120008 0039d316-1c4b-4281-b951-d872f2087c98
* Reloading page after installing app should bring it into correct process.nasko@chromium.org2012-02-013-13/+60
| | | | | | | | | | BUG=80621 TEST=Open a page which is part of an app, in another tab install the app, reload the original page. The renderer process for the tab should be switched. Review URL: http://codereview.chromium.org/9169065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120007 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Delete some 0 byte files that are still lying around as a result of ↵thestig@chromium.org2012-02-011-0/+0
| | | | | | | | | | a CQ bug. (no code review because the CL is "empty") BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120000 0039d316-1c4b-4281-b951-d872f2087c98
* Move some webrtc deps behind the enable_webrtc flagyfriedman@chromium.org2012-02-011-11/+20
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/9318004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119997 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 119977 - Defer render_widget draw until host window is availableasargent@chromium.org2012-02-013-31/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | In accelerated compositing mode we can't start rendering until the native window (HWND/gtk widget) are created on Windows and GTK without aura. For most render_widgets the code today is racy, but for window.open() and similar creation paths this is a race that we pretty much always lose. This defers the first DoDeferredUpdate on a render_widget until its host_window_ is available. Also defers querying for GL_CHROMIUM_supports_swapbuffers_callback extension until the first draw, since the context isn't ready until the host window is available. BUG=106815 TEST=start with --force-compositing-mode and --show-fps-counter, load up a page that uses window.open() to open a popup, and confirm that the popup is in compositing mode Review URL: http://codereview.chromium.org/9225050 TBR=jamesr@chromium.org Review URL: https://chromiumcodereview.appspot.com/9316015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119996 0039d316-1c4b-4281-b951-d872f2087c98
* Move common file path related methods between chrome & content to file_util. ↵jam@chromium.org2012-01-316-103/+17
| | | | | | | | | I reduced the 4 methods into 3 by only having one GetUniquePathNumber which takes an optional suffix. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9316004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119984 0039d316-1c4b-4281-b951-d872f2087c98
* Add IPC allowing GPU process to tell browser process to temporarily drop a ↵apatrick@chromium.org2012-01-3116-0/+54
| | | | | | | | | front buffer. This is to conserve video memory for hidden tabs that are not expected to be needed in the near term. Review URL: https://chromiumcodereview.appspot.com/9303009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119979 0039d316-1c4b-4281-b951-d872f2087c98
* Defer render_widget draw until host window is availablejamesr@chromium.org2012-01-313-9/+31
| | | | | | | | | | | | | | | | | | | | | | | In accelerated compositing mode we can't start rendering until the native window (HWND/gtk widget) are created on Windows and GTK without aura. For most render_widgets the code today is racy, but for window.open() and similar creation paths this is a race that we pretty much always lose. This defers the first DoDeferredUpdate on a render_widget until its host_window_ is available. Also defers querying for GL_CHROMIUM_supports_swapbuffers_callback extension until the first draw, since the context isn't ready until the host window is available. BUG=106815 TEST=start with --force-compositing-mode and --show-fps-counter, load up a page that uses window.open() to open a popup, and confirm that the popup is in compositing mode Review URL: http://codereview.chromium.org/9225050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119977 0039d316-1c4b-4281-b951-d872f2087c98
* [Coverity] Changed pass-by-value to pass-by-refgroby@chromium.org2012-01-312-2/+2
| | | | | | | | | | | CID=102975 TBR=ahendrickson@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/9303013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119966 0039d316-1c4b-4281-b951-d872f2087c98
* Unlock mouse on Render widget host view closescheib@chromium.org2012-01-311-0/+1
| | | | | | | | | | BUG=111860 TEST=ppapi/examples/mouse_lock/mouse_lock.html, see 112025 for steps. Review URL: http://codereview.chromium.org/9302021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119965 0039d316-1c4b-4281-b951-d872f2087c98
* Iterate an array in O(n) rather than O(n^2) time during IDBKey conversion.jsbell@chromium.org2012-01-311-2/+4
| | | | | | | | | | BUG=112016 TEST=third_party/WebKit/LayoutTests/storage/indexeddb/key-type-array.html Review URL: http://codereview.chromium.org/9104026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119956 0039d316-1c4b-4281-b951-d872f2087c98
* 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