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

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

Issue 10800019: Refactor ContentShell to remove ContentViewClient dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/android/java/src/org/chromium/content_shell/Shell.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java b/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java
index 96ae2b5aa4a716263d4e5b1e9b9021d49159cecf..7737b6564a276df3d914439f83a4a120e31cbc5d 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/ContentShellActivity.java
@@ -35,7 +35,7 @@ public class ContentShellActivity extends Activity {
String startupUrl = getUrlFromIntent(getIntent());
if (!TextUtils.isEmpty(startupUrl)) {
CommandLine.getInstance().appendSwitchesAndArguments(
- new String[] {ShellView.sanitizeUrl(startupUrl)});
+ new String[] {Shell.sanitizeUrl(startupUrl)});
}
waitForDebuggerIfNeeded();
@@ -59,7 +59,7 @@ public class ContentShellActivity extends Activity {
public boolean onKeyUp(int keyCode, KeyEvent event) {
if (keyCode != KeyEvent.KEYCODE_BACK) return super.onKeyUp(keyCode, event);
- ShellView activeView = getActiveShellView();
+ Shell activeView = getActiveShell();
if (activeView != null && activeView.getContentView().canGoBack()) {
activeView.getContentView().goBack();
return true;
@@ -72,7 +72,7 @@ public class ContentShellActivity extends Activity {
protected void onNewIntent(Intent intent) {
String url = getUrlFromIntent(intent);
if (!TextUtils.isEmpty(url)) {
- ShellView activeView = getActiveShellView();
+ Shell activeView = getActiveShell();
if (activeView != null) {
activeView.loadUrl(url);
}
@@ -92,10 +92,10 @@ public class ContentShellActivity extends Activity {
}
/**
- * @return The currently visible {@link ShellView} or null if one is not showing.
+ * @return The currently visible {@link Shell} or null if one is not showing.
*/
- public ShellView getActiveShellView() {
- return mShellManager != null ? mShellManager.getActiveShellView() : null;
+ public Shell getActiveShell() {
+ return mShellManager != null ? mShellManager.getActiveShell() : null;
}
private void initializeContentViewResources() {
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/android/java/src/org/chromium/content_shell/Shell.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698