diff options
author | tedchoc@chromium.org <tedchoc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 23:50:03 +0000 |
---|---|---|
committer | tedchoc@chromium.org <tedchoc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 23:50:03 +0000 |
commit | 9ba14056e51e361ba14f529151fb7c24cf3a4267 (patch) | |
tree | 4c95908199c12e1b0b0b520deb49f47312cf701f /content/browser/web_contents/navigation_controller_impl.h | |
parent | 1b4763145250bf02d592c6c7ffc3d3e36484f4c3 (diff) | |
download | chromium_src-9ba14056e51e361ba14f529151fb7c24cf3a4267.zip chromium_src-9ba14056e51e361ba14f529151fb7c24cf3a4267.tar.gz chromium_src-9ba14056e51e361ba14f529151fb7c24cf3a4267.tar.bz2 |
Add support for basic web_contents methods in ContentView (android).
This adds the basic navigation functionality and some other basic calls
that were simply calling into WebContents.
Again, this is for ContentShell upstreaming in android.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10581051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/web_contents/navigation_controller_impl.h')
-rw-r--r-- | content/browser/web_contents/navigation_controller_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/web_contents/navigation_controller_impl.h b/content/browser/web_contents/navigation_controller_impl.h index 5053475..aa9ac23 100644 --- a/content/browser/web_contents/navigation_controller_impl.h +++ b/content/browser/web_contents/navigation_controller_impl.h @@ -80,6 +80,7 @@ class CONTENT_EXPORT NavigationControllerImpl virtual void LoadIfNecessary() OVERRIDE; virtual bool CanGoBack() const OVERRIDE; virtual bool CanGoForward() const OVERRIDE; + virtual bool CanGoToOffset(int offset) const OVERRIDE; virtual void GoBack() OVERRIDE; virtual void GoForward() OVERRIDE; virtual void GoToIndex(int index) OVERRIDE; @@ -270,6 +271,10 @@ class CONTENT_EXPORT NavigationControllerImpl // transient_entry_index_). void InsertEntriesFrom(const NavigationControllerImpl& source, int max_index); + // Returns the navigation index that differs from the current entry by the + // specified |offset|. The index returned is not guaranteed to be valid. + int GetIndexForOffset(int offset) const; + // --------------------------------------------------------------------------- // The user browser context associated with this controller. |