summaryrefslogtreecommitdiffstats
path: root/content/browser
Commit message (Collapse)AuthorAgeFilesLines
* Make GTK and Aura parts orthogonal to OS partsstevenjb@google.com2011-10-267-446/+463
| | | | | | | | | | | | | | | | | | | | | This CL moves GTK and Aura "Parts" out of the primary BrowserMainParts tree and into orthogonal parts that can be added independently. This was done in a way that will facilitate adding additional parts if (when) we need them. The motivation for this was to a) eliminate the existing typedef in chrome_browser_main_chromeos.h b) reduce the number of #ifdefs required in the setup / parts code For an outline of the new parts see: https://docs.google.com/drawings/d/1-gIMl-81c4SvcMrT1xaxnDGibDe7VQfMkFT1bMnIvrg/edit?hl=en_US Please consider this a proposal; I am entirely open to feedback. BUG=none TEST=Chrome compiles and passes tests on all platfroms. Review URL: http://codereview.chromium.org/8302016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107383 0039d316-1c4b-4281-b951-d872f2087c98
* Move the Mac's WebDragSource to content.avi@chromium.org2011-10-262-0/+539
| | | | | | | | | BUG=95573 TEST=no change Review URL: http://codereview.chromium.org/8391020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107364 0039d316-1c4b-4281-b951-d872f2087c98
* Fix about:gpu's wrong status of accelerated-canvas-2d.zmo@google.com2011-10-262-2/+19
| | | | | | | | | | | | The decision whether to support accelerated-canvas-2d is made on the renderer side. This CL duplicates the same logic on the browser side, so about:gpu reports the correct feature status. An alternative is to add an IPC messege to query renderer side about the feature status, which isn't very appealing. BUG=100722 TEST=about:gpu Review URL: http://codereview.chromium.org/8341036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107362 0039d316-1c4b-4281-b951-d872f2087c98
* Changes Window::Init to take whether the layer has a texture. Andsky@chromium.org2011-10-261-1/+1
| | | | | | | | | | | | wired it up to Widget by way of new field in Widget::InitParam. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8392005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107354 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor FileSystemOperation:oleg@chromium.org2011-10-261-17/+8
| | | | | | | | 1. Get FileSystemFileUtil inside FileSystemOperation, do not receive it as a parameter. 2. Extract the common code to the separate method. Review URL: http://codereview.chromium.org/8355003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107331 0039d316-1c4b-4281-b951-d872f2087c98
* Enable accelerated compositing of web pages when using webkit compositorpiman@chromium.org2011-10-267-412/+501
| | | | | | | | | | BUG=99517 TEST=http://www.webkit.org/blog/386/3d-transforms/ Review URL: http://codereview.chromium.org/8307001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107262 0039d316-1c4b-4281-b951-d872f2087c98
* add Begin/EndTracing to AutomationProxy. This adds the necessary wiring and ↵jbates@chromium.org2011-10-252-0/+34
| | | | | | | | | | IPC messages to allow AutomationProxy to enable and disable tracing and collect traced data from an external browser instance. BUG=95714 Review URL: http://codereview.chromium.org/7978005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107232 0039d316-1c4b-4281-b951-d872f2087c98
* Make passing of DownloadRequestHandle separate from DownloadCreateInfo.rdsmith@chromium.org2011-10-2512-32/+40
| | | | | | | | | | This is to support mocking DownloadRequestHandle. BUG=101214 Review URL: http://codereview.chromium.org/8371009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107219 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a notreached assertion and linker error in RWHVAben@chromium.org2011-10-251-0/+2
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8394009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107207 0039d316-1c4b-4281-b951-d872f2087c98
* Try to reland touch scroll / pancpu@chromium.org2011-10-252-2/+100
| | | | | | | | | | Original code review http://codereview.chromium.org/8354030/ BUG=52260 TEST= see bug Review URL: http://codereview.chromium.org/8368012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107194 0039d316-1c4b-4281-b951-d872f2087c98
* Add an experimental --enable-strict-site-isolation flag.creis@chromium.org2011-10-251-0/+1
| | | | | | | | | | | | This will ensure each SiteInstance includes only pages from one site, but it will currently break some script calls and navigations. BUG=101508 TEST=Specify flag. Clicking cross-site link should open in new process. Review URL: http://codereview.chromium.org/8379014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107186 0039d316-1c4b-4281-b951-d872f2087c98
* Const-ify DownloadStatusUpdaterDelegate methods.cbentzel@chromium.org2011-10-256-26/+26
| | | | | | | | | Also add OVERRIDEs. Review URL: http://codereview.chromium.org/8381009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107159 0039d316-1c4b-4281-b951-d872f2087c98
* Create a content::UrlFetcher interface that lives in content/public/common ↵jam@chromium.org2011-10-257-29/+32
| | | | | | | | | and convert users to it. I have added a static create function, but will switch instantiations to use it in another change since this has grown a lot. Basically this change converts function names away from unix_hacker style, which they shouldn't have been using anyways since some are virtual, and made all of the other functions virtual. BUG=98716 Review URL: http://codereview.chromium.org/8375039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107151 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix shift/ctrl/alt keyevents with RWHVA and X11.sadrul@chromium.org2011-10-252-7/+3
| | | | | | | | | | | | | One of the functions didn't really do what it claimed it did. This ended up causing problems where pressing just the shift key (or the ctrl or alt key) would cause some garbage character to show up. BUG=101440 TEST=manually Review URL: http://codereview.chromium.org/8380033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107141 0039d316-1c4b-4281-b951-d872f2087c98
* Move ZygoteForkDelegateLinux to content/public/common.jam@chromium.org2011-10-251-4/+4
| | | | | | | BUG=98716 Review URL: http://codereview.chromium.org/8381029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107128 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Add mouse wheel event support for x11 in RWHVA.sadrul@chromium.org2011-10-251-1/+8
| | | | | | | | | BUG=99757 TEST=manually Review URL: http://codereview.chromium.org/8370024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107126 0039d316-1c4b-4281-b951-d872f2087c98
* Adds browser-side component of Java Bridge for a TabContentssteveblock@chromium.org2011-10-256-0/+141
| | | | | | | | | | | | | | | This patch adds JavaBridgeDispatcherHostManager, which co-ordinates injecting Java objects into all RenderViews corresponding to a TabContents. The class is owned by TabContents and manages one instance of JavaBridgeDispatcherHost for each RenderViewHost. Also adds TabContentsObserver::RenderViewDeleted(). BUG=96703 Review URL: http://codereview.chromium.org/8366034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107085 0039d316-1c4b-4281-b951-d872f2087c98
* Move resource_codes to content/public/common.jam@chromium.org2011-10-2514-14/+14
| | | | | | | BUG=98716 Review URL: http://codereview.chromium.org/8382021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107061 0039d316-1c4b-4281-b951-d872f2087c98
* Remove one manually bound user32 callcpu@chromium.org2011-10-251-19/+3
| | | | | | | | | | Supposedly we are delay-loading user32 so this should work. BUG=none TEST=none Review URL: http://codereview.chromium.org/8371012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107060 0039d316-1c4b-4281-b951-d872f2087c98
* Applescript: return value from execute javascript commandkeishi@chromium.org2011-10-253-104/+120
| | | | | | | | | | BUG=78283 TEST= Review URL: http://codereview.chromium.org/8124024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107046 0039d316-1c4b-4281-b951-d872f2087c98
* Switch ChildProcess.* enum histograms from COUNTS to ENUMERATION.petkov@chromium.org2011-10-241-4/+8
| | | | | | | | | | | | | | | | | | These histograms shouldn't have been _COUNTS histograms in the first place. _COUNTS histograms bucket the data in exponentially spaced buckets. This causes, for example, PPAPI crashes to be bucketed together with (and as) GPU crashes. To avoid messing up collected data and to ensure smooth transition, renamed histograms. BUG=chromium-os:21841 TEST=git try, looked at about:histograms Change-Id: I137499992c60bdf6488561150f5b6642acc862b8 Review URL: http://codereview.chromium.org/8356042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106993 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 106962 - Broke plugin_tests - [Linux] Load plugins out-of-process.rsesek@chromium.org2011-10-244-52/+8
| | | | | | | | | | | | | | | | This also fixes a bug in PluginLoaderPosix where if the last N plugins in the canonical list crash, the callbacks are never run. BUG=17863 TEST=On Linux, plugins work as before. Review URL: http://codereview.chromium.org/8372015 TBR=rsesek@chromium.org Review URL: http://codereview.chromium.org/8351014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106977 0039d316-1c4b-4281-b951-d872f2087c98
* [Linux] Load plugins out-of-process.rsesek@chromium.org2011-10-244-8/+52
| | | | | | | | | | | | | This also fixes a bug in PluginLoaderPosix where if the last N plugins in the canonical list crash, the callbacks are never run. BUG=17863 TEST=On Linux, plugins work as before. Review URL: http://codereview.chromium.org/8372015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106962 0039d316-1c4b-4281-b951-d872f2087c98
* Convert URLFetcher::Delegates to use an interface in content/public/common. ↵jam@chromium.org2011-10-244-8/+14
| | | | | | | | Also remove the old URLFetcher delegate callback while I'm touching all of them.BUG=98716,83592 Review URL: http://codereview.chromium.org/8373021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106949 0039d316-1c4b-4281-b951-d872f2087c98
* [Aura] Support transparent webkit.xiyuan@chromium.org2011-10-242-2/+6
| | | | | | | | | | | | | | | Support turning on webkit transparency by setting a background image. - Update RenderWidget::PaintRect to handle background transparency; - Update BackingStoreSkia::PaintToBackingStore to handle webkit transparency; - Turn on compositing of RenderWidgetHostViewAura's layer when we set a background with transparency; BUG=98311 TEST=Verify when applist change (chromium:98308) is in. Review URL: http://codereview.chromium.org/8369006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106943 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug where putting a laptop to sleep causes downloads to end normally.ahendrickson@chromium.org2011-10-244-17/+32
| | | | | | | | | | | | Special case download interrupt reason if we get a CANCELED/ABORTED status. BUG=101044 TEST=None Review URL: http://codereview.chromium.org/8369005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106928 0039d316-1c4b-4281-b951-d872f2087c98
* Internalize JSON chunk merging to trace_event.h API (retry).jbates@chromium.org2011-10-245-31/+27
| | | | | | | | | | | Original review: http://codereview.chromium.org/8355024/ BUG=100291 TEST=base_unittests, content_unittests Review URL: http://codereview.chromium.org/8373018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106924 0039d316-1c4b-4281-b951-d872f2087c98
* Low-latency AudioInputStream implementation based on WASAPI for Windows.henrika@chromium.org2011-10-242-0/+7
| | | | | | | | | Requires Windows Vista or higher. BUG=none TEST=Attached unit test (requires undefined CHROME_HEADLESS) Review URL: http://codereview.chromium.org/8283032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106899 0039d316-1c4b-4281-b951-d872f2087c98
* rename Run in MessageLoopForUI to RunWithDispatcheroshima@google.com2011-10-242-3/+3
| | | | | | | | | BUG=99471 TEST=none Review URL: http://codereview.chromium.org/8343023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106896 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert BrowsingDatabaseHelper::StartFetching.jhawkins@chromium.org2011-10-231-1/+1
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8370007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106878 0039d316-1c4b-4281-b951-d872f2087c98
* Buffer packets in the IPC P2P layer.sergeyu@chromium.org2011-10-224-16/+64
| | | | | | | | | | | | Setting SO_SNDBUF is not enough on Windows because Send() can still be asynchronous even when there is space in the send buffer. TEST=Unittests BUG=100865 Review URL: http://codereview.chromium.org/8342053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106827 0039d316-1c4b-4281-b951-d872f2087c98
* Call PluginService::PurgePluginListCache on the UI thread.bauerb@chromium.org2011-10-221-1/+4
| | | | | | | | | | BUG=101140 TEST=no dcheck Review URL: http://codereview.chromium.org/8364035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106826 0039d316-1c4b-4281-b951-d872f2087c98
* Revert: Internalize JSON chunk merging to trace_event.h API.mpcomplete@chromium.org2011-10-225-27/+31
| | | | | | | | | | | BUG=100291 TEST=base_unittests, content_unittests Review URL: http://codereview.chromium.org/8355024 Review URL: http://codereview.chromium.org/8369021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106812 0039d316-1c4b-4281-b951-d872f2087c98
* Internalize JSON chunk merging to trace_event.h API.jbates@chromium.org2011-10-215-31/+27
| | | | | | | | | BUG=100291 TEST=base_unittests, content_unittests Review URL: http://codereview.chromium.org/8355024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106808 0039d316-1c4b-4281-b951-d872f2087c98
* Get the mousewheel to work on windows at least!BUG=noneTEST=noneben@chromium.org2011-10-215-1/+46
| | | | | | Review URL: http://codereview.chromium.org/8371011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106805 0039d316-1c4b-4281-b951-d872f2087c98
* Move content_paths.h to content/public/common.jam@chromium.org2011-10-211-1/+1
| | | | | | | | BUG=98716 TBR=avi Review URL: http://codereview.chromium.org/8375007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106795 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for accessible labels for controls.dmazzoni@chromium.org2011-10-215-14/+271
| | | | | | | | | | | | This implements TitleUIElement on Mac, and IAccessibleRelation on Windows. BUG=89197 TEST=Manual testing with JAWS, NVDA, and VoiceOver. Review URL: http://codereview.chromium.org/8359012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106787 0039d316-1c4b-4281-b951-d872f2087c98
* Move SerializedScriptValue to content/public/common and put it into the ↵jam@chromium.org2011-10-216-40/+47
| | | | | | | | | content namespace. BUG=98716 Review URL: http://codereview.chromium.org/8372009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106781 0039d316-1c4b-4281-b951-d872f2087c98
* OpenBSD patches for chrome/content, split from CR #8275005robert.nagy@gmail.com2011-10-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | about_flags.cc: define kOsLinux on OpenBSD too for flags chrome_content_browser_client.cc: Replace OS_LINUX with TOOLKIT_USES_GTK so that Gtk+ platforms can share the code. component_updater_configurator.cc: OpenBSD defs. for the updater. chrome_browser.gypi: The dl library is linux only here. pepper_message_filter.cc: This asserts fails on OpenBSD so let's disable it for now so that the porting effort can move ahead and this issue can be investigated later. BUG= TEST= Review URL: http://codereview.chromium.org/8344001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106765 0039d316-1c4b-4281-b951-d872f2087c98
* Send the PID of the renderer process that is getting closed in ↵rosen.dash@gmail.com2011-10-214-9/+24
| | | | | | | | | | | | | | RenderClosedDetails. This helps fixing the leaks where Aw! Snap, He's Dead JIM tabs come and Browser's PID is sent instead of Renderer PID's. BUG=55734 TEST=None Patch by: rosen.dash@gmail.com Review URL: http://codereview.chromium.org/8217005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106758 0039d316-1c4b-4281-b951-d872f2087c98
* [Web Intents] Add a source tab observation mechanism so you can see if the ↵gbillock@chromium.org2011-10-212-5/+10
| | | | | | | | | | | | | source tab closes and avoid updating. R=groby@chromium.org BUG=None TEST=None Review URL: http://codereview.chromium.org/8365004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106754 0039d316-1c4b-4281-b951-d872f2087c98
* Gracefully handle child process death in out-of-process plugin loading.rsesek@chromium.org2011-10-215-47/+498
| | | | | | | | | | | This also queues requests to load plugins, based on http://codereview.chromium.org/8243010/. BUG=100053 TEST=Install Sonix webcam driver on OS X Lion and try to load a Flash video. It plays. Review URL: http://codereview.chromium.org/8318028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106738 0039d316-1c4b-4281-b951-d872f2087c98
* Move PepperPluginInfo to content/public/common and put it into the content ↵jam@chromium.org2011-10-214-17/+18
| | | | | | | | | namespace. BUG=98716 Review URL: http://codereview.chromium.org/8366027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106731 0039d316-1c4b-4281-b951-d872f2087c98
* When WorkerProcessHost receives WorkerHostMsg_WorkerContextDestroyed message ↵yurys@chromium.org2011-10-216-101/+73
| | | | | | | | | | | | | it will always notify worker service observers even if there is no corresponding WorkerInstance in WorkerProcessHost::instances_ list(the instance can be removed when WorkerMessageFilter is closed). WorkerDevToolsManager::InspectedWorkersList has been merged into WorkerDevToolsManager. BUG=None TEST=None Review URL: http://codereview.chromium.org/8364008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106686 0039d316-1c4b-4281-b951-d872f2087c98
* GCC 4.6 fix similar to r106675.yusukes@google.com2011-10-211-1/+1
| | | | | | | | | | BUG=None TEST=build Chrome inside Chrome OS chroot. TBR=steveblock@chromium.org Review URL: http://codereview.chromium.org/8364032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106681 0039d316-1c4b-4281-b951-d872f2087c98
* Adds the browser component of the Java Bridge for a single RenderViewsteveblock@chromium.org2011-10-212-0/+140
| | | | | | | | | | | | This patch adds JavaBridgeDispatcherHost, which handles injecting Java objects into a single RenderView. BUG=96703 Review URL: http://codereview.chromium.org/8361018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106668 0039d316-1c4b-4281-b951-d872f2087c98
* [Web Intents] Add return pathways for picker-close and service-close.gbillock@chromium.org2011-10-211-2/+11
| | | | | | | | | | | R=groby@chromium.org BUG=None TEST=None Review URL: http://codereview.chromium.org/8348024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106666 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 106653 - hackaton: enable one finger scrolling for touch eventsIn a ↵cpu@chromium.org2011-10-212-100/+2
| | | | | | | | touch screen the current experience is horrible, finger panning just causes content selection, or image dragging (copy)if initiated from an image in the page.This happens because we don't handle WM_GESTTURE events, so windows generates mousedown+drag events.With this patch at least we scroll, selection becomes difficult but that is a much better experience.Works for windows 7 and above.BUG=52260TEST= see bugReview URL: http://codereview.chromium.org/8354030TBR=cpu@chromium.org Review URL: http://codereview.chromium.org/8363022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106662 0039d316-1c4b-4281-b951-d872f2087c98
* hackaton: enable one finger scrolling for touch eventscpu@chromium.org2011-10-212-2/+100
| | | | | | | | | | | | | In a touch screen the current experience is horrible, finger panning just causes content selection, or image dragging (copy) if initiated from an image in the page. This happens because we don't handle WM_GESTTURE events, so windows generates mousedown+drag events. With this patch at least we scroll, selection becomes difficult but that is a much better experience. Works for windows 7 and above.BUG=52260TEST= see bug Review URL: http://codereview.chromium.org/8354030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106653 0039d316-1c4b-4281-b951-d872f2087c98
* Move SecurityStyle enum into content/public/common and put it into the ↵jam@chromium.org2011-10-214-17/+25
| | | | | | | | content namespace.BUG=98716 Review URL: http://codereview.chromium.org/8361019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106642 0039d316-1c4b-4281-b951-d872f2087c98