Files
firefox/mobile/android/base/java/org/mozilla/gecko/PrivateTab.java
T
Jan Henning bec7a01acb Bug 1346004 - Part 1 - Keep track of a tab type on the Java tab object. r=sebastian
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
2017-03-11 20:04:07 +01:00

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;
}
}