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

Issue 8491062: Fixes GetContainerBounds in tab_contents_view_mac.mm (Closed)

Created:
9 years, 1 month ago by pkotwicz
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Avi (use Gerrit), ajwong+watch_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Fixes GetContainerBounds in tab_contents_view_mac.mm to return the position of the view in screen coordinates. Currently GetContainerBounds would return origin of (0,0) which is inconsistent with GTK and Windows implementation. BUG=104178 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110157

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changes as requested #

Total comments: 4

Patch Set 3 : Changes as requested #

Total comments: 2

Patch Set 4 : changes as requested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 1 2 3 1 chunk +13 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_view.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
pkotwicz
9 years, 1 month ago (2011-11-12 01:08:24 UTC) #1
pkotwicz
9 years, 1 month ago (2011-11-12 01:08:50 UTC) #2
Avi (use Gerrit)
First, it's unacceptable to not have a BUG line. If there is no bug currently ...
9 years, 1 month ago (2011-11-12 01:42:00 UTC) #3
pkotwicz
I've done the bounds conversion more systematically. I wasn't able to find a method to ...
9 years, 1 month ago (2011-11-14 18:57:46 UTC) #4
Avi (use Gerrit)
As I mentioned before, you *must* have a BUG= line in your description. BTW, window ...
9 years, 1 month ago (2011-11-14 19:18:57 UTC) #5
pkotwicz
Removed variable names with the coordinate system. Created and added bug ID to description. Changed ...
9 years, 1 month ago (2011-11-14 21:00:20 UTC) #6
Avi (use Gerrit)
9 years, 1 month ago (2011-11-14 21:27:14 UTC) #7
lgtm! thanks for hanging in there.

http://codereview.chromium.org/8491062/diff/8001/chrome/browser/tab_contents/...
File chrome/browser/tab_contents/tab_contents_view_mac.mm (right):

http://codereview.chromium.org/8491062/diff/8001/chrome/browser/tab_contents/...
chrome/browser/tab_contents/tab_contents_view_mac.mm:160: bounds.size.height);
alternatively:

bounds.origin = [window convertBaseToScreen:bounds.origin]

instead of those two lines :)

http://codereview.chromium.org/8491062/diff/8001/content/browser/tab_contents...
File content/browser/tab_contents/tab_contents_view.h (right):

http://codereview.chromium.org/8491062/diff/8001/content/browser/tab_contents...
content/browser/tab_contents/tab_contents_view.h:52: // the tab in the screen
coordinate system.
Nice clarification.

Powered by Google App Engine
This is Rietveld 408576698