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

Issue 344008: Implemented most of HtmlDialogWindowController, which is a Cocoa port (Closed)

Created:
11 years, 1 month ago by akalin
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implemented most of HtmlDialogWindowController, which is a Cocoa port of HtmlDialogView. Added TODO to fix inaccurate font height metric for OS X font class (and maybe width). Added the BrowserCommandExecutor protocol so that not just a BrowserWindowController can be the window controller for a ChromeEventProcessingWindow. Added unittests. Also tested manually with the bookmark sync setup wizard dialog. BUG=23073 TEST=added unittests, trybot, and manual testing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30619

Patch Set 1 #

Patch Set 2 : Fixed whitespace/lint errors #

Patch Set 3 : Fixed typo. #

Patch Set 4 : Fixed unittest crash. #

Total comments: 20

Patch Set 5 : Addressed pinkerton's comments. #

Total comments: 8

Patch Set 6 : Addressed dmac's comments. #

Total comments: 4

Patch Set 7 : Addressed dmac's comments. #

Total comments: 1

Patch Set 8 : Addressed dmac's comments. #

Total comments: 12

Patch Set 9 : Addressed dmac's comments. #

Patch Set 10 : Synced. #

Total comments: 1

Patch Set 11 : Added TODOs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+534 lines, -20 lines) Patch
M app/gfx/font_mac.mm View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/browser_command_executor.h View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_controller.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/chrome_event_processing_window.mm View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/cocoa/chrome_event_processing_window_unittest.mm View 4 5 6 7 8 3 chunks +15 lines, -10 lines 0 comments Download
A chrome/browser/cocoa/html_dialog_window_controller.h View 1 2 3 4 5 6 7 1 chunk +121 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/html_dialog_window_controller.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +267 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/html_dialog_window_controller_unittest.mm View 1 2 3 4 5 6 1 chunk +93 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
akalin
+pink for code review.
11 years, 1 month ago (2009-10-28 17:14:50 UTC) #1
pink (ping after 24hrs)
http://codereview.chromium.org/344008/diff/4011/3012 File app/gfx/font_mac.mm (right): http://codereview.chromium.org/344008/diff/4011/3012#newcode36 Line 36: height_ = [font boundingRectForFont].size.height; do you have an ...
11 years, 1 month ago (2009-10-28 18:39:47 UTC) #2
akalin (wrong akalin)
On Wed, Oct 28, 2009 at 11:39 AM, <pinkerton@chromium.org> wrote: > > http://codereview.chromium.org/344008/diff/4011/3012 > File ...
11 years, 1 month ago (2009-10-28 20:29:15 UTC) #3
dmac
http://codereview.chromium.org/344008/diff/2003/2010 File chrome/browser/cocoa/html_dialog_window_controller.h (right): http://codereview.chromium.org/344008/diff/2003/2010#newcode71 Line 71: // does not own, but may call release ...
11 years, 1 month ago (2009-10-28 21:14:55 UTC) #4
akalin (wrong akalin)
On Wed, Oct 28, 2009 at 2:14 PM, <dmaclach@chromium.org> wrote: > > http://codereview.chromium.org/344008/diff/2003/2010 > File ...
11 years, 1 month ago (2009-10-28 22:19:52 UTC) #5
dmac
http://codereview.chromium.org/344008/diff/8002/8003 File app/gfx/font_mac.mm (right): http://codereview.chromium.org/344008/diff/8002/8003#newcode36 Line 36: height_ = [font boundingRectForFont].size.height; not sure how expensive ...
11 years, 1 month ago (2009-10-28 23:20:30 UTC) #6
dmac
http://codereview.chromium.org/344008/diff/8002/8003 File app/gfx/font_mac.mm (right): http://codereview.chromium.org/344008/diff/8002/8003#newcode36 Line 36: height_ = [font boundingRectForFont].size.height; On 2009/10/28 23:20:30, dmac ...
11 years, 1 month ago (2009-10-29 00:37:33 UTC) #7
akalin (wrong akalin)
Hmm. From my experiments ascender - descender didn't match results I was getting on windows ...
11 years, 1 month ago (2009-10-29 05:35:02 UTC) #8
akalin (wrong akalin)
Also, we can spin this off into its own changelist, leaving the rest to be ...
11 years, 1 month ago (2009-10-29 09:29:21 UTC) #9
dmaclach1
Sounds good. I'll be back in KIR on Friday. That should give me time to ...
11 years, 1 month ago (2009-10-29 14:56:52 UTC) #10
pink (ping after 24hrs)
Please, let's spin off the gfx change to another CL. Let us know when you're ...
11 years, 1 month ago (2009-10-29 15:57:01 UTC) #11
akalin (wrong akalin)
On Wed, Oct 28, 2009 at 4:20 PM, <dmaclach@chromium.org> wrote: > > http://codereview.chromium.org/344008/diff/8002/8003 > File ...
11 years, 1 month ago (2009-10-29 19:08:19 UTC) #12
dmac
http://codereview.chromium.org/344008/diff/6005/7013 File chrome/browser/cocoa/html_dialog_window_controller.mm (right): http://codereview.chromium.org/344008/diff/6005/7013#newcode79 Line 79: // been set to nil so it's safe ...
11 years, 1 month ago (2009-10-29 20:33:10 UTC) #13
akalin (wrong akalin)
On Thu, Oct 29, 2009 at 1:33 PM, <dmaclach@chromium.org> wrote: > > http://codereview.chromium.org/344008/diff/6005/7013 > File ...
11 years, 1 month ago (2009-10-29 22:23:48 UTC) #14
dmac
Alkalin... Sorry... some stuff caught my eye that I missed before. http://codereview.chromium.org/344008/diff/5010/8018 File chrome/browser/cocoa/browser_window_cocoa.mm (right): ...
11 years, 1 month ago (2009-10-29 23:10:24 UTC) #15
akalin (wrong akalin)
On Thu, Oct 29, 2009 at 4:10 PM, <dmaclach@chromium.org> wrote: > Alkalin... > > Sorry... ...
11 years, 1 month ago (2009-10-29 23:38:50 UTC) #16
dmac
LGTM may want to add a code clean up bug to change those routines that ...
11 years, 1 month ago (2009-10-29 23:43:00 UTC) #17
akalin (wrong akalin)
On Wed, Oct 28, 2009 at 11:39 AM, <pinkerton@chromium.org> wrote: > http://codereview.chromium.org/344008/diff/4011/3019#newcode234 > Line 234: ...
11 years, 1 month ago (2009-10-30 01:43:35 UTC) #18
pink (ping after 24hrs)
11 years, 1 month ago (2009-10-30 18:51:23 UTC) #19
LGTM

As far as -cancel working, it should, we do it in several other places. I think
you may need to hook it up such that the window controller is the delegate of
the window object. It's fine to do that in a followup cl though.

http://codereview.chromium.org/344008/diff/3038/4025
File chrome/browser/cocoa/html_dialog_window_controller.mm (right):

http://codereview.chromium.org/344008/diff/3038/4025#newcode195
Line 195: // Put the dialog box in the center of the window.
[window center] is probably what you want, the mac doesn't have the concept of
"centering a dialog in a window" because window-modals are sheets and app-modals
are centered on the screen.

Powered by Google App Engine
This is Rietveld 408576698