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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 2692923010: Gmail open conversation test automation (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | android_webview/tools/automated_ui_tests/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.content.ComponentCallbacks2; 10 import android.content.ComponentCallbacks2;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * Exposes the native AwContents class, and together these classes wrap the Cont entViewCore 93 * Exposes the native AwContents class, and together these classes wrap the Cont entViewCore
94 * and Browser components that are required to implement Android WebView API. Th is is the 94 * and Browser components that are required to implement Android WebView API. Th is is the
95 * primary entry point for the WebViewProvider implementation; it holds a 1:1 ob ject 95 * primary entry point for the WebViewProvider implementation; it holds a 1:1 ob ject
96 * relationship with application WebView instances. 96 * relationship with application WebView instances.
97 * (We define this class independent of the hidden WebViewProvider interfaces, t o allow 97 * (We define this class independent of the hidden WebViewProvider interfaces, t o allow
98 * continuous build & test in the open source SDK-based tree). 98 * continuous build & test in the open source SDK-based tree).
99 */ 99 */
100 @JNINamespace("android_webview") 100 @JNINamespace("android_webview")
101 public class AwContents implements SmartClipProvider { 101 public class AwContents implements SmartClipProvider {
102 private static final String TAG = "AwContents"; 102 private static final String TAG = "AwContents";
103 private static final boolean TRACE = false; 103 private static final boolean TRACE = true;
104 private static final int NO_WARN = 0; 104 private static final int NO_WARN = 0;
105 private static final int WARN = 1; 105 private static final int WARN = 1;
106 private static final String PRODUCT_VERSION = AwContentsStatics.getProductVe rsion(); 106 private static final String PRODUCT_VERSION = AwContentsStatics.getProductVe rsion();
107 107
108 private static final String WEB_ARCHIVE_EXTENSION = ".mht"; 108 private static final String WEB_ARCHIVE_EXTENSION = ".mht";
109 // The request code should be unique per WebView/AwContents object. 109 // The request code should be unique per WebView/AwContents object.
110 private static final int PROCESS_TEXT_REQUEST_CODE = 100; 110 private static final int PROCESS_TEXT_REQUEST_CODE = 100;
111 111
112 // Used to avoid enabling zooming in / out if resulting zooming will 112 // Used to avoid enabling zooming in / out if resulting zooming will
113 // produce little visible difference. 113 // produce little visible difference.
(...skipping 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3420 3420
3421 private native void nativePreauthorizePermission(long nativeAwContents, Stri ng origin, 3421 private native void nativePreauthorizePermission(long nativeAwContents, Stri ng origin,
3422 long resources); 3422 long resources);
3423 3423
3424 private native void nativePostMessageToFrame(long nativeAwContents, String f rameId, 3424 private native void nativePostMessageToFrame(long nativeAwContents, String f rameId,
3425 String message, String targetOrigin, MessagePort[] ports); 3425 String message, String targetOrigin, MessagePort[] ports);
3426 3426
3427 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents); 3427 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents);
3428 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents); 3428 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents);
3429 } 3429 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/tools/automated_ui_tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698