summaryrefslogtreecommitdiffstats
path: root/chrome/browser/device_orientation
Commit message (Collapse)AuthorAgeFilesLines
* Fix reversed axis on MacBookPro6,1. Verified with user.avi@chromium.org2011-02-081-0/+3
| | | | | | | | | BUG=none TEST=test with MacBookPro6,1 if you can find one. Review URL: http://codereview.chromium.org/6457006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74184 0039d316-1c4b-4281-b951-d872f2087c98
* Device Orientation: suppress assert about thread join from IO thread.hans@chromium.org2011-02-081-0/+5
| | | | | | | | | | | Temporarily suppress in order to stop breaking other tests. BUG=72286 TEST=see bug Review URL: http://codereview.chromium.org/6452012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74139 0039d316-1c4b-4281-b951-d872f2087c98
* Remove obsolete base/lock.h and fix up callers to use the new header file andbrettw@chromium.org2011-01-211-4/+4
| | | | | | | | | | | the base namespace. Fix several files including lock.h unnecessarily. BUG=none TEST=none Original review=http://codereview.chromium.org/6142009/ Patch by leviw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72106 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/thread.h to base/threading, fix up callers to use the new location.brettw@chromium.org2011-01-011-1/+1
| | | | | | | | TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6028009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70345 0039d316-1c4b-4281-b951-d872f2087c98
* Almost done deinlining virtual methods.erg@google.com2010-12-162-7/+4
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5841002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69470 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded browser_thread.h usage.thestig@chromium.org2010-12-131-2/+4
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5676004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69037 0039d316-1c4b-4281-b951-d872f2087c98
* Switch a bunch of remaining filters to derive from BrowserMessageFilters so ↵jam@chromium.org2010-12-132-42/+34
| | | | | | | | that ResourceMessageFilter doesn't have to know about them and vice versa. A bunch of small cleanup in the process. I've added new message files for classes that want their messages dispatched on threads other than the IO. Review URL: http://codereview.chromium.org/5698008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69008 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)thestig@chromium.org2010-11-301-1/+2
| | | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5139006 TBR=thestig@chromium.org Review URL: http://codereview.chromium.org/5270010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67674 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 10)thestig@chromium.org2010-11-301-2/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5139006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67662 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Include browser.h -> ui/browser.h [Part 3].jhawkins@chromium.org2010-11-161-1/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5089001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66338 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass parameters by reference.jhawkins@chromium.org2010-11-093-5/+5
| | | | | | | | | | | | CID=2620,2654,2656,2657,2694,2701,2718,8074,8075,8076,8077,8078, 8079,8080,8082,8083,8406,8407,8408,8730,9160,11282,11897,12722, 12724 BUG=none TEST=none Review URL: http://codereview.chromium.org/4623001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65469 0039d316-1c4b-4281-b951-d872f2087c98
* Convert implicit scoped_refptr constructor calls to explicit ones, part 1thakis@chromium.org2010-11-011-1/+1
| | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ChromeThread to BrowserThread Part19:tfarina@chromium.org2010-10-123-3/+3
| | | | | | | | | | | - Include browser_thread.h instead of chrome_thread.h in more 65 files. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3717003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62226 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ChromeThread to BrowserThread Part9:tfarina@chromium.org2010-10-092-4/+4
| | | | | | | | | | | - Rename entries under debbuger, device_orientation, dom_ui. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3684001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62074 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move virtual methods to implementation files.erg@google.com2010-09-232-6/+10
| | | | | | | | | | | Remove logging.h and other headers where possible. BUG=none TEST=none Review URL: http://codereview.chromium.org/3461019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60369 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DeviceOrientationProviderTest.ObserverNotRemoved.hans@chromium.org2010-09-021-0/+4
| | | | | | | | | | | | | | | | | | | The problem was that some extra reference to Provider was left after the ObserverNotRemoved test had finished. This reference was held by the RunnableMethod object that executes ProviderImpl::DoInitializePollingThread on a background thread. In the test, there were no guarantees that the body of this function would finish before the test ended, thus causing a problem. Fixing this by pushing another orientation through, forcing the Provider to execute at least one Poll task on the background thread, which can only happen after the initialization of the polling thread is done. BUG=53865 TEST=unit_tests --gtest_filter=DeviceOrientationProviderTest.ObserverNotRemoved Review URL: http://codereview.chromium.org/3232005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58359 0039d316-1c4b-4281-b951-d872f2087c98
* Added tested and corrected accelerometer support for the following MacBook / ↵hans@chromium.org2010-08-272-47/+69
| | | | | | | | | | | | | | | | | | | | | | | MacBook Pro models: - MacBookPro2,2 - MacBookPro3,1 - MacBookPro4,1 - MacBookPro5,1 - MacBookPro6,2 - MacBookPro7,1 This patch fixes the axis inversion problems on these. Landing for Leandro Gracia Gil <leandrogracia@google.com>. Original code review: http://codereview.chromium.org/3177035/show BUG=44654 TEST=None Review URL: http://codereview.chromium.org/3275002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57721 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DeviceOrientationProviderTest.hans@chromium.org2010-08-275-92/+95
| | | | | | | | | | | | | | | | There was a race that could potentially result in a reference to Provider being left after a test finished, causing the next test to fail. The test must not assume that the orientation update notification is posted on the message loop right away, but rather wait for it. I was not able to reproduce the bug, but I believe this should fix it. BUG=53468 TEST=unit_tests --gtest_filter=DeviceOrientationProviderTest* Review URL: http://codereview.chromium.org/3231003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57719 0039d316-1c4b-4281-b951-d872f2087c98
* Enable device orientation by default.hans@chromium.org2010-08-272-35/+1
| | | | | | | | | | | | Enable device orientation by default. Replace the --enable-device-orientation command-line flag with a --disable-device-orientation flag. BUG=44654 TEST=browser_tests --gtest_filter="DeviceOrientationBrowserTest.*" Review URL: http://codereview.chromium.org/3136038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57684 0039d316-1c4b-4281-b951-d872f2087c98
* Mark test as DISABLED after it crashed twice.dmazzoni@chromium.org2010-08-261-1/+2
| | | | | | | | | BUG=53468 TEST=Mark DeviceOrientationProviderTest.StartFailing as disabled. Review URL: http://codereview.chromium.org/3199022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57554 0039d316-1c4b-4281-b951-d872f2087c98
* Adding MacBook Pro accelerometer support.hans@chromium.org2010-08-263-1/+448
| | | | | | | | | | | | | | A class for handling Sudden Motion Sensors. It's only compiled under Mac OS. Landing for Leandro Gracia Gil <leandrogracia@google.com>. Original code review: http://codereview.chromium.org/3169040/show BUG=44654 TEST=none Review URL: http://codereview.chromium.org/3187025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57521 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move individual XXXMsg_Params structs to a new file.erg@google.com2010-08-241-0/+1
| | | | | | | | | | | | | | | | The new file, render_messages_params.h, is included in 57 files, while render_messages.h is included in 176 files. Moving the Params structs to their own file allow pruning the included headers. (Part 2 of this cleanup will be sorting the individual structs into themes to further minimize header inclusion.) BUG=51411 TEST=compiles Review URL: http://codereview.chromium.org/3119035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57229 0039d316-1c4b-4281-b951-d872f2087c98
* device_orientation::DispatcherHost: one Provider observer per render_view_id.hans@chromium.org2010-08-243-39/+74
| | | | | | | | | | | | | | Refactor device_orientation::DispatcherHost to create a 1-to-1 relationship between a RenderView and an observer of the Provider. The intention is to remove the need for logic from DispatcherHost, and in effect have the RenderView observe the Provider. BUG=44654 TEST=browser_tests --gtest_filter=DeviceOrientationBrowserTest.BasicTest Review URL: http://codereview.chromium.org/3152043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57176 0039d316-1c4b-4281-b951-d872f2087c98
* Implement device_orientation::Provider.hans@chromium.org2010-08-237-8/+697
| | | | | | | | | | | | Provider provides its registered observers with device orientation data by finding and polling a DataFetcher on a background thread. BUG=44654 TEST=unit_tests --gtest_filter="DeviceOrientationProviderTest.*" Review URL: http://codereview.chromium.org/3136008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57036 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium plumbing for Device Orientation.hans@chromium.org2010-08-116-0/+320
| | | | | | | | | | | | | | | Add the plumbing needed for communicating with the Device Orientation code in WebKit. RenderView provides an implementation of WebKit::WebDeviceOrientationClient: DeviceOrientationDispatcher. This communicates with the browser-side class device_orientation::DispatcherHost. device_orientation::Provider, responsible for providing the orientation data, is just an empty shell for now. BUG=44654 TEST=browser_tests --gtest_filter=DeviceOrientationBrowserTest.BasicTest Review URL: http://codereview.chromium.org/2858049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55724 0039d316-1c4b-4281-b951-d872f2087c98
* Fix win build errors. Don't initialize FilePath with const char*.hans@chromium.org2010-07-221-3/+3
| | | | | | | | | BUG=None TEST=Build should turn green Review URL: http://codereview.chromium.org/2834066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53321 0039d316-1c4b-4281-b951-d872f2087c98
* Add --enable-device-orientation switch and set ENABLE_DEVICE_ORIENTATION=1hans@chromium.org2010-07-221-0/+34
Flip the compile-time enable switch for device orientation to on, and add a command-line switch to put the functionality behind. The command-line flag will be used both on the Chromium side, and in WebKit via WebRuntimeFeatures. BUG=44654 TEST=browser_tests --gtest_filter=DeviceOrientationEnableSwitchTest.* Review URL: http://codereview.chromium.org/3042009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53317 0039d316-1c4b-4281-b951-d872f2087c98