Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Issue 93933016: Android: Add support for returning real screen resolution. (Closed)

Created:
7 years ago by epenner
Modified:
6 years, 11 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Android: Add support for returning real screen resolution. This is supported since JB-MR1, and doesn't subtract window decorations etc. like other size metrics do. TBR=yfriedman@chromium.org BUG=329439 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243795

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Return supported boolean. #

Total comments: 6

Patch Set 4 : Address feedback. #

Patch Set 5 : Don't DCHECK != 0 for physical size. #

Patch Set 6 : #

Patch Set 7 : Rebase. #

Total comments: 5

Patch Set 8 : Add comment. #

Patch Set 9 : Add temp point and fix braces. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -8 lines) Patch
M ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java View 1 2 3 4 5 6 7 8 5 chunks +34 lines, -5 lines 0 comments Download
M ui/gfx/android/device_display_info.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M ui/gfx/android/device_display_info.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M ui/gfx/android/shared_device_display_info.h View 1 2 3 4 5 6 7 4 chunks +9 lines, -0 lines 0 comments Download
M ui/gfx/android/shared_device_display_info.cc View 1 2 3 4 5 5 chunks +28 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
epennerAtGoogle
Ptal.
7 years ago (2013-12-20 02:55:33 UTC) #1
epennerAtGoogle
On 2013/12/20 02:55:33, epennerAtGoogle wrote: > Ptal. I figured returning -1 only on ICS was ...
7 years ago (2013-12-20 03:11:30 UTC) #2
aruslan
I'd suggest adding a separate "bool hasRealDimensions()" or something similar given that you need this ...
7 years ago (2013-12-20 17:55:15 UTC) #3
epenner
+sievers. Ptal.
7 years ago (2013-12-20 19:27:58 UTC) #4
no sievers
https://codereview.chromium.org/93933016/diff/40001/ui/gfx/android/shared_device_display_info.cc File ui/gfx/android/shared_device_display_info.cc (right): https://codereview.chromium.org/93933016/diff/40001/ui/gfx/android/shared_device_display_info.cc#newcode51 ui/gfx/android/shared_device_display_info.cc:51: DCHECK_NE(0, real_display_height_); I think if you throw an exception ...
7 years ago (2013-12-20 19:32:44 UTC) #5
epennerAtGoogle
> I'd suggest adding a separate "bool hasRealDimensions()" or something similar > given that you ...
7 years ago (2013-12-20 19:42:54 UTC) #6
no sievers
https://codereview.chromium.org/93933016/diff/40001/ui/gfx/android/device_display_info.cc File ui/gfx/android/device_display_info.cc (right): https://codereview.chromium.org/93933016/diff/40001/ui/gfx/android/device_display_info.cc#newcode28 ui/gfx/android/device_display_info.cc:28: if (!(supported = height > 0)) And could we ...
7 years ago (2013-12-20 19:51:19 UTC) #7
epennerAtGoogle
> I think you can actually do the same/similar check in the native code here ...
7 years ago (2013-12-20 20:31:36 UTC) #8
no sievers
On 2013/12/20 20:31:36, epennerAtGoogle wrote: > > I think you can actually do the same/similar ...
7 years ago (2013-12-20 21:32:39 UTC) #9
epenner
> Oh that's why I was thinking just return 0 if < JB_MR1 and let ...
7 years ago (2013-12-20 23:50:15 UTC) #10
no sievers
lgtm
7 years ago (2013-12-21 00:21:20 UTC) #11
epennerAtGoogle
On 2013/12/21 00:21:20, sievers wrote: > lgtm Hope I don't regret landing this before the ...
7 years ago (2013-12-21 00:24:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/93933016/230001
7 years ago (2013-12-21 00:26:16 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=42580
7 years ago (2013-12-21 00:44:35 UTC) #14
epennerAtGoogle
I'm TBRing... Since nobody is here to stop me! :P But seriously, I'll address any ...
7 years ago (2013-12-21 00:48:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/93933016/230001
7 years ago (2013-12-21 00:54:27 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=42588
7 years ago (2013-12-21 01:21:22 UTC) #17
epenner
On 2013/12/21 01:21:22, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 11 months ago (2014-01-08 03:56:38 UTC) #18
bulach
lgtm (but please wait for ted, he's a better owner for all things UI). small ...
6 years, 11 months ago (2014-01-08 10:34:56 UTC) #19
Ted C
lgtm (w/ a couple small comments) https://codereview.chromium.org/93933016/diff/420001/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java File ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java (right): https://codereview.chromium.org/93933016/diff/420001/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java#newcode61 ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java:61: return 0; braces ...
6 years, 11 months ago (2014-01-08 21:43:22 UTC) #20
epenner
https://codereview.chromium.org/93933016/diff/420001/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java File ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java (right): https://codereview.chromium.org/93933016/diff/420001/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java#newcode61 ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java:61: return 0; On 2014/01/08 21:43:23, Ted C wrote: > ...
6 years, 11 months ago (2014-01-08 22:32:17 UTC) #21
epennerAtGoogle
Okay addressed all feedback. I'm adding yfriedman as TBR since he's the only OWNER for ...
6 years, 11 months ago (2014-01-08 23:09:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/93933016/510001
6 years, 11 months ago (2014-01-08 23:17:05 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) check_deps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=211673
6 years, 11 months ago (2014-01-09 00:12:19 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/93933016/510001
6 years, 11 months ago (2014-01-09 04:06:31 UTC) #25
commit-bot: I haz the power
Change committed as 243795
6 years, 11 months ago (2014-01-09 07:31:37 UTC) #26
Yaron
6 years, 11 months ago (2014-01-09 17:21:16 UTC) #27
Message was sent while issue was closed.
rubberstamp lgtm. ted should be an owner

Powered by Google App Engine
This is Rietveld 408576698