From 9ba14056e51e361ba14f529151fb7c24cf3a4267 Mon Sep 17 00:00:00 2001 From: "tedchoc@chromium.org" Date: Fri, 22 Jun 2012 23:50:03 +0000 Subject: 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 --- content/browser/web_contents/navigation_controller_impl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content/browser/web_contents/navigation_controller_impl.h') 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. -- cgit v1.1