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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java

Issue 10831060: Refactor the Android port to allow access to the chrome layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixed. 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: chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java b/chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java
new file mode 100644
index 0000000000000000000000000000000000000000..72c9057ec173d36793edc4f1cef6407d18ac34ee
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.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.chrome.browser;
+
+/**
+ * This class provides a way to create the native WebContents required for instantiating a
+ * ContentView.
+ */
+public abstract class ContentViewUtil {
+ // Don't instantiate me.
+ private ContentViewUtil() {
+ }
+
+ /**
+ * @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);
+}

Powered by Google App Engine
This is Rietveld 408576698