OLD | NEW |
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.shell; | 5 package org.chromium.chrome.shell; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.text.TextUtils; | 8 import android.text.TextUtils; |
9 | 9 |
10 import org.chromium.chrome.browser.Tab; | 10 import org.chromium.chrome.browser.Tab; |
11 import org.chromium.chrome.browser.UrlUtilities; | 11 import org.chromium.chrome.browser.UrlUtilities; |
12 import org.chromium.chrome.browser.contextmenu.ChromeContextMenuPopulator; | 12 import org.chromium.chrome.browser.contextmenu.ChromeContextMenuPopulator; |
13 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulator; | 13 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulator; |
14 import org.chromium.chrome.browser.infobar.AutoLoginProcessor; | 14 import org.chromium.chrome.browser.infobar.AutoLoginProcessor; |
15 import org.chromium.content.browser.ContentViewClient; | 15 import org.chromium.content.browser.ContentViewClient; |
16 import org.chromium.content_public.Referrer; | |
17 import org.chromium.content_public.browser.LoadUrlParams; | 16 import org.chromium.content_public.browser.LoadUrlParams; |
18 import org.chromium.content_public.browser.NavigationController; | 17 import org.chromium.content_public.browser.NavigationController; |
19 import org.chromium.content_public.browser.WebContents; | 18 import org.chromium.content_public.browser.WebContents; |
| 19 import org.chromium.content_public.common.Referrer; |
20 import org.chromium.ui.base.WindowAndroid; | 20 import org.chromium.ui.base.WindowAndroid; |
21 | 21 |
22 /** | 22 /** |
23 * ChromeShell's implementation of a tab. This mirrors how Chrome for Android su
bclasses | 23 * ChromeShell's implementation of a tab. This mirrors how Chrome for Android su
bclasses |
24 * and extends {@link Tab}. | 24 * and extends {@link Tab}. |
25 */ | 25 */ |
26 public class ChromeShellTab extends Tab { | 26 public class ChromeShellTab extends Tab { |
27 // Tab state | 27 // Tab state |
28 private boolean mIsLoading; | 28 private boolean mIsLoading; |
29 | 29 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 public void onLoadStarted() { | 117 public void onLoadStarted() { |
118 mIsLoading = true; | 118 mIsLoading = true; |
119 } | 119 } |
120 | 120 |
121 @Override | 121 @Override |
122 public void onLoadStopped() { | 122 public void onLoadStopped() { |
123 mIsLoading = false; | 123 mIsLoading = false; |
124 } | 124 } |
125 } | 125 } |
126 } | 126 } |
OLD | NEW |