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

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

Issue 2807663002: 📺 Move fullscreen web content to a new Activity. (Closed)
Patch Set: Fix test. Created 3 years, 7 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 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 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 } 1988 }
1989 1989
1990 ActivityManager manager = (ActivityManager) getSystemService(Context.ACT IVITY_SERVICE); 1990 ActivityManager manager = (ActivityManager) getSystemService(Context.ACT IVITY_SERVICE);
1991 for (AppTask task : manager.getAppTasks()) { 1991 for (AppTask task : manager.getAppTasks()) {
1992 RecentTaskInfo info = DocumentUtils.getTaskInfoFromTask(task); 1992 RecentTaskInfo info = DocumentUtils.getTaskInfoFromTask(task);
1993 if (info == null) continue; 1993 if (info == null) continue;
1994 if (info.id == sMergedInstanceTaskId) return true; 1994 if (info.id == sMergedInstanceTaskId) return true;
1995 } 1995 }
1996 return false; 1996 return false;
1997 } 1997 }
1998
1999 @Override
2000 public boolean supportsFullscreenActivity() {
2001 return true;
2002 }
1998 } 2003 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698