| 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; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.app.Activity; | 9 import android.app.Activity; |
| 10 import android.app.ActivityManager; | 10 import android.app.ActivityManager; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 private LayoutManagerChrome mLayoutManager; | 200 private LayoutManagerChrome mLayoutManager; |
| 201 | 201 |
| 202 private ViewGroup mContentContainer; | 202 private ViewGroup mContentContainer; |
| 203 | 203 |
| 204 private ToolbarControlContainer mControlContainer; | 204 private ToolbarControlContainer mControlContainer; |
| 205 | 205 |
| 206 private TabModelSelectorImpl mTabModelSelectorImpl; | 206 private TabModelSelectorImpl mTabModelSelectorImpl; |
| 207 private TabModelSelectorTabObserver mTabModelSelectorTabObserver; | 207 private TabModelSelectorTabObserver mTabModelSelectorTabObserver; |
| 208 private TabModelSelectorTabModelObserver mTabModelObserver; | 208 private TabModelSelectorTabModelObserver mTabModelObserver; |
| 209 | 209 |
| 210 private boolean mUIInitialized = false; | 210 private boolean mUIInitialized; |
| 211 | 211 |
| 212 private boolean mIsOnFirstRun = false; | 212 private boolean mIsOnFirstRun; |
| 213 private Boolean mMergeTabsOnResume; | 213 private Boolean mMergeTabsOnResume; |
| 214 | 214 |
| 215 private Boolean mIsAccessibilityEnabled; | 215 private Boolean mIsAccessibilityEnabled; |
| 216 | 216 |
| 217 private LocaleManager mLocaleManager; | 217 private LocaleManager mLocaleManager; |
| 218 | 218 |
| 219 /** | 219 /** |
| 220 * Keeps track of whether or not a specific tab was created based on the sta
rtup intent. | 220 * Keeps track of whether or not a specific tab was created based on the sta
rtup intent. |
| 221 */ | 221 */ |
| 222 private boolean mCreatedTabOnStartup = false; | 222 private boolean mCreatedTabOnStartup; |
| 223 | 223 |
| 224 // Whether or not chrome was launched with an intent to open a tab. | 224 // Whether or not chrome was launched with an intent to open a tab. |
| 225 private boolean mIntentWithEffect = false; | 225 private boolean mIntentWithEffect; |
| 226 | 226 |
| 227 // Time at which an intent was received and handled. | 227 // Time at which an intent was received and handled. |
| 228 private long mIntentHandlingTimeMs = 0; | 228 private long mIntentHandlingTimeMs; |
| 229 | 229 |
| 230 private VrShellDelegate mVrShellDelegate; | 230 private VrShellDelegate mVrShellDelegate; |
| 231 | 231 |
| 232 private class TabbedAssistStatusHandler extends AssistStatusHandler { | 232 private class TabbedAssistStatusHandler extends AssistStatusHandler { |
| 233 public TabbedAssistStatusHandler(Activity activity) { | 233 public TabbedAssistStatusHandler(Activity activity) { |
| 234 super(activity); | 234 super(activity); |
| 235 } | 235 } |
| 236 | 236 |
| 237 @Override | 237 @Override |
| 238 public boolean isAssistSupported() { | 238 public boolean isAssistSupported() { |
| (...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1713 | 1713 |
| 1714 ActivityManager manager = (ActivityManager) getSystemService(Context.ACT
IVITY_SERVICE); | 1714 ActivityManager manager = (ActivityManager) getSystemService(Context.ACT
IVITY_SERVICE); |
| 1715 for (AppTask task : manager.getAppTasks()) { | 1715 for (AppTask task : manager.getAppTasks()) { |
| 1716 RecentTaskInfo info = DocumentUtils.getTaskInfoFromTask(task); | 1716 RecentTaskInfo info = DocumentUtils.getTaskInfoFromTask(task); |
| 1717 if (info == null) continue; | 1717 if (info == null) continue; |
| 1718 if (info.id == sMergedInstanceTaskId) return true; | 1718 if (info.id == sMergedInstanceTaskId) return true; |
| 1719 } | 1719 } |
| 1720 return false; | 1720 return false; |
| 1721 } | 1721 } |
| 1722 } | 1722 } |
| OLD | NEW |