OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.content_public.browser; | 5 package org.chromium.content_public.browser; |
6 | 6 |
7 import android.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
8 | 8 |
9 /** | 9 /** |
10 * Represents one entry in the navigation history of a page. | 10 * Represents one entry in the navigation history of a page. |
11 */ | 11 */ |
12 public class NavigationEntry { | 12 public class NavigationEntry { |
13 | 13 |
14 private final int mIndex; | 14 private final int mIndex; |
15 private final String mUrl; | 15 private final String mUrl; |
16 private final String mOriginalUrl; | 16 private final String mOriginalUrl; |
17 private final String mVirtualUrl; | 17 private final String mVirtualUrl; |
18 private final String mTitle; | 18 private final String mTitle; |
19 private Bitmap mFavicon; | 19 private Bitmap mFavicon; |
| 20 private int mTransition; |
20 | 21 |
21 /** | 22 /** |
22 * Default constructor. | 23 * Default constructor. |
23 */ | 24 */ |
24 public NavigationEntry(int index, String url, String virtualUrl, String orig
inalUrl, | 25 public NavigationEntry(int index, String url, String virtualUrl, String orig
inalUrl, |
25 String title, Bitmap favicon) { | 26 String title, Bitmap favicon, int transition) { |
26 mIndex = index; | 27 mIndex = index; |
27 mUrl = url; | 28 mUrl = url; |
28 mVirtualUrl = virtualUrl; | 29 mVirtualUrl = virtualUrl; |
29 mOriginalUrl = originalUrl; | 30 mOriginalUrl = originalUrl; |
30 mTitle = title; | 31 mTitle = title; |
31 mFavicon = favicon; | 32 mFavicon = favicon; |
| 33 mTransition = transition; |
32 } | 34 } |
33 | 35 |
34 /** | 36 /** |
35 * @return The index into the navigation history that this entry represents. | 37 * @return The index into the navigation history that this entry represents. |
36 */ | 38 */ |
37 public int getIndex() { | 39 public int getIndex() { |
38 return mIndex; | 40 return mIndex; |
39 } | 41 } |
40 | 42 |
41 /** | 43 /** |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 public Bitmap getFavicon() { | 87 public Bitmap getFavicon() { |
86 return mFavicon; | 88 return mFavicon; |
87 } | 89 } |
88 | 90 |
89 /** | 91 /** |
90 * @param favicon The updated favicon to replace the existing one with. | 92 * @param favicon The updated favicon to replace the existing one with. |
91 */ | 93 */ |
92 public void updateFavicon(Bitmap favicon) { | 94 public void updateFavicon(Bitmap favicon) { |
93 mFavicon = favicon; | 95 mFavicon = favicon; |
94 } | 96 } |
| 97 |
| 98 public int getTransition() { |
| 99 return mTransition; |
| 100 } |
95 } | 101 } |
OLD | NEW |