| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.tabmodel; | 5 package org.chromium.chrome.browser.tabmodel; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.os.Handler; | 8 import android.os.Handler; |
| 9 | 9 |
| 10 import org.chromium.base.VisibleForTesting; | 10 import org.chromium.base.VisibleForTesting; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 private final TabCreatorManager mTabCreatorManager; | 29 private final TabCreatorManager mTabCreatorManager; |
| 30 | 30 |
| 31 /** Flag set to false when the asynchronous loading of tabs is finished. */ | 31 /** Flag set to false when the asynchronous loading of tabs is finished. */ |
| 32 private final AtomicBoolean mSessionRestoreInProgress = | 32 private final AtomicBoolean mSessionRestoreInProgress = |
| 33 new AtomicBoolean(true); | 33 new AtomicBoolean(true); |
| 34 private final TabPersistentStore mTabSaver; | 34 private final TabPersistentStore mTabSaver; |
| 35 | 35 |
| 36 // This flag signifies the object has gotten an onNativeReady callback and | 36 // This flag signifies the object has gotten an onNativeReady callback and |
| 37 // has not been destroyed. | 37 // has not been destroyed. |
| 38 private boolean mActiveState = false; | 38 private boolean mActiveState; |
| 39 | 39 |
| 40 private boolean mIsUndoSupported; | 40 private boolean mIsUndoSupported; |
| 41 | 41 |
| 42 // Whether the Activity that owns that TabModelSelector is tabbed or not. | 42 // Whether the Activity that owns that TabModelSelector is tabbed or not. |
| 43 // Used by sync to determine how to handle restore on cold start. | 43 // Used by sync to determine how to handle restore on cold start. |
| 44 private boolean mIsTabbedActivityForSync; | 44 private boolean mIsTabbedActivityForSync; |
| 45 | 45 |
| 46 private final TabModelOrderController mOrderController; | 46 private final TabModelOrderController mOrderController; |
| 47 | 47 |
| 48 private OverviewModeBehavior mOverviewModeBehavior; | 48 private OverviewModeBehavior mOverviewModeBehavior; |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 @Override | 394 @Override |
| 395 public void notifyChanged() { | 395 public void notifyChanged() { |
| 396 super.notifyChanged(); | 396 super.notifyChanged(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 @VisibleForTesting | 399 @VisibleForTesting |
| 400 public TabPersistentStore getTabPersistentStoreForTesting() { | 400 public TabPersistentStore getTabPersistentStoreForTesting() { |
| 401 return mTabSaver; | 401 return mTabSaver; |
| 402 } | 402 } |
| 403 } | 403 } |
| OLD | NEW |