| 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.browser.ContentViewCore; | 16 import org.chromium.content.browser.ContentViewCore; |
| 17 import org.chromium.content.browser.LoadUrlParams; | |
| 18 import org.chromium.content_public.Referrer; | 17 import org.chromium.content_public.Referrer; |
| 18 import org.chromium.content_public.browser.LoadUrlParams; |
| 19 import org.chromium.ui.base.WindowAndroid; | 19 import org.chromium.ui.base.WindowAndroid; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * ChromeShell's implementation of a tab. This mirrors how Chrome for Android su
bclasses | 22 * ChromeShell's implementation of a tab. This mirrors how Chrome for Android su
bclasses |
| 23 * and extends {@link Tab}. | 23 * and extends {@link Tab}. |
| 24 */ | 24 */ |
| 25 public class ChromeShellTab extends Tab { | 25 public class ChromeShellTab extends Tab { |
| 26 // Tab state | 26 // Tab state |
| 27 private boolean mIsLoading; | 27 private boolean mIsLoading; |
| 28 | 28 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 public void onLoadStarted() { | 115 public void onLoadStarted() { |
| 116 mIsLoading = true; | 116 mIsLoading = true; |
| 117 } | 117 } |
| 118 | 118 |
| 119 @Override | 119 @Override |
| 120 public void onLoadStopped() { | 120 public void onLoadStopped() { |
| 121 mIsLoading = false; | 121 mIsLoading = false; |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 } | 124 } |
| OLD | NEW |