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

Unified Diff: chrome/browser/instant/instant_loader.cc

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make event_utils::DispositionFromEventFlags not view-specific. Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/instant/instant_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 1c7a87473c34ed4081ba30c817572c9852219314..149b48bb175360be7636cf45d94446fe94040757 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -234,6 +234,12 @@ class InstantLoader::TabContentsDelegateImpl
virtual void OnStartDownload(DownloadItem* download,
TabContentsWrapper* tab) OVERRIDE;
+ // Navigation interface to supoprt disposition.
+ virtual void GoBack(WindowOpenDisposition disposition) OVERRIDE;
+ virtual void GoForward(WindowOpenDisposition disposition) OVERRIDE;
+ virtual bool NavigateToIndexWithDisposition(
+ int index, WindowOpenDisposition disp) OVERRIDE;
+
private:
typedef std::vector<scoped_refptr<history::HistoryAddPageArgs> >
AddPageVector;
@@ -591,6 +597,23 @@ void InstantLoader::TabContentsDelegateImpl::OnStartDownload(
// Downloads are disabled.
}
+void InstantLoader::TabContentsDelegateImpl::GoBack(
+ WindowOpenDisposition disposition) {
+ // Navigations are disabled.
+}
+
+void InstantLoader::TabContentsDelegateImpl::GoForward(
+ WindowOpenDisposition disposition) {
+ // Navigations are disabled.
+}
+
+bool InstantLoader::TabContentsDelegateImpl::NavigateToIndexWithDisposition(
+ int index, WindowOpenDisposition disp) {
+ // Navigations are disabled.
+ return false;
+}
+
+
void InstantLoader::TabContentsDelegateImpl::OnSetSuggestions(
int32 page_id,
const std::vector<std::string>& suggestions,

Powered by Google App Engine
This is Rietveld 408576698