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

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

Issue 7461059: Fullscreen JS API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test Created 9 years, 4 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) 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 void TabContents::HandleMouseUp() { 484 void TabContents::HandleMouseUp() {
485 if (delegate_) 485 if (delegate_)
486 delegate_->HandleMouseUp(); 486 delegate_->HandleMouseUp();
487 } 487 }
488 488
489 void TabContents::HandleMouseActivate() { 489 void TabContents::HandleMouseActivate() {
490 if (delegate_) 490 if (delegate_)
491 delegate_->HandleMouseActivate(); 491 delegate_->HandleMouseActivate();
492 } 492 }
493 493
494 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) {
495 if (delegate_)
496 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen);
497 }
498
494 void TabContents::ShowContents() { 499 void TabContents::ShowContents() {
495 RenderWidgetHostView* rwhv = GetRenderWidgetHostView(); 500 RenderWidgetHostView* rwhv = GetRenderWidgetHostView();
496 if (rwhv) 501 if (rwhv)
497 rwhv->DidBecomeSelected(); 502 rwhv->DidBecomeSelected();
498 } 503 }
499 504
500 void TabContents::HideContents() { 505 void TabContents::HideContents() {
501 // TODO(pkasting): http://b/1239839 Right now we purposefully don't call 506 // TODO(pkasting): http://b/1239839 Right now we purposefully don't call
502 // our superclass HideContents(), because some callers want to be very picky 507 // our superclass HideContents(), because some callers want to be very picky
503 // about the order in which these get called. In addition to making the code 508 // about the order in which these get called. In addition to making the code
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 } 1942 }
1938 1943
1939 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { 1944 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) {
1940 render_manager_.SwapInRenderViewHost(rvh); 1945 render_manager_.SwapInRenderViewHost(rvh);
1941 } 1946 }
1942 1947
1943 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 1948 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
1944 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 1949 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
1945 rwh_view->SetSize(view()->GetContainerSize()); 1950 rwh_view->SetSize(view()->GetContainerSize());
1946 } 1951 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698