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

Unified Diff: chrome/browser/ui/browser.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: make this patch applicable to the latest trunk 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
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index e2404cac9521273d63863c2149ab1ec4ca3828df..60ab9518ad0b4348dae4316eafb9879624647363 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -634,6 +634,10 @@ class Browser : public TabHandlerDelegate,
// Returns true if the command is executed.
bool ExecuteCommandIfEnabled(int id);
+ // Executes a command from a tab content's context menu.
+ // Return true if handled.
+ bool ExecuteContextMenuCommand(int id, int event_flags);
+
// Returns true if |command_id| is a reserved command whose keyboard shortcuts
// should not be sent to the renderer or |event| was triggered by a key that
// we never want to send to the renderer.
@@ -1048,12 +1052,23 @@ class Browser : public TabHandlerDelegate,
void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache);
// Return true if the window dispositions means opening a new tab.
- bool ShouldOpenNewTabForWindowDisposition(WindowOpenDisposition disposition);
+ bool ShouldOpenNewTabForDisposition(WindowOpenDisposition disposition);
// Depending on the disposition, return the current tab or a clone of the
// current tab.
TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition);
+ // Depending on the disposition, return the wrapper containing the current
+ // tab or a clone of the current tab.
+ TabContentsWrapper* GetOrCloneTabWrapperForDisposition(
+ WindowOpenDisposition disposition);
+
+ // Depending on the disposition, create a new browser.
+ // When disposition is NEW_WINDOW, |tab_contents| will be added to
+ // a new browser which is created in this method.
+ void CreateNewBrowserForDisposition(TabContentsWrapper* tab_contents,
+ WindowOpenDisposition disposition);
+
// Sets the insertion policy of the tabstrip based on whether vertical tabs
// are enabled.
void UpdateTabStripModelInsertionPolicy();
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698