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

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: rebased due to LOG macro changes 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 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 bool TabContents::CreateRenderViewForRenderManager( 1947 bool TabContents::CreateRenderViewForRenderManager(
1948 RenderViewHost* render_view_host) { 1948 RenderViewHost* render_view_host) {
1949 RenderWidgetHostView* rwh_view = view_->CreateViewForWidget(render_view_host); 1949 RenderWidgetHostView* rwh_view = view_->CreateViewForWidget(render_view_host);
1950 1950
1951 // Now that the RenderView has been created, we need to tell it its size. 1951 // Now that the RenderView has been created, we need to tell it its size.
1952 rwh_view->SetSize(view_->GetContainerSize()); 1952 rwh_view->SetSize(view_->GetContainerSize());
1953 1953
1954 if (!render_view_host->CreateRenderView(string16())) 1954 if (!render_view_host->CreateRenderView(string16()))
1955 return false; 1955 return false;
1956 1956
1957 #if defined(OS_LINUX) 1957 #if defined(OS_LINUX) || defined(OS_OPENBSD)
1958 // Force a ViewMsg_Resize to be sent, needed to make plugins show up on 1958 // Force a ViewMsg_Resize to be sent, needed to make plugins show up on
1959 // linux. See crbug.com/83941. 1959 // linux. See crbug.com/83941.
1960 if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost()) 1960 if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost())
1961 render_widget_host->WasResized(); 1961 render_widget_host->WasResized();
1962 #endif 1962 #endif
1963 1963
1964 UpdateMaxPageIDIfNecessary(render_view_host->site_instance(), 1964 UpdateMaxPageIDIfNecessary(render_view_host->site_instance(),
1965 render_view_host); 1965 render_view_host);
1966 return true; 1966 return true;
1967 } 1967 }
(...skipping 29 matching lines...) Expand all
1997 1997
1998 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 1998 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
1999 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 1999 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
2000 rwh_view->SetSize(view()->GetContainerSize()); 2000 rwh_view->SetSize(view()->GetContainerSize());
2001 } 2001 }
2002 2002
2003 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { 2003 bool TabContents::GotResponseToLockMouseRequest(bool allowed) {
2004 return render_view_host() ? 2004 return render_view_host() ?
2005 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; 2005 render_view_host()->GotResponseToLockMouseRequest(allowed) : false;
2006 } 2006 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698