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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java

Issue 2641933002: VR Shell does not redirect to another app while in VR mode. (Closed)
Patch Set: VrShell sets subclass of TabRedirectHandler which prevents redirecting to another app. Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.tab; 5 package org.chromium.chrome.browser.tab;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.Application; 9 import android.app.Application;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 } 2814 }
2815 2815
2816 /** 2816 /**
2817 * @return the TabRedirectHandler for the tab. 2817 * @return the TabRedirectHandler for the tab.
2818 */ 2818 */
2819 public TabRedirectHandler getTabRedirectHandler() { 2819 public TabRedirectHandler getTabRedirectHandler() {
2820 return mTabRedirectHandler; 2820 return mTabRedirectHandler;
2821 } 2821 }
2822 2822
2823 /** 2823 /**
2824 * Sets the TabRedirectHandler for the tab.
2825 *
2826 * @param tabRedirectHandler the TabRedirectHandler
2827 */
2828 public void setTabRedirectHandler(TabRedirectHandler tabRedirectHandler) {
2829 mTabRedirectHandler = tabRedirectHandler;
2830 }
2831
2832 /**
2824 * @return the AppBannerManager. 2833 * @return the AppBannerManager.
2825 */ 2834 */
2826 public AppBannerManager getAppBannerManager() { 2835 public AppBannerManager getAppBannerManager() {
2827 return AppBannerManager.getAppBannerManagerForWebContents(getWebContents ()); 2836 return AppBannerManager.getAppBannerManagerForWebContents(getWebContents ());
2828 } 2837 }
2829 2838
2830 @VisibleForTesting 2839 @VisibleForTesting
2831 public boolean hasPrerenderedUrl(String url) { 2840 public boolean hasPrerenderedUrl(String url) {
2832 return nativeHasPrerenderedUrl(mNativeTabAndroid, url); 2841 return nativeHasPrerenderedUrl(mNativeTabAndroid, url);
2833 } 2842 }
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
3081 private native void nativeLoadOriginalImage(long nativeTabAndroid); 3090 private native void nativeLoadOriginalImage(long nativeTabAndroid);
3082 private native long nativeGetBookmarkId(long nativeTabAndroid, boolean onlyE ditable); 3091 private native long nativeGetBookmarkId(long nativeTabAndroid, boolean onlyE ditable);
3083 private native boolean nativeIsOfflinePage(long nativeTabAndroid); 3092 private native boolean nativeIsOfflinePage(long nativeTabAndroid);
3084 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid); 3093 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid);
3085 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id, 3094 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id,
3086 InterceptNavigationDelegate delegate); 3095 InterceptNavigationDelegate delegate);
3087 private native void nativeAttachToTabContentManager(long nativeTabAndroid, 3096 private native void nativeAttachToTabContentManager(long nativeTabAndroid,
3088 TabContentManager tabContentManager); 3097 TabContentManager tabContentManager);
3089 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url); 3098 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url);
3090 } 3099 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698