blob: ffc7e7eeca4677f58dbf061a4abecf210d2b76dd [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser;
import android.view.View;
/**
* An interface for pages that will be shown in a tab using Android views instead of html.
*/
public interface NativePage {
/**
* @return The View to display the page. This is always non-null.
*/
View getView();
/**
* @return The title of the page.
*/
String getTitle();
/**
* @return The URL of the page.
*/
String getUrl();
/**
* @return The hostname for this page, e.g. "newtab" or "bookmarks".
*/
String getHost();
/**
* @return The background color of the page.
*/
int getBackgroundColor();
/**
* Updates the native page based on the given url.
*/
void updateForUrl(String url);
/**
* Called after a page has been removed from the view hierarchy and will no longer be used.
*/
void destroy();
}