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

Issue 510001: [Mac] Implement WindowSizer::GetDefaultPopupOrigin()... (Closed)

Created:
11 years ago by rohitrao (ping after 24h)
Modified:
9 years, 7 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

[Mac] Implement WindowSizer::GetDefaultPopupOrigin() BUG=http://crbug.com/30239 TEST=Popups should not appear under the Dock when the Dock is on the left. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35548

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -1 line) Patch
M chrome/browser/cocoa/browser_window_controller.mm View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/window_sizer_mac.mm View 1 2 2 chunks +25 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
viettrungluu
http://codereview.chromium.org/510001/diff/1/2 File chrome/browser/window_sizer_mac.mm (right): http://codereview.chromium.org/510001/diff/1/2#newcode145 chrome/browser/window_sizer_mac.mm:145: flipped.set_y(NSHeight(main_area) - corner.y); Why don't you just put the ...
11 years ago (2009-12-23 18:15:20 UTC) #1
viettrungluu
http://codereview.chromium.org/510001/diff/1/2 File chrome/browser/window_sizer_mac.mm (right): http://codereview.chromium.org/510001/diff/1/2#newcode125 chrome/browser/window_sizer_mac.mm:125: NSPoint corner = NSMakePoint(NSMinX(work_area), NSMaxY(work_area)); So if no browser ...
11 years ago (2009-12-23 18:23:45 UTC) #2
viettrungluu
Ping. (Is this CL still alive?)
10 years, 11 months ago (2010-01-05 05:35:52 UTC) #3
rohitrao (ping after 24h)
Still alive. I had the code changes on one computer and the CL description on ...
10 years, 11 months ago (2010-01-05 16:17:29 UTC) #4
viettrungluu
Clearly, you just need to carry all your computers with you, all the time. :-) ...
10 years, 11 months ago (2010-01-05 16:48:47 UTC) #5
rohitrao (ping after 24h)
http://codereview.chromium.org/510001/diff/1/2 File chrome/browser/window_sizer_mac.mm (right): http://codereview.chromium.org/510001/diff/1/2#newcode125 chrome/browser/window_sizer_mac.mm:125: NSPoint corner = NSMakePoint(NSMinX(work_area), NSMaxY(work_area)); On 2010/01/05 16:48:47, viettrungluu ...
10 years, 11 months ago (2010-01-05 19:08:10 UTC) #6
viettrungluu
10 years, 11 months ago (2010-01-05 19:10:16 UTC) #7
LG.

http://codereview.chromium.org/510001/diff/5001/5003
File chrome/browser/cocoa/browser_window_controller.mm (right):

http://codereview.chromium.org/510001/diff/5001/5003#newcode258
chrome/browser/cocoa/browser_window_controller.mm:258: // none were given by the
window.open() command.
On 2010/01/05 19:08:10, rohitrao wrote:
> On 2010/01/05 16:48:48, viettrungluu wrote:
> > Sigh. Is there really no better way to do this?
> 
> This is what the other platforms do, so I'm following it for now.

Okay, good enough for me.

http://codereview.chromium.org/510001/diff/5001/5002
File chrome/browser/window_sizer_mac.mm (right):

http://codereview.chromium.org/510001/diff/5001/5002#newcode7
chrome/browser/window_sizer_mac.mm:7: #include "base/logging.h"
On 2010/01/05 19:08:10, rohitrao wrote:
> On 2010/01/05 16:48:48, viettrungluu wrote:
> > While I'm of the opinion that base/logging.h should always be included
> (because
> > otherwise you have to add it when putting in some debugging LOG()s or
> > DCHECK()s), others presumably differ, and you don't appear to use anything
> which
> > needs this. (I do this all the time too.)
> 
> I'm sure I had some LOGs in here while debugging, which is why I added this in
> the first place.  It's gone now, for now.

That's what I figured. :-)

Powered by Google App Engine
This is Rietveld 408576698