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

Issue 8697001: Implement confirm bubble for Mac. (Closed)

Created:
9 years, 1 month ago by Hironori Bono
Modified:
8 years, 11 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Implement confirm bubble for Mac. This change is the initial implementation that ports the ConfirmBubble classes to Mac. To allow the ConfirmBubbleModel class to add/remove its controls, this change programmatically creates a custom NSView without using a nib file. BUG=99130 TEST=ConfirmBubbleControllerTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117621

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 27

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 29

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+691 lines, -20 lines) Patch
A chrome/browser/ui/cocoa/confirm_bubble_controller.h View 1 2 3 4 5 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/confirm_bubble_controller.mm View 1 2 3 4 5 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm View 1 2 3 4 5 1 chunk +174 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/confirm_bubble_view.h View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/confirm_bubble_view.mm View 1 2 3 4 5 6 7 8 1 chunk +295 lines, -0 lines 0 comments Download
M chrome/browser/ui/confirm_bubble_model.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +1 line, -19 lines 0 comments Download
M chrome/browser/ui/views/confirm_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Hironori Bono
Greetings Mark, Even though this change overrides loadView: to create a custom NSView programmatically, I'm ...
9 years ago (2011-11-28 10:05:40 UTC) #1
Mark Mentovai
Seems reasonable. http://codereview.chromium.org/8697001/diff/4001/chrome/browser/ui/cocoa/confirm_bubble_controller.mm File chrome/browser/ui/cocoa/confirm_bubble_controller.mm (right): http://codereview.chromium.org/8697001/diff/4001/chrome/browser/ui/cocoa/confirm_bubble_controller.mm#newcode20 chrome/browser/ui/cocoa/confirm_bubble_controller.mm:20: bundle:base::mac::MainAppBundle()])) { I think this is unused ...
9 years ago (2011-11-28 14:33:06 UTC) #2
Robert Sesek
Could you also add a test for the controller/view? http://codereview.chromium.org/8697001/diff/4001/chrome/browser/ui/cocoa/confirm_bubble_controller.h File chrome/browser/ui/cocoa/confirm_bubble_controller.h (right): http://codereview.chromium.org/8697001/diff/4001/chrome/browser/ui/cocoa/confirm_bubble_controller.h#newcode4 chrome/browser/ui/cocoa/confirm_bubble_controller.h:4: ...
9 years ago (2011-11-28 15:55:39 UTC) #3
tfarina
http://codereview.chromium.org/8697001/diff/4001/chrome/browser/ui/confirm_bubble_model.cc File chrome/browser/ui/confirm_bubble_model.cc (right): http://codereview.chromium.org/8697001/diff/4001/chrome/browser/ui/confirm_bubble_model.cc#newcode45 chrome/browser/ui/confirm_bubble_model.cc:45: void ConfirmBubbleModel::Show(gfx::NativeView view, This is better implemented as a ...
9 years ago (2011-11-30 15:58:38 UTC) #4
Hironori Bono
Greetings Mark, Robert, and Thiago, Thank you for your review and comments. I have applied ...
9 years ago (2011-12-09 11:14:32 UTC) #5
Robert Sesek
This is starting to really look good. Nice job. Just a few more questions and ...
9 years ago (2011-12-12 15:42:38 UTC) #6
Hironori Bono
Greetings Robert, Thanks again for your review. I have updated this change to apply your ...
9 years ago (2011-12-15 13:06:14 UTC) #7
Robert Sesek
LGTM. Nice work! http://codereview.chromium.org/8697001/diff/19001/chrome/browser/ui/cocoa/confirm_bubble_view.h File chrome/browser/ui/cocoa/confirm_bubble_view.h (right): http://codereview.chromium.org/8697001/diff/19001/chrome/browser/ui/cocoa/confirm_bubble_view.h#newcode50 chrome/browser/ui/cocoa/confirm_bubble_view.h:50: // custom NSView (i.e. without using ...
9 years ago (2011-12-15 18:47:08 UTC) #8
Hironori Bono
Greetings, Many thanks for your comments and I'm so sorry for my slow response. (My ...
8 years, 11 months ago (2012-01-05 10:45:55 UTC) #9
Hironori Bono
Greetings Peter, Would it be possible to review a change to "chrome/browser/ui/confirm_bubble_model.cc"? (I have just ...
8 years, 11 months ago (2012-01-10 09:22:45 UTC) #10
Peter Kasting
http://codereview.chromium.org/8697001/diff/43001/chrome/browser/ui/confirm_bubble_model.cc File chrome/browser/ui/confirm_bubble_model.cc (right): http://codereview.chromium.org/8697001/diff/43001/chrome/browser/ui/confirm_bubble_model.cc#newcode43 chrome/browser/ui/confirm_bubble_model.cc:43: #if !defined(OS_MACOSX) Don't do things this way. If you ...
8 years, 11 months ago (2012-01-10 18:52:03 UTC) #11
Hironori Bono
Greetings Peter, Thanks for your review and suggestion. I have updated this change to apply ...
8 years, 11 months ago (2012-01-11 06:36:40 UTC) #12
Peter Kasting
On 2012/01/11 06:36:40, Hironori Bono wrote: > I have moved this function to "ui/views/confirm_bubble_model_views.cc". (I ...
8 years, 11 months ago (2012-01-11 18:52:48 UTC) #13
Hironori Bono
Greetings Peter, Many thanks for your explanation. I have moved the function to confirm_bubble_view.*. Is ...
8 years, 11 months ago (2012-01-12 10:48:29 UTC) #14
Peter Kasting
LGTM. If you want, you can also add separator lines: // ConfirmBubbleModel ---------------------... ConfirmBubbleModel::Show() { ...
8 years, 11 months ago (2012-01-12 20:56:34 UTC) #15
Mark Mentovai
LGTM from me also.
8 years, 11 months ago (2012-01-12 21:09:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hbono@chromium.org/8697001/69001
8 years, 11 months ago (2012-01-13 07:55:29 UTC) #17
commit-bot: I haz the power
8 years, 11 months ago (2012-01-13 09:11:09 UTC) #18
Change committed as 117621

Powered by Google App Engine
This is Rietveld 408576698