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

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

Issue 1234063002: [Smart Lock] Auto sign-in snackbar UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dot in the licence disclaimer. Created 5 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 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.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.res.Resources; 10 import android.content.res.Resources;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulator; 47 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulator;
48 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulatorWrapper; 48 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulatorWrapper;
49 import org.chromium.chrome.browser.contextmenu.EmptyChromeContextMenuItemDelegat e; 49 import org.chromium.chrome.browser.contextmenu.EmptyChromeContextMenuItemDelegat e;
50 import org.chromium.chrome.browser.fullscreen.FullscreenManager; 50 import org.chromium.chrome.browser.fullscreen.FullscreenManager;
51 import org.chromium.chrome.browser.help.HelpAndFeedback; 51 import org.chromium.chrome.browser.help.HelpAndFeedback;
52 import org.chromium.chrome.browser.infobar.InfoBarContainer; 52 import org.chromium.chrome.browser.infobar.InfoBarContainer;
53 import org.chromium.chrome.browser.metrics.UmaSessionStats; 53 import org.chromium.chrome.browser.metrics.UmaSessionStats;
54 import org.chromium.chrome.browser.metrics.UmaUtils; 54 import org.chromium.chrome.browser.metrics.UmaUtils;
55 import org.chromium.chrome.browser.printing.TabPrinter; 55 import org.chromium.chrome.browser.printing.TabPrinter;
56 import org.chromium.chrome.browser.profiles.Profile; 56 import org.chromium.chrome.browser.profiles.Profile;
57 import org.chromium.chrome.browser.snackbar.SnackbarManager;
57 import org.chromium.chrome.browser.ssl.ConnectionSecurity; 58 import org.chromium.chrome.browser.ssl.ConnectionSecurity;
58 import org.chromium.chrome.browser.ssl.ConnectionSecurityLevel; 59 import org.chromium.chrome.browser.ssl.ConnectionSecurityLevel;
59 import org.chromium.chrome.browser.tab.TabUma.TabCreationState; 60 import org.chromium.chrome.browser.tab.TabUma.TabCreationState;
60 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; 61 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType;
61 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType; 62 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType;
62 import org.chromium.chrome.browser.tabmodel.TabModelBase; 63 import org.chromium.chrome.browser.tabmodel.TabModelBase;
63 import org.chromium.chrome.browser.tabmodel.TabModelSelector; 64 import org.chromium.chrome.browser.tabmodel.TabModelSelector;
64 import org.chromium.components.navigation_interception.InterceptNavigationDelega te; 65 import org.chromium.components.navigation_interception.InterceptNavigationDelega te;
65 import org.chromium.content.browser.ContentView; 66 import org.chromium.content.browser.ContentView;
66 import org.chromium.content.browser.ContentViewClient; 67 import org.chromium.content.browser.ContentViewClient;
(...skipping 2168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2235 /** 2236 /**
2236 * Called when the navigation entry containing the history item changed, 2237 * Called when the navigation entry containing the history item changed,
2237 * for example because of a scroll offset or form field change. 2238 * for example because of a scroll offset or form field change.
2238 */ 2239 */
2239 @CalledByNative 2240 @CalledByNative
2240 protected void onNavEntryChanged() { 2241 protected void onNavEntryChanged() {
2241 mIsTabStateDirty = true; 2242 mIsTabStateDirty = true;
2242 } 2243 }
2243 2244
2244 /** 2245 /**
2246 * Returns the SnackbarManager for the activity that owns this Tab, if any. May
2247 * return null.
2248 */
2249 public SnackbarManager getSnackbarManager() {
2250 return null;
2251 }
2252
2253 /**
2245 * @return The native pointer representing the native side of this {@link Ta b} object. 2254 * @return The native pointer representing the native side of this {@link Ta b} object.
2246 */ 2255 */
2247 @CalledByNative 2256 @CalledByNative
2248 private long getNativePtr() { 2257 private long getNativePtr() {
2249 return mNativeTabAndroid; 2258 return mNativeTabAndroid;
2250 } 2259 }
2251 2260
2252 /** This is currently called when committing a pre-rendered page. */ 2261 /** This is currently called when committing a pre-rendered page. */
2253 @VisibleForTesting 2262 @VisibleForTesting
2254 @CalledByNative 2263 @CalledByNative
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2826 private native void nativeAttachToTabContentManager(long nativeTabAndroid, 2835 private native void nativeAttachToTabContentManager(long nativeTabAndroid,
2827 TabContentManager tabContentManager); 2836 TabContentManager tabContentManager);
2828 private native void nativeAttachOverlayContentViewCore(long nativeTabAndroid , 2837 private native void nativeAttachOverlayContentViewCore(long nativeTabAndroid ,
2829 ContentViewCore content, boolean visible); 2838 ContentViewCore content, boolean visible);
2830 private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid , 2839 private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid ,
2831 ContentViewCore content); 2840 ContentViewCore content);
2832 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url); 2841 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url);
2833 2842
2834 private static native void nativeRecordStartupToCommitUma(); 2843 private static native void nativeRecordStartupToCommitUma();
2835 } 2844 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698