Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / android / java / src / org / chromium / chrome / browser / NativePage.java
index 7ad3850..ffc7e7e 100644 (file)
@@ -4,14 +4,22 @@
 
 package org.chromium.chrome.browser;
 
-import android.graphics.Bitmap;
-
-import org.chromium.content.browser.PageInfo;
+import android.view.View;
 
 /**
  * An interface for pages that will be shown in a tab using Android views instead of html.
  */
-public interface NativePage extends PageInfo {
+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.
      */
@@ -20,25 +28,20 @@ public interface NativePage extends PageInfo {
     /**
      * @return The hostname for this page, e.g. "newtab" or "bookmarks".
      */
-    public String getHost();
+    String getHost();
 
     /**
-     * Called after a page has been removed from the view hierarchy and will no longer be used.
+     * @return The background color of the page.
      */
-    public void destroy();
+    int getBackgroundColor();
 
     /**
      * Updates the native page based on the given url.
      */
-    public void updateForUrl(String url);
-
-    /**
-     * @return An unscaled screenshot of the page.
-     */
-    Bitmap getBitmap();
+    void updateForUrl(String url);
 
     /**
-     * @return A screenshot of the page scaled to the specified size.
+     * Called after a page has been removed from the view hierarchy and will no longer be used.
      */
-    Bitmap getBitmap(int width, int height);
+    void destroy();
 }