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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 public void onFindMatchRects(FindMatchRectsDetails result); | 66 public void onFindMatchRects(FindMatchRectsDetails result); |
67 } | 67 } |
68 | 68 |
69 /** Used for logging. */ | 69 /** Used for logging. */ |
70 private static final String TAG = "WebContentsDelegate"; | 70 private static final String TAG = "WebContentsDelegate"; |
71 | 71 |
72 protected final Tab mTab; | 72 protected final Tab mTab; |
73 | 73 |
74 private FindResultListener mFindResultListener; | 74 private FindResultListener mFindResultListener; |
75 | 75 |
76 private FindMatchRectsListener mFindMatchRectsListener = null; | 76 private FindMatchRectsListener mFindMatchRectsListener; |
77 | 77 |
78 private int mDisplayMode = WebDisplayMode.Browser; | 78 private int mDisplayMode = WebDisplayMode.Browser; |
79 | 79 |
80 protected Handler mHandler; | 80 protected Handler mHandler; |
81 | 81 |
82 private final Runnable mCloseContentsRunnable = new Runnable() { | 82 private final Runnable mCloseContentsRunnable = new Runnable() { |
83 @Override | 83 @Override |
84 public void run() { | 84 public void run() { |
85 boolean isSelected = mTab.getTabModelSelector().getCurrentTab() == m
Tab; | 85 boolean isSelected = mTab.getTabModelSelector().getCurrentTab() == m
Tab; |
86 mTab.getTabModelSelector().closeTab(mTab); | 86 mTab.getTabModelSelector().closeTab(mTab); |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 }; | 527 }; |
528 } | 528 } |
529 | 529 |
530 private static native void nativeOnRendererUnresponsive(WebContents webConte
nts); | 530 private static native void nativeOnRendererUnresponsive(WebContents webConte
nts); |
531 private static native void nativeOnRendererResponsive(WebContents webContent
s); | 531 private static native void nativeOnRendererResponsive(WebContents webContent
s); |
532 private static native boolean nativeIsCapturingAudio(WebContents webContents
); | 532 private static native boolean nativeIsCapturingAudio(WebContents webContents
); |
533 private static native boolean nativeIsCapturingVideo(WebContents webContents
); | 533 private static native boolean nativeIsCapturingVideo(WebContents webContents
); |
534 private static native boolean nativeIsCapturingScreen(WebContents webContent
s); | 534 private static native boolean nativeIsCapturingScreen(WebContents webContent
s); |
535 private static native void nativeNotifyStopped(WebContents webContents); | 535 private static native void nativeNotifyStopped(WebContents webContents); |
536 } | 536 } |
OLD | NEW |