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

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

Issue 9875028: Reverting due to memory (Valgrind) errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
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 <utility> 7 #include <utility>
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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 if (delegate_) 976 if (delegate_)
977 delegate_->HandleMouseActivate(); 977 delegate_->HandleMouseActivate();
978 } 978 }
979 979
980 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) { 980 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) {
981 if (delegate_) 981 if (delegate_)
982 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); 982 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen);
983 } 983 }
984 984
985 bool TabContents::IsFullscreenForCurrentTab() const { 985 bool TabContents::IsFullscreenForCurrentTab() const {
986 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; 986 return delegate_ ? delegate_->IsFullscreenForTab(this) : false;
987 } 987 }
988 988
989 void TabContents::RequestToLockMouse() { 989 void TabContents::RequestToLockMouse() {
990 if (delegate_) { 990 if (delegate_) {
991 delegate_->RequestToLockMouse(this); 991 delegate_->RequestToLockMouse(this);
992 } else { 992 } else {
993 GotResponseToLockMouseRequest(false); 993 GotResponseToLockMouseRequest(false);
994 } 994 }
995 } 995 }
996 996
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2591 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2591 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2592 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2592 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2593 // Can be NULL during tests. 2593 // Can be NULL during tests.
2594 if (rwh_view) 2594 if (rwh_view)
2595 rwh_view->SetSize(GetView()->GetContainerSize()); 2595 rwh_view->SetSize(GetView()->GetContainerSize());
2596 } 2596 }
2597 2597
2598 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() { 2598 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() {
2599 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); 2599 return static_cast<RenderViewHostImpl*>(GetRenderViewHost());
2600 } 2600 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tests/browser_uitest.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698