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

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

Issue 8341052: share all the needed linux code with OpenBSD in chrome and content (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 bool TabContents::CreateRenderViewForRenderManager( 1949 bool TabContents::CreateRenderViewForRenderManager(
1950 RenderViewHost* render_view_host) { 1950 RenderViewHost* render_view_host) {
1951 RenderWidgetHostView* rwh_view = view_->CreateViewForWidget(render_view_host); 1951 RenderWidgetHostView* rwh_view = view_->CreateViewForWidget(render_view_host);
1952 1952
1953 // Now that the RenderView has been created, we need to tell it its size. 1953 // Now that the RenderView has been created, we need to tell it its size.
1954 rwh_view->SetSize(view_->GetContainerSize()); 1954 rwh_view->SetSize(view_->GetContainerSize());
1955 1955
1956 if (!render_view_host->CreateRenderView(string16())) 1956 if (!render_view_host->CreateRenderView(string16()))
1957 return false; 1957 return false;
1958 1958
1959 #if defined(OS_LINUX) 1959 #if defined(OS_LINUX) || defined(OS_OPENBSD)
1960 // Force a ViewMsg_Resize to be sent, needed to make plugins show up on 1960 // Force a ViewMsg_Resize to be sent, needed to make plugins show up on
1961 // linux. See crbug.com/83941. 1961 // linux. See crbug.com/83941.
1962 if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost()) 1962 if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost())
1963 render_widget_host->WasResized(); 1963 render_widget_host->WasResized();
1964 #endif 1964 #endif
1965 1965
1966 UpdateMaxPageIDIfNecessary(render_view_host->site_instance(), 1966 UpdateMaxPageIDIfNecessary(render_view_host->site_instance(),
1967 render_view_host); 1967 render_view_host);
1968 return true; 1968 return true;
1969 } 1969 }
(...skipping 30 matching lines...) Expand all
2000 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2000 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2001 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 2001 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
2002 rwh_view->SetSize(view()->GetContainerSize()); 2002 rwh_view->SetSize(view()->GetContainerSize());
2003 } 2003 }
2004 2004
2005 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { 2005 bool TabContents::GotResponseToLockMouseRequest(bool allowed) {
2006 return render_view_host() ? 2006 return render_view_host() ?
2007 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; 2007 render_view_host()->GotResponseToLockMouseRequest(allowed) : false;
2008 } 2008 }
2009 2009
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698