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

Issue 40483003: [rAC, OSX] Add "generated CC" info bubble. (Closed)

Created:
7 years, 2 months ago by groby-ooo-7-16
Modified:
7 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

[rAC, OSX] Add "generated CC" info bubble. When requestAutocomplete uses Wallet, it generates a card for use for that specific transaction. This code displays an educational bubble, highlighting that it did that and why. It is implemented as a InfoBubble/BaseBubbleController combo, anchored to a decoration in the location bar. The decoration stays in the bar until the user navigates away, and clicking on it shows/hides the explanation. This is the cocoa version of it - for the original views code, see http://crbug.com/243574 & https://chromiumcodereview.appspot.com/16467005) BUG=286527 R=shess@chromium.org, thestig@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233719

Patch Set 1 #

Patch Set 2 : Use (cross-platform) controller. #

Patch Set 3 : Add click handling. #

Patch Set 4 : Display a blank bubble with a fixed size. #

Patch Set 5 : Now with actual bubble contents. #

Patch Set 6 : Final fixes (arrow position etc.) #

Patch Set 7 : Final fixes (arrow position etc.) #

Total comments: 49

Patch Set 8 : Catch up to HEAD #

Patch Set 9 : Review fixes aplenty #

Total comments: 14

Patch Set 10 : MOAR BETAR FIKSES! #

Patch Set 11 : sizeToFitWidth unrolled. #

Total comments: 5

Patch Set 12 : Review fixes #

Patch Set 13 : Use (deprecated) 10.6 function so we can build for OSX 10.6 #

Patch Set 14 : Merge to HEAD #

Patch Set 15 : Merged to *working* HEAD #

Total comments: 1

Patch Set 16 : Remove bad DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -3 lines) Patch
M chrome/browser/ui/autofill/generated_credit_card_bubble_view.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +246 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/generated_credit_card_decoration.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/generated_credit_card_decoration.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +16 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
groby-ooo-7-16
Uploading this step-by-step so I can see what I did there. (I'm annoyed by the ...
7 years, 2 months ago (2013-10-24 20:03:14 UTC) #1
groby-ooo-7-16
shess: PTAL for all things cocoa thestig: *.gypi Screenshot at http://imgur.com/ce4LmQq
7 years, 1 month ago (2013-10-28 18:20:21 UTC) #2
groby-ooo-7-16
Now with actual reviewers... shess: PTAL for all things Cocoa thestig: I can haz gypi ...
7 years, 1 month ago (2013-10-28 18:40:03 UTC) #3
Lei Zhang
You can haz gypi lgtm stamp
7 years, 1 month ago (2013-10-28 18:58:05 UTC) #4
Scott Hess - ex-Googler
sorry for delay. https://chromiumcodereview.appspot.com/40483003/diff/150001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h File chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h (right): https://chromiumcodereview.appspot.com/40483003/diff/150001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h#newcode15 chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h:15: } } seems wrong. https://chromiumcodereview.appspot.com/40483003/diff/150001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm File ...
7 years, 1 month ago (2013-10-31 20:23:18 UTC) #5
groby-ooo-7-16
No worries - and PTAL with the new fixes? https://codereview.chromium.org/40483003/diff/150001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h File chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h (right): https://codereview.chromium.org/40483003/diff/150001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h#newcode15 chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.h:15: ...
7 years, 1 month ago (2013-10-31 22:55:46 UTC) #6
Scott Hess - ex-Googler
I'm generally happy with things. The reason I'm focussing on the text-layout bit is because ...
7 years, 1 month ago (2013-10-31 23:33:38 UTC) #7
groby-ooo-7-16
PTAL - I think sizeToFitWidth looks nice now. https://codereview.chromium.org/40483003/diff/400001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm File chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm (right): https://codereview.chromium.org/40483003/diff/400001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm#newcode37 chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm:37: // ...
7 years, 1 month ago (2013-11-01 00:28:58 UTC) #8
groby-ooo-7-16
Hopefully this is it.
7 years, 1 month ago (2013-11-01 01:10:06 UTC) #9
Scott Hess - ex-Googler
lgtm, minor nits. https://codereview.chromium.org/40483003/diff/510001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm File chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm (right): https://codereview.chromium.org/40483003/diff/510001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm#newcode36 chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm:36: // Bridge to C++ side. Owned. ...
7 years, 1 month ago (2013-11-04 21:20:54 UTC) #10
groby-ooo-7-16
https://codereview.chromium.org/40483003/diff/510001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm File chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm (right): https://codereview.chromium.org/40483003/diff/510001/chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm#newcode36 chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm:36: // Bridge to C++ side. Owned. On 2013/11/04 21:20:55, ...
7 years, 1 month ago (2013-11-04 22:02:04 UTC) #11
Scott Hess - ex-Googler
lgtm
7 years, 1 month ago (2013-11-04 22:03:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/40483003/700001
7 years, 1 month ago (2013-11-04 22:10:27 UTC) #13
groby-ooo-7-16
Just FYI - small fix to use convertBaseToScreen instead of convertRectToScreen, so 10.6 compiles.
7 years, 1 month ago (2013-11-04 23:27:30 UTC) #14
Scott Hess - ex-Googler
lgtm
7 years, 1 month ago (2013-11-04 23:49:30 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-05 00:42:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/40483003/900001
7 years, 1 month ago (2013-11-05 00:42:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/40483003/900001
7 years, 1 month ago (2013-11-05 03:02:15 UTC) #18
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=184571
7 years, 1 month ago (2013-11-05 04:36:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/40483003/900001
7 years, 1 month ago (2013-11-06 02:05:49 UTC) #20
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=185025
7 years, 1 month ago (2013-11-06 04:02:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/40483003/900001
7 years, 1 month ago (2013-11-06 21:46:56 UTC) #22
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=185527
7 years, 1 month ago (2013-11-07 00:18:26 UTC) #23
groby-ooo-7-16
Sigh. Looks like interactive_ui_tests doesn't like this at all. Fix coming soon.....
7 years, 1 month ago (2013-11-07 00:27:39 UTC) #24
groby-ooo-7-16
https://codereview.chromium.org/40483003/diff/1350001/chrome/browser/ui/cocoa/location_bar/generated_credit_card_decoration.mm File chrome/browser/ui/cocoa/location_bar/generated_credit_card_decoration.mm (right): https://codereview.chromium.org/40483003/diff/1350001/chrome/browser/ui/cocoa/location_bar/generated_credit_card_decoration.mm#newcode59 chrome/browser/ui/cocoa/location_bar/generated_credit_card_decoration.mm:59: DCHECK(controller); This DCHECK is actively bad - it is ...
7 years, 1 month ago (2013-11-07 16:28:24 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/40483003/1370001
7 years, 1 month ago (2013-11-07 21:28:28 UTC) #26
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 00:21:23 UTC) #27
Message was sent while issue was closed.
Change committed as 233719

Powered by Google App Engine
This is Rietveld 408576698