summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
authorstoyan@google.com <stoyan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 14:56:38 +0000
committerstoyan@google.com <stoyan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 14:56:38 +0000
commitf9cc4c4597f2455409008a76d88ed11dbe05796a (patch)
tree3d1df599805bde20ebfc063c9da87637bb240e08 /chrome/browser/external_tab_container.cc
parent2884a003274a81a3d67a0af97070c427e5ff8956 (diff)
downloadchromium_src-f9cc4c4597f2455409008a76d88ed11dbe05796a.zip
chromium_src-f9cc4c4597f2455409008a76d88ed11dbe05796a.tar.gz
chromium_src-f9cc4c4597f2455409008a76d88ed11dbe05796a.tar.bz2
This CL is for the needs of ChromeFrame.
TabContentsDelegate implementation may override navigations caused by JsvaScript history object. Yet not perfect since webkit view of navigation stack differs from the view of external-non-Chrome-host-browser. We have to provide the full stack from host-browser (+visited links alongside) in the same way as Chrome-browser provides it to renderer. BUG=24004 Review URL: http://codereview.chromium.org/261046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index f66cab5..4529ac3 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -638,3 +638,13 @@ void ExternalTabContainer::Navigate(const GURL& url, const GURL& referrer) {
tab_contents_->controller().LoadURL(url, referrer,
PageTransition::START_PAGE);
}
+
+bool ExternalTabContainer::OnGoToEntryOffset(int offset) {
+ if (load_requests_via_automation_) {
+ automation_->Send(new AutomationMsg_RequestGoToHistoryEntryOffset(
+ 0, tab_handle_, offset));
+ return false;
+ }
+
+ return true;
+}