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

Issue 2249243002: Remove dip scale dependency from ui::WindowAndroid (Closed)

Created:
4 years, 4 months ago by Tima Vaisburd
Modified:
4 years, 4 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dip scale dependency from ui::WindowAndroid Starting from Android N dip scale can be changed dynamically. In this CL we remove the dip scale impliciltly stored in WindowAndroid's |content_offset_| and use the scale at the time of calculations that involve the content offset. This is a prerequisite for https://codereview.chromium.org/2202123002/ BUG=620929 Committed: https://crrev.com/164e1eecb22e6c1d5a004666bff8ca8d0b127e34 Cr-Commit-Position: refs/heads/master@{#412653}

Patch Set 1 #

Patch Set 2 : Rebase only #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -10 lines) Patch
M content/browser/android/content_view_core_impl.cc View 1 1 chunk +1 line, -2 lines 3 comments Download
M ui/android/view_android.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/android/window_android.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/snapshot/snapshot_android.cc View 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Tima Vaisburd
PTAL
4 years, 4 months ago (2016-08-16 20:53:53 UTC) #2
no sievers
https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc#newcode218 content/browser/android/content_view_core_impl.cc:218: dpi_scale_(ui::GetScaleFactorForNativeView(&view_)), so can this be removed now?
4 years, 4 months ago (2016-08-17 19:21:02 UTC) #3
Tima Vaisburd
https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc#newcode218 content/browser/android/content_view_core_impl.cc:218: dpi_scale_(ui::GetScaleFactorForNativeView(&view_)), On 2016/08/17 19:21:02, sievers wrote: > so can ...
4 years, 4 months ago (2016-08-17 19:28:39 UTC) #4
boliu
https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc#newcode218 content/browser/android/content_view_core_impl.cc:218: dpi_scale_(ui::GetScaleFactorForNativeView(&view_)), On 2016/08/17 19:28:38, Tima Vaisburd wrote: > On ...
4 years, 4 months ago (2016-08-17 19:32:38 UTC) #5
no sievers
On 2016/08/17 19:32:38, boliu wrote: > https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc > File content/browser/android/content_view_core_impl.cc (right): > > https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc#newcode218 > ...
4 years, 4 months ago (2016-08-17 19:33:37 UTC) #6
no sievers
On 2016/08/17 19:33:37, sievers wrote: > On 2016/08/17 19:32:38, boliu wrote: > > > https://codereview.chromium.org/2249243002/diff/20001/content/browser/android/content_view_core_impl.cc ...
4 years, 4 months ago (2016-08-17 19:34:00 UTC) #7
boliu
On 2016/08/17 19:34:00, sievers wrote: > On 2016/08/17 19:33:37, sievers wrote: > > On 2016/08/17 ...
4 years, 4 months ago (2016-08-17 19:35:16 UTC) #8
Ted C
lgtm
4 years, 4 months ago (2016-08-17 20:21:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2249243002/20001
4 years, 4 months ago (2016-08-17 20:58:27 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-17 21:46:01 UTC) #12
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 21:51:04 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/164e1eecb22e6c1d5a004666bff8ca8d0b127e34
Cr-Commit-Position: refs/heads/master@{#412653}

Powered by Google App Engine
This is Rietveld 408576698