mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 21:51:51 -10:00
As long as the tabs are opened in the same Gecko browser window, splitting the Java UI tabs list into multiple parts breaks too many assumptions, so the easier solution is to allow setting a type attribute on each tab object, which will allow filtering of them later on. MozReview-Commit-ID: 1PbxMkWTK47
29 lines
865 B
Java
29 lines
865 B
Java
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
package org.mozilla.gecko;
|
|
|
|
import android.content.Context;
|
|
|
|
import org.json.JSONObject;
|
|
import org.mozilla.gecko.db.BrowserDB;
|
|
|
|
public class PrivateTab extends Tab {
|
|
public PrivateTab(Context context, int id, String url, boolean external, int parentId, String title, TabType type) {
|
|
super(context, id, url, external, parentId, title, type);
|
|
}
|
|
|
|
@Override
|
|
protected void saveThumbnailToDB(final BrowserDB db) {}
|
|
|
|
@Override
|
|
public void setMetadata(JSONObject metadata) {}
|
|
|
|
@Override
|
|
public boolean isPrivate() {
|
|
return true;
|
|
}
|
|
}
|