Chromium Code Reviews| Index: chrome/browser/ui/browser.h |
| diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h |
| index f6f2553119530b0f6d10cc32e4cbbde180d71a1d..b2384f0a1825bcec49387fe47a4c12dd465c3f1c 100644 |
| --- a/chrome/browser/ui/browser.h |
| +++ b/chrome/browser/ui/browser.h |
| @@ -475,7 +475,8 @@ class Browser : public TabHandlerDelegate, |
| // Page-related commands |
| void BookmarkCurrentPage(); |
| void SavePage(); |
| - void ViewSource(); |
| + void ViewSelectedSource(); |
| + void ViewSource(TabContentsWrapper* tab); |
|
yurys
2010/12/14 16:37:06
Can you make this method private?
|
| void ShowFindBar(); |
| // Returns true if the Browser supports the specified feature. The value of |
| @@ -778,6 +779,7 @@ class Browser : public TabHandlerDelegate, |
| const GURL& url, |
| const NavigationEntry::SSLStatus& ssl, |
| bool show_history); |
| + virtual void ViewSourceForTab(TabContents* source); |
| virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| bool* is_keyboard_shortcut); |
| virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| @@ -986,6 +988,12 @@ class Browser : public TabHandlerDelegate, |
| // If this browser should have instant one is created, otherwise does nothing. |
| void CreateInstantIfNecessary(); |
| + // Inserts contents dupe next to the original contents. This method is used |
| + // to insert duplicate tab and view source tab next to the original tab. |
| + void InsertContentsDupe( |
| + TabContentsWrapper* original_content, |
| + TabContentsWrapper* clone_content); |
| + |
| // Data members ///////////////////////////////////////////////////////////// |
| NotificationRegistrar registrar_; |