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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.h

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: reflected comments. Created 9 years, 6 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/tab_contents/render_view_context_menu.h
diff --git a/chrome/browser/tab_contents/render_view_context_menu.h b/chrome/browser/tab_contents/render_view_context_menu.h
index bd6bd0f0f4a3614916fd29fa8ca892afe920153e..2e9ecb668f5ea1e1d90f819ab6501e462be14e44 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.h
+++ b/chrome/browser/tab_contents/render_view_context_menu.h
@@ -47,6 +47,7 @@ class RenderViewContextMenu : public ui::SimpleMenuModel::Delegate {
virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
virtual void ExecuteCommand(int command_id) OVERRIDE;
+ virtual void ExecuteCommandWithFlags(int command_id, int flags) OVERRIDE;
virtual void MenuWillShow() OVERRIDE;
virtual void MenuClosed() OVERRIDE;
@@ -129,6 +130,12 @@ class RenderViewContextMenu : public ui::SimpleMenuModel::Delegate {
WindowOpenDisposition disposition,
PageTransition::Type transition);
+ // Open a previous page. |event_flags| is a bitsum of ui::EventFlags.
+ void GoBack(int event_flags);
+
+ // Open a forward page. |event_flags| is a bitsum of ui::EventFlags.
+ void GoForward(int event_flags);
+
// Copy to the clipboard an image located at a point in the RenderView
void CopyImageAt(int x, int y);

Powered by Google App Engine
This is Rietveld 408576698