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

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: rebase Created 9 years, 3 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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 void TabContents::HandleMouseUp() { 491 void TabContents::HandleMouseUp() {
492 if (delegate_) 492 if (delegate_)
493 delegate_->HandleMouseUp(); 493 delegate_->HandleMouseUp();
494 } 494 }
495 495
496 void TabContents::HandleMouseActivate() { 496 void TabContents::HandleMouseActivate() {
497 if (delegate_) 497 if (delegate_)
498 delegate_->HandleMouseActivate(); 498 delegate_->HandleMouseActivate();
499 } 499 }
500 500
501 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) {
502 if (delegate_)
503 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen);
504 }
505
501 void TabContents::ShowContents() { 506 void TabContents::ShowContents() {
502 RenderWidgetHostView* rwhv = GetRenderWidgetHostView(); 507 RenderWidgetHostView* rwhv = GetRenderWidgetHostView();
503 if (rwhv) 508 if (rwhv)
504 rwhv->DidBecomeSelected(); 509 rwhv->DidBecomeSelected();
505 } 510 }
506 511
507 void TabContents::HideContents() { 512 void TabContents::HideContents() {
508 // TODO(pkasting): http://b/1239839 Right now we purposefully don't call 513 // TODO(pkasting): http://b/1239839 Right now we purposefully don't call
509 // our superclass HideContents(), because some callers want to be very picky 514 // our superclass HideContents(), because some callers want to be very picky
510 // about the order in which these get called. In addition to making the code 515 // about the order in which these get called. In addition to making the code
(...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 } 1946 }
1942 1947
1943 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { 1948 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) {
1944 render_manager_.SwapInRenderViewHost(rvh); 1949 render_manager_.SwapInRenderViewHost(rvh);
1945 } 1950 }
1946 1951
1947 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 1952 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
1948 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 1953 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
1949 rwh_view->SetSize(view()->GetContainerSize()); 1954 rwh_view->SetSize(view()->GetContainerSize());
1950 } 1955 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698