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

Unified 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: make ctrl-tab exit JS fullscreen mode 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 8838b3f5d79eaee7b7211a15be929f2b5d3e8125..01e057bac26bd9d24f520b572ad252f3f33828e5 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -480,6 +480,16 @@ void TabContents::HandleMouseActivate() {
delegate_->HandleMouseActivate();
}
+void TabContents::EnterFullscreenModeForCurrentTab() {
+ if (delegate_)
+ delegate_->EnterFullscreenModeForCurrentTab();
+}
+
+void TabContents::ExitFullscreenMode() {
+ if (delegate_)
+ delegate_->ExitFullscreenMode();
+}
+
void TabContents::ShowContents() {
RenderWidgetHostView* rwhv = GetRenderWidgetHostView();
if (rwhv)

Powered by Google App Engine
This is Rietveld 408576698