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

Issue 12188020: Adding the page and DPI scale adjustment for Autofill Popups. (Closed)

Created:
7 years, 10 months ago by aurimas (slooooooooow)
Modified:
7 years, 10 months ago
Reviewers:
palmer, Ted C, Ilya Sherman
CC:
chromium-reviews, Raman Kakilate, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman
Visibility:
Public.

Description

Adding the page and DPI scale adjustment for Autofill Popups. Switching from using Rect to RectF in Autofill. This is to ensure that no round of values are lost when DPI scale is applied. These changes were required after the coordinate system change that came with Impl-side painting. BUG=172409 TEST=Get an Autofill popup to show up on Chrome Android Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180913

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixing Linux compile error #

Patch Set 3 : Fixing Linux compile error Try #2 #

Patch Set 4 : Remove round() function #

Patch Set 5 : Fixing Autofill unittests #

Total comments: 6

Patch Set 6 : Fixing autofill unittests #

Patch Set 7 : Last linux fix? #

Patch Set 8 : Last linux fix 2? #

Patch Set 9 : Fix MOCK methods #

Patch Set 10 : Mock call fix #2 #

Total comments: 4

Patch Set 11 : Fixed Ted's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -52 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_external_delegate.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_external_delegate.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_external_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.h View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/test_autofill_external_delegate.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/test_autofill_external_delegate.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller.h View 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.h View 1 2 3 4 5 6 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc View 1 2 3 4 5 9 chunks +17 lines, -13 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/common/autofill_messages.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/autofill/autofill_agent.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/autofill_agent.cc View 3 chunks +8 lines, -1 line 0 comments Download
M chrome/renderer/autofill/password_autofill_manager.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_manager.cc View 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
aurimas (slooooooooow)
Hey Ilya, Could you take a look at this CL? Thanks! Aurimas
7 years, 10 months ago (2013-02-04 22:17:49 UTC) #1
Ilya Sherman
https://codereview.chromium.org/12188020/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java (right): https://codereview.chromium.org/12188020/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java#newcode155 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java:155: mAnchorRect = new Rect((int) Math.round(x * scale), (int) Math.round(y ...
7 years, 10 months ago (2013-02-04 23:23:27 UTC) #2
aurimas (slooooooooow)
https://codereview.chromium.org/12188020/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java (right): https://codereview.chromium.org/12188020/diff/1/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java#newcode155 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java:155: mAnchorRect = new Rect((int) Math.round(x * scale), (int) Math.round(y ...
7 years, 10 months ago (2013-02-04 23:56:26 UTC) #3
Ilya Sherman
LGTM with nits addressed and green bots. Thanks. https://chromiumcodereview.appspot.com/12188020/diff/8002/chrome/browser/ui/autofill/autofill_popup_controller.h File chrome/browser/ui/autofill/autofill_popup_controller.h (right): https://chromiumcodereview.appspot.com/12188020/diff/8002/chrome/browser/ui/autofill/autofill_popup_controller.h#newcode66 chrome/browser/ui/autofill/autofill_popup_controller.h:66: virtual ...
7 years, 10 months ago (2013-02-05 02:27:53 UTC) #4
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/12188020/diff/8002/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc File chrome/browser/ui/autofill/autofill_popup_controller_impl.cc (right): https://chromiumcodereview.appspot.com/12188020/diff/8002/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc#newcode295 chrome/browser/ui/autofill/autofill_popup_controller_impl.cc:295: const gfx::Rect AutofillPopupControllerImpl::rounded_element_bounds() const { On 2013/02/05 02:27:53, Ilya ...
7 years, 10 months ago (2013-02-06 00:05:27 UTC) #5
Ilya Sherman
https://chromiumcodereview.appspot.com/12188020/diff/8002/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc File chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/12188020/diff/8002/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc#newcode283 chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:283: gfx::Rect bounds(0, 0, 1, 2); On 2013/02/06 00:05:27, aurimas ...
7 years, 10 months ago (2013-02-06 00:07:40 UTC) #6
aurimas (slooooooooow)
Hey Chris, Could you take a look at chrome/common/autofill_messages.h changes? Thanks, Aurimas
7 years, 10 months ago (2013-02-06 00:12:42 UTC) #7
aurimas (slooooooooow)
Hey Ted, Could you take a look at chrome/android changes? Thanks, Aurimas
7 years, 10 months ago (2013-02-06 00:13:32 UTC) #8
Ted C
lgtm w/ nits https://chromiumcodereview.appspot.com/12188020/diff/23015/chrome/browser/autofill/test_autofill_external_delegate.cc File chrome/browser/autofill/test_autofill_external_delegate.cc (right): https://chromiumcodereview.appspot.com/12188020/diff/23015/chrome/browser/autofill/test_autofill_external_delegate.cc#newcode18 chrome/browser/autofill/test_autofill_external_delegate.cc:18: gfx::RectF bounds(100, 100); 100.f, 100.f https://chromiumcodereview.appspot.com/12188020/diff/23015/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc ...
7 years, 10 months ago (2013-02-06 00:35:24 UTC) #9
palmer
lgtm
7 years, 10 months ago (2013-02-06 00:35:39 UTC) #10
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/12188020/diff/23015/chrome/browser/autofill/test_autofill_external_delegate.cc File chrome/browser/autofill/test_autofill_external_delegate.cc (right): https://chromiumcodereview.appspot.com/12188020/diff/23015/chrome/browser/autofill/test_autofill_external_delegate.cc#newcode18 chrome/browser/autofill/test_autofill_external_delegate.cc:18: gfx::RectF bounds(100, 100); On 2013/02/06 00:35:24, Ted C wrote: ...
7 years, 10 months ago (2013-02-06 00:50:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/12188020/15024
7 years, 10 months ago (2013-02-06 00:51:52 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=81376
7 years, 10 months ago (2013-02-06 04:54:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/12188020/15024
7 years, 10 months ago (2013-02-06 05:28:45 UTC) #14
commit-bot: I haz the power
7 years, 10 months ago (2013-02-06 07:02:08 UTC) #15
Message was sent while issue was closed.
Change committed as 180913

Powered by Google App Engine
This is Rietveld 408576698