summaryrefslogtreecommitdiffstats
path: root/ui/gfx/screen_android.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix autofill popup stickiness.dbeam@chromium.org2013-08-281-1/+7
| | | | | | | | | | | | | Unhandled clicks while the autofill popup is showing should dismiss it. Additionally, forward mouse events that aren't directly useful to the popup. R=estade@chromium.org,sadrul@chromium.org,sky@chromium.org BUG=259529 Review URL: https://chromiumcodereview.appspot.com/19458003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219974 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor display_info_provider_chrmoeos and provide standard impl for otheroshima@chromium.org2013-08-231-1/+5
| | | | | | | | | | | | | | | | | | | platforms. Added gfx::Screen::GetAllDisplays() I moved QueryInfo on Windows to UI thread as this gfx::Screen is already querying this info on UI thread, and supposed to be fast. Next Step: Implement GetAllDisplays for win/mac/gtk. BUG=122863 R=hongbo.min@intel.com, sky@chromium.org Review URL: https://codereview.chromium.org/23205029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219293 0039d316-1c4b-4281-b951-d872f2087c98
* content_shell: Force a DSF of 1.0 for layout tests, and disable Text ↵peter@chromium.org2013-06-181-1/+2
| | | | | | | | | | | | | | | | | | Autosizing for Android Rendered content in the result images of layout tests gets upscaled based on the device scale factor, which means every device with a scale factor that's not 1 needs a completely different set of results. Force the scale factor to be 1.0 everywhere. Also disable Text Autosizing when running layout tests. Tests which use this feature will enable it manually. BUG=232044 Review URL: https://chromiumcodereview.appspot.com/17288003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206981 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Clang warnings for implementation files on all platforms.rsleevi@chromium.org2013-05-151-13/+9
| | | | | | | | | | This fixes a few remaining issues for Android builds BUG=115047 Review URL: https://chromiumcodereview.appspot.com/14876034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200125 0039d316-1c4b-4281-b951-d872f2087c98
* Use correct favicon scale factor on Android.aruslan@chromium.org2013-01-241-2/+14
| | | | | | | | | | | | | | - Splits and moves Android's display DeviceInfo from content to gfx; - Uses DeviceInfo for Android's Screen implementation; - Uses PrimaryDisplay's scale to figure out favicon scale factor. BUG=168319 BUG=117839 TEST=manual as in 168319; AwSettingsTest#testUseWideViewportLayoutWidth Review URL: https://chromiumcodereview.appspot.com/11886074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178472 0039d316-1c4b-4281-b951-d872f2087c98
* Make new-style page scale work on Android.aelias@chromium.org2013-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | - Fix CC's PinchZoomViewport and MaxScrollOffset logic to work in fixed layout mode. Root layer max scroll offset is based on WebKit-perceived outer viewport and therefore should logically use layout_viewport_size_, whereas the inner one is the true user-visible viewport and therefore should use device_viewport_size_. - Fix Android to send down viewport size in DIP when --enable-css-transform-pinch is not specified. Default to non-CSS-transform mode when in impl-side painting. - Make ContentSize() return bounds() instead of contentBounds() and rename to ScrollableSize for clarity. This lets us avoid coordinate space conversions when computing max scroll offset. BUG=152505 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11958004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177896 0039d316-1c4b-4281-b951-d872f2087c98
* - Move DisplayManager and DisplayChangeObserverX11 from auraoshima@chromium.org2012-11-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | to ash.DisplayManager/DisplayChangeObserverX11 are in aura for historical reason, but they no longer have to be in aura. * Remove SingleDisplayManager as it's no longer necessary. * Rename MultipleDisplayManager and consolidate into DisplayManager. * Remove DisplayManager from desktop environment. Screen information is managed by platform in desktop environment, and should be provided via gfx::Screen implementation. - Move DisplayObserver to ui/gfx. This should be consolicated with other similar features such as WorkAreaWatcherObserver/ DisplaySettingsProvider. It's tracked in crbug.com/122863. - Misc cleanups * Test should use test_support_ash instead of including individual files. * Use TestScreen where appropriate. BUG=159710, 122863 TEST=none Review URL: https://chromiumcodereview.appspot.com/11363124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167639 0039d316-1c4b-4281-b951-d872f2087c98
* Makes gfx::Screen an instance, rather than a collection of static methods.scottmg@chromium.org2012-10-121-23/+45
| | | | | | | | | | | | | | This is in support of supporting separate Screen implementations on Aura for desktop and metro on Windows. Some callsites are not yet correct, and noted with a reference to the http://crbug.com/133312. As-is those sites will behave the same as before this patch, but may not be correct once desktop/metro can run simultaneously. BUG=133312 Review URL: https://chromiumcodereview.appspot.com/11030017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161644 0039d316-1c4b-4281-b951-d872f2087c98
* Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX.tfarina@chromium.org2012-06-171-7/+6
| | | | | | | | | | BUG=130828 R=oshima@chromium.org TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10540123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142631 0039d316-1c4b-4281-b951-d872f2087c98
* Listen to display settings provider for work area size changes and send thosevarunjain@chromium.org2012-06-151-0/+5
| | | | | | | | | | | | changes to the renderer. BUG=126586 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10407023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142519 0039d316-1c4b-4281-b951-d872f2087c98
* Rename gfx::Monitor to gfx::Displaytfarina@chromium.org2012-06-121-4/+4
| | | | | | | | | | BUG=130828 R=oshima@chromium.org TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10540091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141659 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a couple of bugs with the image skia implementationpkotwicz@chromium.org2012-05-221-0/+5
| | | | | | | | | | | Bug=124566 Test=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137684 Review URL: https://chromiumcodereview.appspot.com/10389109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138287 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 137622 - Fix a couple of bugs with the image skia implementationpkotwicz@chromium.org2012-05-171-5/+0
| | | | | | | | | | | | Bug=124566 Test=Manual Review URL: https://chromiumcodereview.appspot.com/10389109 TBR=pkotwicz@chromium.org Review URL: https://chromiumcodereview.appspot.com/10391179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137625 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a couple of bugs with the image skia implementationpkotwicz@chromium.org2012-05-171-0/+5
| | | | | | | | | Bug=124566 Test=Manual Review URL: https://chromiumcodereview.appspot.com/10389109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137622 0039d316-1c4b-4281-b951-d872f2087c98
* Get the default device scale factor from monitor oshima@chromium.org2012-05-011-0/+5
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/10255020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134677 0039d316-1c4b-4281-b951-d872f2087c98
* * Separated implementation class from gfx::Screenoshima@chromium.org2012-04-251-2/+3
| | | | | | | | | | | | * Moved Monitor class to gfx/. * Converted all use of gfx::Screen to match new API BUG=115347,111990 TEST=none Review URL: https://chromiumcodereview.appspot.com/9960042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133961 0039d316-1c4b-4281-b951-d872f2087c98
* Add Screen stubs for Androidyfriedman@chromium.org2012-03-131-0/+22
BUG=117407 TEST= Review URL: http://codereview.chromium.org/9689017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126293 0039d316-1c4b-4281-b951-d872f2087c98