| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 /** Used for logging. */ | 70 /** Used for logging. */ |
| 71 private static final String TAG = "WebContentsDelegate"; | 71 private static final String TAG = "WebContentsDelegate"; |
| 72 | 72 |
| 73 protected final Tab mTab; | 73 protected final Tab mTab; |
| 74 | 74 |
| 75 private FindResultListener mFindResultListener; | 75 private FindResultListener mFindResultListener; |
| 76 | 76 |
| 77 private FindMatchRectsListener mFindMatchRectsListener; | 77 private FindMatchRectsListener mFindMatchRectsListener; |
| 78 | 78 |
| 79 private int mDisplayMode = WebDisplayMode.kBrowser; | 79 private int mDisplayMode = WebDisplayMode.BROWSER; |
| 80 | 80 |
| 81 protected Handler mHandler; | 81 protected Handler mHandler; |
| 82 | 82 |
| 83 private final Runnable mCloseContentsRunnable = new Runnable() { | 83 private final Runnable mCloseContentsRunnable = new Runnable() { |
| 84 @Override | 84 @Override |
| 85 public void run() { | 85 public void run() { |
| 86 boolean isSelected = mTab.getTabModelSelector().getCurrentTab() == m
Tab; | 86 boolean isSelected = mTab.getTabModelSelector().getCurrentTab() == m
Tab; |
| 87 mTab.getTabModelSelector().closeTab(mTab); | 87 mTab.getTabModelSelector().closeTab(mTab); |
| 88 | 88 |
| 89 // If the parent Tab belongs to another Activity, fire the Intent to
bring it back. | 89 // If the parent Tab belongs to another Activity, fire the Intent to
bring it back. |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 }; | 519 }; |
| 520 } | 520 } |
| 521 | 521 |
| 522 private static native void nativeOnRendererUnresponsive(WebContents webConte
nts); | 522 private static native void nativeOnRendererUnresponsive(WebContents webConte
nts); |
| 523 private static native void nativeOnRendererResponsive(WebContents webContent
s); | 523 private static native void nativeOnRendererResponsive(WebContents webContent
s); |
| 524 private static native boolean nativeIsCapturingAudio(WebContents webContents
); | 524 private static native boolean nativeIsCapturingAudio(WebContents webContents
); |
| 525 private static native boolean nativeIsCapturingVideo(WebContents webContents
); | 525 private static native boolean nativeIsCapturingVideo(WebContents webContents
); |
| 526 private static native boolean nativeIsCapturingScreen(WebContents webContent
s); | 526 private static native boolean nativeIsCapturingScreen(WebContents webContent
s); |
| 527 private static native void nativeNotifyStopped(WebContents webContents); | 527 private static native void nativeNotifyStopped(WebContents webContents); |
| 528 } | 528 } |
| OLD | NEW |