Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java

Issue 2815103004: Android: convert kEnumName to ENUM_NAME in java_cpp_enum.py. (Closed)
Patch Set: Address agrieve@ comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698