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

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

Issue 2791183003: [Sync] Restore previous session if no tabbed windows present (Closed)
Patch Set: Fix android compile Created 3 years, 8 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 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; 81 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType;
82 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType; 82 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType;
83 import org.chromium.chrome.browser.tabmodel.TabModelImpl; 83 import org.chromium.chrome.browser.tabmodel.TabModelImpl;
84 import org.chromium.chrome.browser.tabmodel.TabModelSelector; 84 import org.chromium.chrome.browser.tabmodel.TabModelSelector;
85 import org.chromium.chrome.browser.tabmodel.TabReparentingParams; 85 import org.chromium.chrome.browser.tabmodel.TabReparentingParams;
86 import org.chromium.chrome.browser.util.ColorUtils; 86 import org.chromium.chrome.browser.util.ColorUtils;
87 import org.chromium.chrome.browser.util.FeatureUtilities; 87 import org.chromium.chrome.browser.util.FeatureUtilities;
88 import org.chromium.components.dom_distiller.core.DomDistillerUrlUtils; 88 import org.chromium.components.dom_distiller.core.DomDistillerUrlUtils;
89 import org.chromium.components.navigation_interception.InterceptNavigationDelega te; 89 import org.chromium.components.navigation_interception.InterceptNavigationDelega te;
90 import org.chromium.components.security_state.ConnectionSecurityLevel; 90 import org.chromium.components.security_state.ConnectionSecurityLevel;
91 import org.chromium.components.sync.SyncConstants;
91 import org.chromium.content.browser.ChildProcessLauncher; 92 import org.chromium.content.browser.ChildProcessLauncher;
92 import org.chromium.content.browser.ContentView; 93 import org.chromium.content.browser.ContentView;
93 import org.chromium.content.browser.ContentViewClient; 94 import org.chromium.content.browser.ContentViewClient;
94 import org.chromium.content.browser.ContentViewCore; 95 import org.chromium.content.browser.ContentViewCore;
95 import org.chromium.content.browser.crypto.CipherFactory; 96 import org.chromium.content.browser.crypto.CipherFactory;
96 import org.chromium.content_public.browser.GestureStateListener; 97 import org.chromium.content_public.browser.GestureStateListener;
97 import org.chromium.content_public.browser.LoadUrlParams; 98 import org.chromium.content_public.browser.LoadUrlParams;
98 import org.chromium.content_public.browser.WebContents; 99 import org.chromium.content_public.browser.WebContents;
99 import org.chromium.content_public.common.BrowserControlsState; 100 import org.chromium.content_public.common.BrowserControlsState;
100 import org.chromium.content_public.common.BrowserControlsState.BrowserControlsSt ateEnum; 101 import org.chromium.content_public.common.BrowserControlsState.BrowserControlsSt ateEnum;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 /** The current native page (e.g. chrome-native://newtab), or {@code null} i f there is none. */ 171 /** The current native page (e.g. chrome-native://newtab), or {@code null} i f there is none. */
171 private NativePage mNativePage; 172 private NativePage mNativePage;
172 173
173 /** InfoBar container to show InfoBars for this tab. */ 174 /** InfoBar container to show InfoBars for this tab. */
174 private InfoBarContainer mInfoBarContainer; 175 private InfoBarContainer mInfoBarContainer;
175 176
176 /** Controls overscroll pull-to-refresh behavior for this tab. */ 177 /** Controls overscroll pull-to-refresh behavior for this tab. */
177 private SwipeRefreshHandler mSwipeRefreshHandler; 178 private SwipeRefreshHandler mSwipeRefreshHandler;
178 179
179 /** The sync id of the Tab if session sync is enabled. */ 180 /** The sync id of the Tab if session sync is enabled. */
180 private int mSyncId; 181 private int mSyncId = SyncConstants.INVALID_TAB_NODE_ID;
181 182
182 /** {@link ContentViewCore} showing the current page, or {@code null} if the tab is frozen. */ 183 /** {@link ContentViewCore} showing the current page, or {@code null} if the tab is frozen. */
183 private ContentViewCore mContentViewCore; 184 private ContentViewCore mContentViewCore;
184 185
185 /** Listens to gesture events fired by the ContentViewCore. */ 186 /** Listens to gesture events fired by the ContentViewCore. */
186 private GestureStateListener mGestureStateListener; 187 private GestureStateListener mGestureStateListener;
187 188
188 /** The parent view of the ContentView and the InfoBarContainer. */ 189 /** The parent view of the ContentView and the InfoBarContainer. */
189 private View mContentView; 190 private View mContentView;
190 191
(...skipping 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after
3088 private native boolean nativeIsOfflinePage(long nativeTabAndroid); 3089 private native boolean nativeIsOfflinePage(long nativeTabAndroid);
3089 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid); 3090 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid);
3090 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id, 3091 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id,
3091 InterceptNavigationDelegate delegate); 3092 InterceptNavigationDelegate delegate);
3092 private native void nativeAttachToTabContentManager(long nativeTabAndroid, 3093 private native void nativeAttachToTabContentManager(long nativeTabAndroid,
3093 TabContentManager tabContentManager); 3094 TabContentManager tabContentManager);
3094 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url); 3095 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url);
3095 private native void nativeSetWebappManifestScope(long nativeTabAndroid, Stri ng scope); 3096 private native void nativeSetWebappManifestScope(long nativeTabAndroid, Stri ng scope);
3096 private native void nativeEnableEmbeddedMediaExperience(long nativeTabAndroi d, boolean enabled); 3097 private native void nativeEnableEmbeddedMediaExperience(long nativeTabAndroi d, boolean enabled);
3097 } 3098 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698