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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java

Issue 10855171: Add a test runner for android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address feedback Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java b/android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java
new file mode 100644
index 0000000000000000000000000000000000000000..750b3383a704d430a07058e659d7336cafd2b64b
--- /dev/null
+++ b/android_webview/java/src/org/chromium/android_webview/AndroidWebViewUtil.java
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.android_webview;
+
+/**
+ * This class provides a way to create the native WebContents.
+ */
+public abstract class AndroidWebViewUtil {
+ // TODO(mkosiba): rename to ContentViewUtil when we stop linking against chrome/ (or share the
+ // chrome/ ContentViewUtil).
+ private AndroidWebViewUtil() {
+ }
+
+ /**
+ * @return pointer to native WebContents instance, suitable for using with a
+ * (java) ContentViewCore instance.
+ */
+ public static int createNativeWebContents(boolean incognito) {
+ return nativeCreateNativeWebContents(incognito);
+ }
+
+ private static native int nativeCreateNativeWebContents(boolean incognito);
+}
« no previous file with comments | « android_webview/java/android_webview_apk.xml ('k') | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698