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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java

Issue 10701177: Make content shell on android support relaunching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and removed unnecessary content:: namespacing. Created 8 years, 5 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: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java b/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
index 082e99efa54675939be6835590f05ce427a4366f..feb6c84963a566cd0877d4562fe11c1357ea8423 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
@@ -35,6 +35,14 @@ public class ShellManager extends FrameLayout {
return mActiveShell;
}
+ /**
+ * Creates a new shell pointing to the specified URL.
+ * @param url The URL the shell should load upon creation.
+ */
+ public void launchShell(String url) {
+ nativeLaunchShell(url);
+ }
+
@SuppressWarnings("unused")
@CalledByNative
private Object createShell() {
@@ -51,4 +59,5 @@ public class ShellManager extends FrameLayout {
}
private static native void nativeInit(Object shellManagerInstance);
+ private static native void nativeLaunchShell(String url);
}
« no previous file with comments | « content/shell/android/java/src/org/chromium/content_shell/Shell.java ('k') | content/shell/android/shell_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698