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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenDelegateFactory.java

Issue 2946223002: Replaces FullscreenActivity with SingleTabActivity. (Closed)
Patch Set: Removes the WebContentsObserver on reparenting in FullscreenWebContentsActivity Created 3 years, 5 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: chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenDelegateFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenDelegateFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenDelegateFactory.java
deleted file mode 100644
index a91116a4d63cd2d5400d01bd5ef8e25ade81ccc0..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenDelegateFactory.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser.webapps;
-
-import org.chromium.chrome.browser.contextmenu.ChromeContextMenuPopulator;
-import org.chromium.chrome.browser.contextmenu.ContextMenuPopulator;
-import org.chromium.chrome.browser.tab.BrowserControlsVisibilityDelegate;
-import org.chromium.chrome.browser.tab.Tab;
-import org.chromium.chrome.browser.tab.TabContextMenuItemDelegate;
-import org.chromium.chrome.browser.tab.TabDelegateFactory;
-import org.chromium.chrome.browser.tab.TabStateBrowserControlsVisibilityDelegate;
-
-/**
- * A {@link TabDelegateFactory} class to be used in all {@link Tab} instances owned
- * by a {@link FullScreenActivity}.
- */
-public class FullScreenDelegateFactory extends TabDelegateFactory {
- @Override
- public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
- return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
- ChromeContextMenuPopulator.FULLSCREEN_TAB_MODE);
- }
-
- @Override
- public BrowserControlsVisibilityDelegate createBrowserControlsVisibilityDelegate(Tab tab) {
- return new TabStateBrowserControlsVisibilityDelegate(tab) {
- @Override
- public boolean canAutoHideBrowserControls() {
- return false;
- }
- };
- }
-}

Powered by Google App Engine
This is Rietveld 408576698