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

Unified Diff: chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java

Issue 1176943002: Start unifying document-mode and tabbed-mode tab creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment Created 5 years, 6 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/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java
diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java
index 00a132a83b57e01b9227c2972415d7878ee5949b..c9a8b19668042926f758f9a944f4a3c6f8e3cfa4 100644
--- a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java
+++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java
@@ -7,9 +7,9 @@ package org.chromium.chrome.test.util.browser.tabmodel.document;
import android.app.Activity;
import org.chromium.chrome.browser.Tab;
-import org.chromium.chrome.browser.document.PendingDocumentData;
+import org.chromium.chrome.browser.TabState;
+import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType;
import org.chromium.chrome.browser.tabmodel.document.ActivityDelegate;
-import org.chromium.chrome.browser.tabmodel.document.DocumentTabModel.Entry;
import org.chromium.chrome.browser.tabmodel.document.TabDelegate;
import org.chromium.content_public.browser.LoadUrlParams;
import org.chromium.content_public.browser.WebContents;
@@ -19,26 +19,38 @@ import org.chromium.content_public.browser.WebContents;
*/
public class MockTabDelegate implements TabDelegate {
@Override
- public Tab getActivityTab(boolean incognito, ActivityDelegate delgate, Activity activity) {
+ public Tab getActivityTab(ActivityDelegate delgate, Activity activity) {
return null;
}
@Override
- public void createTabInForeground(Activity parentActivity, boolean incognito,
- LoadUrlParams loadUrlParams, PendingDocumentData documentParams) {
+ public Tab createNewTab(LoadUrlParams loadUrlParams, TabLaunchType type, Tab parent) {
+ return null;
+ }
+
+ @Override
+ public Tab createFrozenTab(TabState state, int id, int index) {
+ return null;
}
@Override
- public Tab createFrozenTab(Entry entry) {
+ public Tab createTabWithWebContents(WebContents webContents, int parentId, TabLaunchType type) {
return null;
}
@Override
- public void createTabWithWebContents(boolean isIncognito, WebContents webContents,
- int parentTabId) {
+ public Tab createTabWithWebContents(
+ WebContents webContents, int parentId, TabLaunchType type, int startedBy) {
+ return null;
}
@Override
- public void createTabForDevTools(String url) {
+ public Tab launchUrl(String url, TabLaunchType type) {
+ return null;
+ }
+
+ @Override
+ public Tab launchNTP() {
+ return null;
}
}
« no previous file with comments | « chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockDocumentTabCreatorManager.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698