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

Issue 42336: Adds Get(Root)WindowRect handlers for the Mac.... (Closed)

Created:
11 years, 9 months ago by Avi (use Gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Adds Get(Root)WindowRect handlers for the Mac. Fixes http://crbug.com/8829 . Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11980

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -65 lines) Patch
M chrome/browser/browser.scons View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser.vcproj View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 4 chunks +1 line, -59 lines 0 comments Download
A chrome/browser/renderer_host/resource_message_filter_gtk.cc View 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/resource_message_filter_mac.mm View 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/resource_message_filter_win.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Avi (use Gerrit)
11 years, 9 months ago (2009-03-18 15:24:35 UTC) #1
pink (ping after 24hrs)
http://codereview.chromium.org/42336/diff/31/1007 File chrome/browser/renderer_host/resource_message_filter_mac.mm (right): http://codereview.chromium.org/42336/diff/31/1007#newcode1 Line 1: // Copyright (c) 2006-2009 The Chromium Authors. All ...
11 years, 9 months ago (2009-03-18 15:59:41 UTC) #2
Avi (use Gerrit)
http://codereview.chromium.org/42336/diff/31/1007 File chrome/browser/renderer_host/resource_message_filter_mac.mm (right): http://codereview.chromium.org/42336/diff/31/1007#newcode18 Line 18: NSPoint global_upper_left = [[view window] convertBaseToScreen:upper_left]; On 2009/03/18 ...
11 years, 9 months ago (2009-03-18 16:43:45 UTC) #3
Avi (use Gerrit)
On 2009/03/18 16:43:45, Avi wrote: > No, this is explicitly doing a conversion to top-left ...
11 years, 9 months ago (2009-03-18 16:58:57 UTC) #4
pink (ping after 24hrs)
LGTM with 2 questions. http://codereview.chromium.org/42336/diff/34/40 File chrome/browser/renderer_host/resource_message_filter_mac.mm (right): http://codereview.chromium.org/42336/diff/34/40#newcode14 Line 14: gfx::Rect NSRectToRect(const NSRect rect, ...
11 years, 9 months ago (2009-03-18 17:06:13 UTC) #5
Avi (use Gerrit)
11 years, 9 months ago (2009-03-18 17:10:34 UTC) #6
http://codereview.chromium.org/42336/diff/34/40
File chrome/browser/renderer_host/resource_message_filter_mac.mm (right):

http://codereview.chromium.org/42336/diff/34/40#newcode14
Line 14: gfx::Rect NSRectToRect(const NSRect rect, NSScreen* screen) {
On 2009/03/18 17:06:13, pink wrote:
> is it worth putting into the name something about the conversion?

Hmmm. I always thought that gfx::Rect was always an UL-based origin rect, so
that converting to it meant origin conversion. See BaseView where I do the same
thing.

http://codereview.chromium.org/42336/diff/34/40#newcode27
Line 27: NSRect bounds = [view bounds];
On 2009/03/18 17:06:13, pink wrote:
> is it worth being defensive about |view| being nil here?

After a DCHECK? You're thinking about the other changelist? I'd be more inclined
to track down why that's happening rather than pull the DCHECK.

Powered by Google App Engine
This is Rietveld 408576698