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.tab; | 5 package org.chromium.chrome.browser.tab; |
6 | 6 |
7 import android.annotation.TargetApi; | 7 import android.annotation.TargetApi; |
8 import android.app.Activity; | 8 import android.app.Activity; |
9 import android.app.ActivityManager; | 9 import android.app.ActivityManager; |
10 import android.content.Context; | 10 import android.content.Context; |
(...skipping 22 matching lines...) Expand all Loading... |
33 import org.chromium.chrome.browser.policy.PolicyAuditor; | 33 import org.chromium.chrome.browser.policy.PolicyAuditor; |
34 import org.chromium.chrome.browser.policy.PolicyAuditor.AuditEvent; | 34 import org.chromium.chrome.browser.policy.PolicyAuditor.AuditEvent; |
35 import org.chromium.chrome.browser.tabmodel.TabCreatorManager.TabCreator; | 35 import org.chromium.chrome.browser.tabmodel.TabCreatorManager.TabCreator; |
36 import org.chromium.chrome.browser.tabmodel.TabModel; | 36 import org.chromium.chrome.browser.tabmodel.TabModel; |
37 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; | 37 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; |
38 import org.chromium.chrome.browser.tabmodel.TabModelUtils; | 38 import org.chromium.chrome.browser.tabmodel.TabModelUtils; |
39 import org.chromium.components.web_contents_delegate_android.WebContentsDelegate
Android; | 39 import org.chromium.components.web_contents_delegate_android.WebContentsDelegate
Android; |
40 import org.chromium.content_public.browser.InvalidateTypes; | 40 import org.chromium.content_public.browser.InvalidateTypes; |
41 import org.chromium.content_public.browser.WebContents; | 41 import org.chromium.content_public.browser.WebContents; |
42 import org.chromium.content_public.common.ResourceRequestBody; | 42 import org.chromium.content_public.common.ResourceRequestBody; |
43 import org.chromium.ui.WindowOpenDisposition; | 43 import org.chromium.mojom.ui.WindowOpenDisposition; |
44 | 44 |
45 /** | 45 /** |
46 * A basic {@link TabWebContentsDelegateAndroid} that forwards some calls to the
registered | 46 * A basic {@link TabWebContentsDelegateAndroid} that forwards some calls to the
registered |
47 * {@link TabObserver}s. | 47 * {@link TabObserver}s. |
48 */ | 48 */ |
49 public class TabWebContentsDelegateAndroid extends WebContentsDelegateAndroid { | 49 public class TabWebContentsDelegateAndroid extends WebContentsDelegateAndroid { |
50 /** | 50 /** |
51 * Listener to be notified when a find result is received. | 51 * Listener to be notified when a find result is received. |
52 */ | 52 */ |
53 public interface FindResultListener { | 53 public interface FindResultListener { |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 */ | 468 */ |
469 private boolean isCapturingVideo() { | 469 private boolean isCapturingVideo() { |
470 return !mTab.isClosing() && nativeIsCapturingVideo(mTab.getWebContents()
); | 470 return !mTab.isClosing() && nativeIsCapturingVideo(mTab.getWebContents()
); |
471 } | 471 } |
472 | 472 |
473 private static native void nativeOnRendererUnresponsive(WebContents webConte
nts); | 473 private static native void nativeOnRendererUnresponsive(WebContents webConte
nts); |
474 private static native void nativeOnRendererResponsive(WebContents webContent
s); | 474 private static native void nativeOnRendererResponsive(WebContents webContent
s); |
475 private static native boolean nativeIsCapturingAudio(WebContents webContents
); | 475 private static native boolean nativeIsCapturingAudio(WebContents webContents
); |
476 private static native boolean nativeIsCapturingVideo(WebContents webContents
); | 476 private static native boolean nativeIsCapturingVideo(WebContents webContents
); |
477 } | 477 } |
OLD | NEW |