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(); |