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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDelegateFactory.java

Issue 2905073002: Revert of Redirecting off-origin navigations in PWAs to CCT. (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 package org.chromium.chrome.browser.webapps; 5 package org.chromium.chrome.browser.webapps;
6 6
7 import android.content.Intent; 7 import android.content.Intent;
8 import android.text.TextUtils; 8 import android.text.TextUtils;
9 9
10 import org.chromium.base.ContextUtils; 10 import org.chromium.base.ContextUtils;
11 import org.chromium.chrome.browser.ShortcutHelper; 11 import org.chromium.chrome.browser.ShortcutHelper;
12 import org.chromium.chrome.browser.tab.BrowserControlsVisibilityDelegate; 12 import org.chromium.chrome.browser.tab.BrowserControlsVisibilityDelegate;
13 import org.chromium.chrome.browser.tab.InterceptNavigationDelegateImpl;
14 import org.chromium.chrome.browser.tab.Tab; 13 import org.chromium.chrome.browser.tab.Tab;
15 import org.chromium.chrome.browser.tab.TabDelegateFactory; 14 import org.chromium.chrome.browser.tab.TabDelegateFactory;
16 import org.chromium.chrome.browser.tab.TabWebContentsDelegateAndroid; 15 import org.chromium.chrome.browser.tab.TabWebContentsDelegateAndroid;
17 import org.chromium.chrome.browser.util.IntentUtils; 16 import org.chromium.chrome.browser.util.IntentUtils;
18 import org.chromium.webapk.lib.client.WebApkNavigationClient; 17 import org.chromium.webapk.lib.client.WebApkNavigationClient;
19 18
20 /** 19 /**
21 * A {@link TabDelegateFactory} class to be used in all {@link Tab} instances ow ned by a 20 * A {@link TabDelegateFactory} class to be used in all {@link Tab} instances ow ned by a
22 * {@link FullScreenActivity}. 21 * {@link FullScreenActivity}.
23 */ 22 */
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 65
67 @Override 66 @Override
68 public TabWebContentsDelegateAndroid createWebContentsDelegate(Tab tab) { 67 public TabWebContentsDelegateAndroid createWebContentsDelegate(Tab tab) {
69 return new WebappWebContentsDelegateAndroid(mActivity, tab); 68 return new WebappWebContentsDelegateAndroid(mActivity, tab);
70 } 69 }
71 70
72 @Override 71 @Override
73 public BrowserControlsVisibilityDelegate createBrowserControlsVisibilityDele gate(Tab tab) { 72 public BrowserControlsVisibilityDelegate createBrowserControlsVisibilityDele gate(Tab tab) {
74 return new WebappBrowserControlsDelegate(mActivity, tab); 73 return new WebappBrowserControlsDelegate(mActivity, tab);
75 } 74 }
76
77 @Override
78 public InterceptNavigationDelegateImpl createInterceptNavigationDelegate(Tab tab) {
79 return new WebappInterceptNavigationDelegate(mActivity, tab);
80 }
81 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698