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 11740033: [Autofill] Add Mac implementation for the in-browser process popup view. (Closed)

Created:
7 years, 11 months ago by Ilya Sherman
Modified:
7 years, 11 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, dhollowa+watch_chromium.org, ahutter, dbeam+watch-autofill_chromium.org, sail+watch_chromium.org, Dane Wallinga, dyu1, Albert Bodenhamer, estade+watch_chromium.org, Ilya Sherman
Visibility:
Public.

Description

[Autofill] Add Mac implementation for the in-browser process popup view. There are still some TODOs, but the basic mouse-based functionality is implemented. As additional context: The stable version of the Autofill popup UI is currently implemented in the renderer process -- actually, as part of WebKit. It's implemented (cross-platform) as a heavily styled version of the <select> popup that we use on non-Mac platforms. This CL implements this same popup as a native UI, to reach parity with GTK and Views. BUG=51644 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176558

Patch Set 1 #

Total comments: 40

Patch Set 2 : Calibrated colors, fewer defaults #

Total comments: 19

Patch Set 3 : Flipped view, broken out mouse events, style fixes. #

Total comments: 3

Patch Set 4 : Screen handling #

Total comments: 21

Patch Set 5 : Rename _mac to _bridge, added TODOs for cleanup per Nico's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+482 lines, -16 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
D chrome/browser/ui/autofill/autofill_popup_view.cc View 1 chunk +0 lines, -14 lines 0 comments Download
A chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.mm View 1 2 3 4 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h View 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm View 1 2 3 4 1 chunk +308 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
Ilya Sherman
Scott, would you mind reviewing (the Mac parts of) this CL? It's been an embarrassingly ...
7 years, 11 months ago (2013-01-04 01:21:02 UTC) #1
Ilya Sherman
https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode198 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:198: // TODO(isherman): Set font, colors, and any other appropriate ...
7 years, 11 months ago (2013-01-04 01:24:28 UTC) #2
Scott Hess - ex-Googler
Also, I am somewhat inclined to put the NSView implementation right in the same file ...
7 years, 11 months ago (2013-01-05 01:06:49 UTC) #3
Ilya Sherman
On 2013/01/05 01:06:49, shess wrote: > Also, I am somewhat inclined to put the NSView ...
7 years, 11 months ago (2013-01-05 03:14:10 UTC) #4
Scott Hess - ex-Googler
https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode45 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:45: - (gfx::Point)flipNSPointToPoint:(NSPoint)point; On 2013/01/05 03:14:10, Ilya Sherman wrote: > ...
7 years, 11 months ago (2013-01-09 21:36:16 UTC) #5
Robert Sesek
https://codereview.chromium.org/11740033/diff/7001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://codereview.chromium.org/11740033/diff/7001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode207 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:207: deleteIcon = rb.GetImageNamed(IDR_CLOSE_BAR_H).ToNSImage(); drive-by: use GetNativeImageNamed to avoid an ...
7 years, 11 months ago (2013-01-09 22:17:30 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode45 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:45: - (gfx::Point)flipNSPointToPoint:(NSPoint)point; On 2013/01/09 21:36:17, shess wrote: > On ...
7 years, 11 months ago (2013-01-10 02:21:21 UTC) #7
Ilya Sherman
https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_mac.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_mac.mm (right): https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_mac.mm#newcode73 chrome/browser/ui/cocoa/autofill/autofill_popup_view_mac.mm:73: // be in view coordinates. On 2013/01/10 02:21:21, Ilya ...
7 years, 11 months ago (2013-01-10 04:17:15 UTC) #8
Scott Hess - ex-Googler
lgtm. I'm now finding myself mixed on whether these should be all-one-file or two. I ...
7 years, 11 months ago (2013-01-10 22:02:57 UTC) #9
Scott Hess - ex-Googler
On 2013/01/10 04:17:15, Ilya Sherman wrote: > https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_mac.mm > File chrome/browser/ui/cocoa/autofill/autofill_popup_view_mac.mm (right): > > https://chromiumcodereview.appspot.com/11740033/diff/1/chrome/browser/ui/cocoa/autofill/autofill_popup_view_mac.mm#newcode73 ...
7 years, 11 months ago (2013-01-10 22:11:24 UTC) #10
Ilya Sherman
+Nico for chrome/ OWNERS approval On 2013/01/10 22:02:57, shess wrote: > I'm now finding myself ...
7 years, 11 months ago (2013-01-11 05:08:33 UTC) #11
Nico
https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h (right): https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h#newcode19 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h:19: __weak AutofillPopupController* controller_; We don't use arc, so __weak ...
7 years, 11 months ago (2013-01-11 16:27:38 UTC) #12
Robert Sesek
https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h (right): https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h#newcode19 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h:19: __weak AutofillPopupController* controller_; On 2013/01/11 16:27:38, Nico wrote: > ...
7 years, 11 months ago (2013-01-11 16:28:30 UTC) #13
Nico
On 2013/01/11 16:28:30, rsesek wrote: > https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h > File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h (right): > > https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h#newcode19 > ...
7 years, 11 months ago (2013-01-11 16:31:35 UTC) #14
Robert Sesek
On 2013/01/11 16:31:35, Nico wrote: > On 2013/01/11 16:28:30, rsesek wrote: > > > https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h ...
7 years, 11 months ago (2013-01-11 16:34:25 UTC) #15
Ilya Sherman
https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode34 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:34: return [NSColor colorWithCalibratedWhite:220/255.0 alpha:1]; On 2013/01/11 16:27:38, Nico wrote: ...
7 years, 11 months ago (2013-01-11 23:32:26 UTC) #16
Nico
https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode125 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:125: [border stroke]; On 2013/01/11 23:32:26, Ilya Sherman wrote: > ...
7 years, 11 months ago (2013-01-11 23:40:12 UTC) #17
Scott Hess - ex-Googler
https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://chromiumcodereview.appspot.com/11740033/diff/21001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode221 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:221: BOOL isRTL = base::i18n::IsRTL(); On 2013/01/11 23:40:12, Nico wrote: ...
7 years, 11 months ago (2013-01-11 23:56:55 UTC) #18
Nico
Ilya tells me that they expect to rewrite the UI anyway, so lgtm.
7 years, 11 months ago (2013-01-12 00:17:34 UTC) #19
Ilya Sherman
Renamed the Mac class to Bridge instead, and added TODOs for Nico's comments that we ...
7 years, 11 months ago (2013-01-12 00:59:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/11740033/31001
7 years, 11 months ago (2013-01-12 01:01:17 UTC) #21
commit-bot: I haz the power
7 years, 11 months ago (2013-01-12 17:17:27 UTC) #22
Message was sent while issue was closed.
Change committed as 176558

Powered by Google App Engine
This is Rietveld 408576698