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

Issue 495010: Mac: fix/implement app windows (not app mode), popups, drawing; refactor code. (Closed)

Created:
11 years ago by viettrungluu
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: fix/implement app windows (not app mode), popups, drawing; refactor code. 1. Properly display app windows, including Developer Tools window (no location bar). Also check using --app=http://foobar.com/. 2. Lay out popup windows (in particular, location bar) better. Check using, e.g., <http://www.quirksmode.org/js/popup.html>; make sure it looks good (with a variety of themes). 3. Properly draw border to Omnibox -- so that its border matches the surrounding buttons. Check (looking very closely/zooming) using various themes (Google and artist, light and dark). 4. Re-organize/refactor code in the BrowserWindowController (esp. the layout code). Check that (in a normal window) it still displays the toolbar, bookmark bar (normal and NTP), infobar, and download shelf correctly. BUG=13148, 20244, 26757, 29103 TEST=See above. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34757

Patch Set 1 #

Patch Set 2 : let's pretend that I know what I'm doing #

Patch Set 3 : Refactored/re-organized stuff. Updates to drawing. #

Total comments: 4

Patch Set 4 : Updated per pink's review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+384 lines, -219 lines) Patch
M chrome/browser/cocoa/autocomplete_text_field_cell.mm View 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller.mm View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.h View 1 2 3 2 chunks +28 lines, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 1 2 3 14 chunks +263 lines, -162 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller_unittest.mm View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/chrome_browser_window.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/chrome_browser_window_unittest.mm View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/download_item_cell.mm View 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/cocoa/gradient_button_cell.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/cocoa/gradient_button_cell.mm View 7 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/cocoa/tab_window_controller.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/tab_window_controller.mm View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.h View 1 2 3 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 1 2 3 6 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller_unittest.mm View 3 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
viettrungluu
There are some more things to do, but this CL is probably big enough as ...
11 years ago (2009-12-16 05:56:44 UTC) #1
pink (ping after 24hrs)
LGTM, thanks for the cleanup. Much nicer! http://codereview.chromium.org/495010/diff/3001/3006 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/495010/diff/3001/3006#newcode1258 chrome/browser/cocoa/browser_window_controller.mm:1258: return (browser_->type() ...
11 years ago (2009-12-16 15:25:35 UTC) #2
viettrungluu
11 years ago (2009-12-16 20:51:12 UTC) #3
Thanks.

http://codereview.chromium.org/495010/diff/3001/3006
File chrome/browser/cocoa/browser_window_controller.mm (right):

http://codereview.chromium.org/495010/diff/3001/3006#newcode1258
chrome/browser/cocoa/browser_window_controller.mm:1258: return (browser_->type()
== Browser::TYPE_NORMAL) ? YES : NO;
On 2009/12/16 15:25:35, pink wrote:
> technically the ? : isn't needed per the style guide, which notes that bool
and
> BOOL expressions are interchangeable.
> http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml#BOOL_Pitfalls

Oh, thanks, good to know. Changed, along with a few others. One day I'll have to
go through and clean them all up.

http://codereview.chromium.org/495010/diff/3001/3015
File chrome/browser/cocoa/toolbar_controller.h (right):

http://codereview.chromium.org/495010/diff/3001/3015#newcode114
chrome/browser/cocoa/toolbar_controller.h:114: // the member variable
|locationBar_|. Horrible.
On 2009/12/16 15:25:35, pink wrote:
> You could rename it to locationBarBridge? Shouldn't be that hard to fix, no?

But it was so much (well, at least slightly) easier to just write a comment
whining about it. Fixed.

Powered by Google App Engine
This is Rietveld 408576698