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

Issue 2394773006: android: Use DisplayAndroid in java (Closed)

Created:
4 years, 2 months ago by boliu
Modified:
4 years, 2 months ago
Reviewers:
Ted C
CC:
chromium-reviews, rouslan+autofill_chromium.org, jam, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, agrieve+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, android-webview-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

android: Use DisplayAndroid in java This replaces usage of java DeviceDisplayInfo with DisplayAndroid. Unfortunately java code generally only pass around the Context instead of WindowAndroid, so need to officially expose the DisplayAndroid.get method to the public. The rest is pretty easy. Only had to add getDIPScale. BUG=625089 Committed: https://crrev.com/ca85be85c0bf1d91b9d06b50c2216e7a7394d4df Cr-Commit-Position: refs/heads/master@{#423806}

Patch Set 1 #

Total comments: 2

Patch Set 2 : javadoc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -69 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java View 2 chunks +2 lines, -3 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java View 7 chunks +7 lines, -7 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java View 5 chunks +5 lines, -5 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java View 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwLegacyQuirksTest.java View 5 chunks +19 lines, -21 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 6 chunks +12 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/firstrun/ProfileDataCache.java View 2 chunks +4 lines, -4 lines 0 comments Download
M components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java View 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java View 3 chunks +6 lines, -6 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java View 1 4 chunks +16 lines, -1 line 0 comments Download
M ui/android/java/src/org/chromium/ui/resources/ResourceManager.java View 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
boliu
ptal
4 years, 2 months ago (2016-10-06 19:22:40 UTC) #7
Ted C
lgtm https://codereview.chromium.org/2394773006/diff/1/ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java File ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java (right): https://codereview.chromium.org/2394773006/diff/1/ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java#newcode53 ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java:53: public static DisplayAndroid get(Context context) { javadoc now. ...
4 years, 2 months ago (2016-10-06 23:59:01 UTC) #8
boliu
https://codereview.chromium.org/2394773006/diff/1/ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java File ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java (right): https://codereview.chromium.org/2394773006/diff/1/ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java#newcode53 ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java:53: public static DisplayAndroid get(Context context) { On 2016/10/06 23:59:01, ...
4 years, 2 months ago (2016-10-07 02:32:42 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/2394773006/20001
4 years, 2 months ago (2016-10-07 02:33:09 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/156118)
4 years, 2 months ago (2016-10-07 04:11:23 UTC) #14
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/2394773006/20001
4 years, 2 months ago (2016-10-07 04:30:56 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/156148)
4 years, 2 months ago (2016-10-07 05:18:18 UTC) #18
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/2394773006/20001
4 years, 2 months ago (2016-10-07 05:28:42 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-07 06:08:57 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 06:11:30 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ca85be85c0bf1d91b9d06b50c2216e7a7394d4df
Cr-Commit-Position: refs/heads/master@{#423806}

Powered by Google App Engine
This is Rietveld 408576698