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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/NativePage.java

Issue 250923008: Remove PageInfo interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/Tab.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.graphics.Bitmap; 7 import android.graphics.Bitmap;
8 8 import android.view.View;
9 import org.chromium.content.browser.PageInfo;
10 9
11 /** 10 /**
12 * An interface for pages that will be shown in a tab using Android views instea d of html. 11 * An interface for pages that will be shown in a tab using Android views instea d of html.
13 */ 12 */
14 public interface NativePage extends PageInfo { 13 public interface NativePage {
14 /**
15 * @return The View to display the page. This is always non-null.
16 */
17 View getView();
18
19 /**
20 * @return The title of the page.
21 */
22 String getTitle();
23
15 /** 24 /**
16 * @return The URL of the page. 25 * @return The URL of the page.
17 */ 26 */
18 String getUrl(); 27 String getUrl();
19 28
20 /** 29 /**
21 * @return The hostname for this page, e.g. "newtab" or "bookmarks". 30 * @return The hostname for this page, e.g. "newtab" or "bookmarks".
22 */ 31 */
23 public String getHost(); 32 public String getHost();
24 33
25 /** 34 /**
26 * Called after a page has been removed from the view hierarchy and will no longer be used. 35 * @return The background color of the page.
27 */ 36 */
28 public void destroy(); 37 int getBackgroundColor();
29 38
30 /** 39 /**
31 * Updates the native page based on the given url. 40 * Updates the native page based on the given url.
32 */ 41 */
33 public void updateForUrl(String url); 42 public void updateForUrl(String url);
34 43
35 /** 44 /**
45 * Called after a page has been removed from the view hierarchy and will no longer be used.
46 */
47 public void destroy();
48
49 /**
36 * @return An unscaled screenshot of the page. 50 * @return An unscaled screenshot of the page.
37 */ 51 */
38 Bitmap getBitmap(); 52 Bitmap getBitmap();
39 53
40 /** 54 /**
41 * @return A screenshot of the page scaled to the specified size. 55 * @return A screenshot of the page scaled to the specified size.
42 */ 56 */
43 Bitmap getBitmap(int width, int height); 57 Bitmap getBitmap(int width, int height);
44 } 58 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/Tab.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698