summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjaphet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 20:50:08 +0000
committerjaphet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 20:50:08 +0000
commit22ec3d72d1e0cc366369150f07ff449505a4c875 (patch)
treeec9031503b2df4c916090a7211c4e98e9816596e /chrome
parent111fa63e08ee1dc70aafd7289f4d81cdf36ef959 (diff)
downloadchromium_src-22ec3d72d1e0cc366369150f07ff449505a4c875.zip
chromium_src-22ec3d72d1e0cc366369150f07ff449505a4c875.tar.gz
chromium_src-22ec3d72d1e0cc366369150f07ff449505a4c875.tar.bz2
Implement TabContentsViewMac::SizeContents(), so that the TabContentsView
gets sized properly on creation. BUG=619 BUG=15960 TEST=none Review URL: http://codereview.chromium.org/162016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/tab_contents/tab_contents_view_mac.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm
index f0ea3e2..281d7d1 100644
--- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
@@ -135,8 +135,11 @@ void TabContentsViewMac::OnTabCrashed() {
}
void TabContentsViewMac::SizeContents(const gfx::Size& size) {
- // TODO(brettw) this is a hack and should be removed. See tab_contents_view.h.
- NOTIMPLEMENTED(); // Leaving the hack unimplemented.
+ // TODO(brettw | japhet) This is a hack and should be removed.
+ // See tab_contents_view.h.
+ gfx::Rect rect(gfx::Point(), size);
+ TabContentsViewCocoa* view = cocoa_view_.get();
+ [view setFrame:[view RectToNSRect:rect]];
}
void TabContentsViewMac::Focus() {