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

Side by Side Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTabModel.java

Issue 831523005: Remove most native WebContents references from Java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Kept same error checking behavior for aw_contents.cc Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.shell; 5 package org.chromium.chrome.shell;
6 6
7 import org.chromium.chrome.browser.Tab; 7 import org.chromium.chrome.browser.Tab;
8 import org.chromium.chrome.browser.tabmodel.TabModelBase; 8 import org.chromium.chrome.browser.tabmodel.TabModelBase;
9 import org.chromium.chrome.browser.tabmodel.TabModelDelegate; 9 import org.chromium.chrome.browser.tabmodel.TabModelDelegate;
10 import org.chromium.chrome.browser.tabmodel.TabModelOrderController; 10 import org.chromium.chrome.browser.tabmodel.TabModelOrderController;
11 import org.chromium.content_public.browser.WebContents;
11 12
12 /** 13 /**
13 * Basic implementation of TabModel for use in ChromeShell. 14 * Basic implementation of TabModel for use in ChromeShell.
14 */ 15 */
15 public class ChromeShellTabModel extends TabModelBase { 16 public class ChromeShellTabModel extends TabModelBase {
16 17
17 public ChromeShellTabModel(TabModelOrderController orderController, 18 public ChromeShellTabModel(TabModelOrderController orderController,
18 TabModelDelegate modelDelegate) { 19 TabModelDelegate modelDelegate) {
19 super(false, orderController, modelDelegate); 20 super(false, orderController, modelDelegate);
20 } 21 }
21 22
22 @Override 23 @Override
23 protected Tab createTabWithNativeContents(boolean incognito, long nativeWebC ontents, 24 protected Tab createTabWithWebContents(boolean incognito, WebContents webCon tents,
24 int parentId) { 25 int parentId) {
25 return null; 26 return null;
26 } 27 }
27 28
28 @Override 29 @Override
29 protected Tab createNewTabForDevTools(String url) { 30 protected Tab createNewTabForDevTools(String url) {
30 assert false; 31 assert false;
31 return null; 32 return null;
32 } 33 }
33 34
34 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698