| 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.externalnav; | 5 package org.chromium.chrome.browser.externalnav; |
| 6 | 6 |
| 7 import android.content.Intent; | 7 import android.content.Intent; |
| 8 import android.content.pm.ResolveInfo; | 8 import android.content.pm.ResolveInfo; |
| 9 | 9 |
| 10 import org.chromium.chrome.browser.externalnav.ExternalNavigationHandler.Overrid
eUrlLoadingResult; | 10 import org.chromium.chrome.browser.externalnav.ExternalNavigationHandler.Overrid
eUrlLoadingResult; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 /** Adds the package name of a specialized intent handler. */ | 109 /** Adds the package name of a specialized intent handler. */ |
| 110 void maybeRecordAppHandlersInIntent(Intent intent, List<ResolveInfo> info); | 110 void maybeRecordAppHandlersInIntent(Intent intent, List<ResolveInfo> info); |
| 111 | 111 |
| 112 /** | 112 /** |
| 113 * Determine if the Chrome app is in the foreground. | 113 * Determine if the Chrome app is in the foreground. |
| 114 */ | 114 */ |
| 115 boolean isChromeAppInForeground(); | 115 boolean isChromeAppInForeground(); |
| 116 | 116 |
| 117 /** | 117 /** |
| 118 * Check if Chrome is running in document mode. | |
| 119 */ | |
| 120 boolean isDocumentMode(); | |
| 121 | |
| 122 /** | |
| 123 * @return Default SMS application's package name. Null if there isn't any. | 118 * @return Default SMS application's package name. Null if there isn't any. |
| 124 */ | 119 */ |
| 125 String getDefaultSmsPackageName(); | 120 String getDefaultSmsPackageName(); |
| 126 | 121 |
| 127 /** | 122 /** |
| 128 * @return Whether the URL is a file download. | 123 * @return Whether the URL is a file download. |
| 129 */ | 124 */ |
| 130 boolean isPdfDownload(String url); | 125 boolean isPdfDownload(String url); |
| 131 } | 126 } |
| OLD | NEW |