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

Unified Diff: chrome/android/testshell/java/src/org/chromium/chrome/testshell/TestShellTab.java

Issue 14169011: [Android] Rename NativeWindow to WindowAndroid. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Return Activity context for now Created 7 years, 8 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/testshell/java/src/org/chromium/chrome/testshell/TestShellTab.java
diff --git a/chrome/android/testshell/java/src/org/chromium/chrome/testshell/TestShellTab.java b/chrome/android/testshell/java/src/org/chromium/chrome/testshell/TestShellTab.java
index 17d314aaf4289495ac57251a221153a704e5b630..ac01e6f36b31962befa23c6730f2bf25cc8d72d1 100644
--- a/chrome/android/testshell/java/src/org/chromium/chrome/testshell/TestShellTab.java
+++ b/chrome/android/testshell/java/src/org/chromium/chrome/testshell/TestShellTab.java
@@ -14,7 +14,7 @@ import org.chromium.chrome.browser.TabBase;
import org.chromium.content.browser.ContentView;
import org.chromium.content.browser.LoadUrlParams;
import org.chromium.content.common.CleanupReference;
-import org.chromium.ui.gfx.NativeWindow;
+import org.chromium.ui.WindowAndroid;
/**
* TestShell's implementation of a tab. This mirrors how Chrome for Android subclasses
@@ -35,9 +35,9 @@ public class TestShellTab extends TabBase {
/**
* @param context The Context the view is running in.
* @param url The URL to start this tab with.
- * @param window The NativeWindow should represent this tab.
+ * @param window The WindowAndroid should represent this tab.
*/
- public TestShellTab(Context context, String url, NativeWindow window) {
+ public TestShellTab(Context context, String url, WindowAndroid window) {
super(window);
init(context);
loadUrlWithSanitization(url);
@@ -49,10 +49,10 @@ public class TestShellTab extends TabBase {
private void init(Context context) {
// Build the WebContents and the ContentView/ContentViewCore
int nativeWebContentsPtr = ContentViewUtil.createNativeWebContents(false);
- mContentView = ContentView.newInstance(context, nativeWebContentsPtr, getNativeWindow(),
+ mContentView = ContentView.newInstance(context, nativeWebContentsPtr, getWindowAndroid(),
ContentView.PERSONALITY_CHROME);
mNativeTestShellTab = nativeInit(nativeWebContentsPtr,
- getNativeWindow().getNativePointer());
+ getWindowAndroid().getNativePointer());
// Build the WebContentsDelegate
mWebContentsDelegate = new TabBaseChromeWebContentsDelegateAndroid();

Powered by Google App Engine
This is Rietveld 408576698