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

Issue 2358893002: Remove DIP scale from PopupTouchHandleDrawable (Closed)

Created:
4 years, 3 months ago by Tima Vaisburd
Modified:
4 years, 3 months ago
Reviewers:
boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org, Jinsuk Kim
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove DIP scale from PopupTouchHandleDrawable Now the native part of PopupTouchHandleDrawable always operates in DIP coordinates. The Java part converts from pixels to DIP using the device scale factor which it obtains from ContentViewCore. BUG=620929 Committed: https://crrev.com/95096567989c7a4f1b96d31a1c45d5c2dc8f8abb Cr-Commit-Position: refs/heads/master@{#420198}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Went back to separate X and Y methods for container position #

Patch Set 3 : Fixed formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -46 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java View 1 2 7 chunks +27 lines, -25 lines 0 comments Download
M android_webview/native/popup_touch_handle_drawable.h View 2 chunks +3 lines, -3 lines 0 comments Download
M android_webview/native/popup_touch_handle_drawable.cc View 4 chunks +7 lines, -16 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (7 generated)
Tima Vaisburd
PTAL. https://codereview.chromium.org/2358893002/diff/1/android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java File android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java (right): https://codereview.chromium.org/2358893002/diff/1/android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java#newcode498 android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java:498: private float getOriginXDip() { Shall we have one ...
4 years, 3 months ago (2016-09-21 18:58:33 UTC) #2
boliu
https://codereview.chromium.org/2358893002/diff/1/android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java File android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java (right): https://codereview.chromium.org/2358893002/diff/1/android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java#newcode262 android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java:262: return new Point(mParentPositionX + (int) (mOriginXDip * deviceScale), hmm.....can ...
4 years, 3 months ago (2016-09-21 20:12:33 UTC) #7
Tima Vaisburd
https://codereview.chromium.org/2358893002/diff/1/android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java File android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java (right): https://codereview.chromium.org/2358893002/diff/1/android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java#newcode262 android_webview/java/src/org/chromium/android_webview/PopupTouchHandleDrawable.java:262: return new Point(mParentPositionX + (int) (mOriginXDip * deviceScale), On ...
4 years, 3 months ago (2016-09-21 21:37:10 UTC) #8
boliu
lgtm
4 years, 3 months ago (2016-09-21 23:01:28 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/2358893002/40001
4 years, 3 months ago (2016-09-21 23:03:40 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-21 23:34:42 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 00:31:14 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/95096567989c7a4f1b96d31a1c45d5c2dc8f8abb
Cr-Commit-Position: refs/heads/master@{#420198}

Powered by Google App Engine
This is Rietveld 408576698