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

Side by Side Diff: content/browser/tab_contents/tab_contents.cc

Issue 9265018: Change grow box computation back to a method on BrowserWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/tab_contents/tab_contents.h" 5 #include "content/browser/tab_contents/tab_contents.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 } 1633 }
1634 1634
1635 WebContents* TabContents::GetAsWebContents() { 1635 WebContents* TabContents::GetAsWebContents() {
1636 return this; 1636 return this;
1637 } 1637 }
1638 1638
1639 content::ViewType TabContents::GetRenderViewType() const { 1639 content::ViewType TabContents::GetRenderViewType() const {
1640 return view_type_; 1640 return view_type_;
1641 } 1641 }
1642 1642
1643 gfx::Rect TabContents::GetRootWindowResizerRect() const {
1644 if (delegate_)
1645 return delegate_->GetRootWindowResizerRect();
1646 return gfx::Rect();
1647 }
1648
1643 void TabContents::RenderViewCreated(RenderViewHost* render_view_host) { 1649 void TabContents::RenderViewCreated(RenderViewHost* render_view_host) {
1644 content::NotificationService::current()->Notify( 1650 content::NotificationService::current()->Notify(
1645 content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB, 1651 content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB,
1646 content::Source<WebContents>(this), 1652 content::Source<WebContents>(this),
1647 content::Details<RenderViewHost>(render_view_host)); 1653 content::Details<RenderViewHost>(render_view_host));
1648 NavigationEntry* entry = controller_.GetActiveEntry(); 1654 NavigationEntry* entry = controller_.GetActiveEntry();
1649 if (!entry) 1655 if (!entry)
1650 return; 1656 return;
1651 1657
1652 // When we're creating views, we're still doing initial setup, so we always 1658 // When we're creating views, we're still doing initial setup, so we always
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 encoding_ = content::GetContentClient()->browser()-> 2262 encoding_ = content::GetContentClient()->browser()->
2257 GetCanonicalEncodingNameByAliasName(encoding); 2263 GetCanonicalEncodingNameByAliasName(encoding);
2258 } 2264 }
2259 2265
2260 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2266 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2261 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2267 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2262 // Can be NULL during tests. 2268 // Can be NULL during tests.
2263 if (rwh_view) 2269 if (rwh_view)
2264 rwh_view->SetSize(GetView()->GetContainerSize()); 2270 rwh_view->SetSize(GetView()->GetContainerSize());
2265 } 2271 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698