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.document; | 5 package org.chromium.chrome.browser.document; |
6 | 6 |
7 import android.annotation.TargetApi; | 7 import android.annotation.TargetApi; |
8 import android.content.Intent; | 8 import android.content.Intent; |
9 import android.os.Build; | 9 import android.os.Build; |
10 import android.text.TextUtils; | 10 import android.text.TextUtils; |
11 | 11 |
12 import org.chromium.base.Log; | 12 import org.chromium.base.Log; |
13 import org.chromium.chrome.browser.ChromeActivity; | 13 import org.chromium.chrome.browser.ChromeActivity; |
| 14 import org.chromium.chrome.browser.fullscreen.ChromeFullscreenManager; |
14 import org.chromium.chrome.browser.tab.Tab; | 15 import org.chromium.chrome.browser.tab.Tab; |
15 import org.chromium.chrome.browser.tabmodel.document.ActivityDelegate; | 16 import org.chromium.chrome.browser.tabmodel.document.ActivityDelegate; |
16 | 17 |
17 /** | 18 /** |
18 * Deprecated class for running Chrome in document mode. Kept around to force u
sers into the | 19 * Deprecated class for running Chrome in document mode. Kept around to force u
sers into the |
19 * correct {@link Activity}. | 20 * correct {@link Activity}. |
20 */ | 21 */ |
21 @TargetApi(Build.VERSION_CODES.LOLLIPOP) | 22 @TargetApi(Build.VERSION_CODES.LOLLIPOP) |
22 public class DocumentActivity extends ChromeActivity { | 23 public class DocumentActivity extends ChromeActivity { |
23 // Legacy class names to match Chrome pre-44 activity names. See crbug.com/5
03807 | 24 // Legacy class names to match Chrome pre-44 activity names. See crbug.com/5
03807 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 * both regular document activity and incognito document activity). | 66 * both regular document activity and incognito document activity). |
66 * @param className The class name to inspect. | 67 * @param className The class name to inspect. |
67 * @return Whether the className is that of a document activity. | 68 * @return Whether the className is that of a document activity. |
68 */ | 69 */ |
69 public static boolean isDocumentActivity(String className) { | 70 public static boolean isDocumentActivity(String className) { |
70 return TextUtils.equals(className, IncognitoDocumentActivity.class.getNa
me()) | 71 return TextUtils.equals(className, IncognitoDocumentActivity.class.getNa
me()) |
71 || TextUtils.equals(className, DocumentActivity.class.getName()) | 72 || TextUtils.equals(className, DocumentActivity.class.getName()) |
72 || TextUtils.equals(className, LEGACY_CLASS_NAME) | 73 || TextUtils.equals(className, LEGACY_CLASS_NAME) |
73 || TextUtils.equals(className, LEGACY_INCOGNITO_CLASS_NAME); | 74 || TextUtils.equals(className, LEGACY_INCOGNITO_CLASS_NAME); |
74 } | 75 } |
| 76 |
| 77 @Override |
| 78 protected ChromeFullscreenManager createFullscreenManager() { |
| 79 return null; |
| 80 } |
75 } | 81 } |
OLD | NEW |